/* ===== SITE HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.95);
}

/* HTML uses .header-inner (not .header-container) */
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* HTML uses a.logo-text directly (no .site-logo wrapper) */
a.logo-text,
span.logo-text {
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 1.375rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0f172a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* HTML uses nav.desktop-nav (not .main-nav) */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Shared nav link styles for .nav-link AND .dropdown-toggle */
.nav-link,
.dropdown-toggle {
    color: var(--text, #1e293b);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-link:hover,
.dropdown-toggle:hover {
    color: var(--secondary, #3b82f6);
}

.nav-link::after,
.dropdown-toggle::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary, #3b82f6);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.dropdown-toggle:hover::after {
    width: 100%;
}

/* ===== DROPDOWNS ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    min-width: 240px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    z-index: 150;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--text, #1e293b);
    text-decoration: none;
    font-size: 0.9375rem;
    border-radius: 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu a:hover {
    background: var(--bg-gray, #f8fafc);
    color: var(--secondary, #3b82f6);
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text, #1e293b);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg, #ffffff);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 200;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text, #1e293b);
    cursor: pointer;
    line-height: 1;
}

.mobile-nav {
    padding: 1.5rem;
}

.mobile-nav-section {
    margin-bottom: 2rem;
}

.mobile-nav-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.mobile-nav-section a,
.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--text, #1e293b);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-section a:hover,
.mobile-nav-link:hover {
    color: var(--secondary, #3b82f6);
    padding-left: 0.5rem;
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 1rem;
    }
}


/* ===== SITE FOOTER ===== */
.site-footer {
    background: var(--primary, #0f172a);
    color: rgba(255,255,255,0.8);
    margin-top: 4rem;
}

/* HTML uses .footer-inner (not .footer-container) */
/* .footer-inner is both the container AND the grid */
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
}

/* HTML uses .footer-section (not .footer-col) */
.footer-section {
    min-width: 0;
}

/* First footer-section is the brand column */
.footer-section:first-child h3 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 0.75rem 0;
    font-weight: 700;
}

.footer-section:first-child p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    color: rgba(255,255,255,0.7);
}

/* Footer section headings (Product Reviews, Guides, Company) */
.footer-section h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
}

/* Footer links - HTML has <a> directly inside .footer-section */
.footer-section a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section a:hover {
    color: #fff;
    padding-left: 0.25rem;
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    .footer-inner .footer-section:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        padding: 2rem 1rem 1.5rem;
    }
    .footer-bottom {
        padding: 1.5rem 1rem;
    }
}
