/*
Theme Name: Liquid Glass
Theme URI: https://example.com/liquid-glass
Author: Antigravity
Author URI: https://example.com
Description: A modern, responsive WordPress theme with a liquid glass (glassmorphism) aesthetic.
Version: 1.1.34
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: liquid-glass
Tags: blog, custom-background, custom-colors, custom-menu, featured-images, one-column, two-columns, right-sidebar, translation-ready
*/

:root {
    /* Colors - Vibrant & Premium */
    --primary-color: #4f46e5;
    /* Indigo 600 */
    --primary-hover: #4338ca;
    /* Indigo 700 */
    --secondary-color: #ec4899;
    /* Pink 500 */
    --accent-color: #8b5cf6;
    /* Violet 500 */

    --text-main: #111827;
    /* Gray 900 */
    --text-light: #4b5563;
    /* Gray 600 */
    --text-lighter: #9ca3af;
    /* Gray 400 */

    --bg-body: #f3f4f6;

    /* Glass Effect Variables */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-blur: 16px;

    /* Spacing & Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: #f0f2f5;
    /* More vibrant, complex background */
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(245, 158, 11, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
    letter-spacing: -0.02em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Glass Components - Enhanced */
.glass-panel,
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-md);
}

.glass-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px -4px rgba(31, 38, 135, 0.12);
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Header - Floating & Premium */
.site-header {
    position: sticky;
    top: var(--spacing-sm);
    z-index: 1000;
    margin: 0 var(--spacing-sm) var(--spacing-md);
}

.header-inner {
    position: relative;
    border-radius: 100px;
    /* Pill shape */
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    z-index: 1;
}

.header-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: inherit;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    z-index: -1;
    transition: all 0.3s ease;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

.site-title a {
    text-decoration: none;
}

/* Navigation - Clean & Modern */
.main-navigation {
    position: relative;
    margin-left: auto;
}

/* Top Level Menu */
.main-navigation>div>ul,
.main-navigation>ul {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    transition: all 0.2s ease;
    display: block;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-color);
}

/* Submenus */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    display: block;
    /* Ensure it's block so we can animate opacity */
    flex-direction: column;
    z-index: 100;
    list-style: none;
    /* Remove dots */
}

.main-navigation ul li:hover>ul,
.main-navigation ul li:focus-within>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    width: 100%;
    list-style: none;
    /* Remove dots from items too */
}

.main-navigation ul ul a {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.main-navigation ul ul a:hover {
    background: rgba(79, 70, 229, 0.05);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    z-index: 1001;
}

/* Hero / Page Header */
.page-header {
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 0;
    /* Reset padding for full bleed image */
}

.post-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

.post-content-wrap {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.entry-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.entry-title a {
    color: var(--text-main);
    background: linear-gradient(to right, var(--primary-color), var(--primary-color)) 0% 100% / 0% 2px no-repeat;
    transition: background-size 0.3s ease;
}

.post-card:hover .entry-title a {
    color: var(--primary-color);
    background-size: 100% 2px;
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.entry-content {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-top: auto;
}

.read-more:hover {
    transform: translateX(4px);
}

/* Single Post */
.single-post-container {
    padding: 3rem;
}

.single-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.single-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #374151;
}

/* Media Queries */
@media (max-width: 960px) {
    .menu-toggle {
        display: block;
    }

    /* Hide menu by default on mobile */
    .main-navigation>div>ul,
    .main-navigation>ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 280px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1rem;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.5);
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin-top: 1rem;
        z-index: 1000;
    }

    /* Show menu when toggled */
    .main-navigation.toggled>div>ul,
    .main-navigation.toggled>ul,
    #site-navigation.toggled>div>ul,
    #site-navigation.toggled>ul {
        display: flex !important;
        animation: fadeInDown 0.3s ease;
    }

    /* Mobile Submenus */
    .main-navigation ul ul {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.03);
        margin: 0.5rem 0;
        width: 100%;
        min-width: auto;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .main-navigation ul li:hover>ul,
    .main-navigation ul li.focus>ul {
        display: flex;
    }

    .main-navigation a {
        display: block;
        padding: 0.8rem 1rem;
        border-radius: 12px;
    }

    .main-navigation a:hover {
        background: rgba(0, 0, 0, 0.03);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Specific (< 480px) */
@media (max-width: 480px) {
    .header-inner {
        padding: 0.5rem 1rem;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .page-header {
        padding: 3rem 1rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .single-post-container {
        padding: 1.5rem 1rem;
    }

    .post-content-wrap {
        padding: 1.5rem;
    }

    .single-title {
        font-size: 2rem;
    }
}

/* Footer - Liquid Glass */
.site-footer {
    margin: var(--spacing-md) var(--spacing-sm) var(--spacing-md);
    padding: 0;
}

.site-footer .container {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.site-footer .container:hover {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 12px 40px -4px rgba(31, 38, 135, 0.12);
    transform: translateY(-2px);
}

.site-info {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}