/* AURAO Components CSS - Header & Footer */
/* This file overrides page-specific styles */

/* Header */
header {
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 252, 249, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s;
}
header.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

/* Hide old nav */
header nav { display: none; }

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}
.header-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s;
}
.header-link:hover { color: var(--text-primary); }
.header-link:hover::after { width: 100%; }

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--accent-peach-light);
    border: 2px solid var(--accent-peach);
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.3s;
}
.header-cta:hover {
    background: var(--accent-peach);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(224, 122, 95, 0.4);
}
.header-cta-arrow { transition: transform 0.3s; }
.header-cta:hover .header-cta-arrow { transform: translateX(4px); }

/* User dropdown */
.user-menu { position: relative; }
.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-warm);
    border: 2px solid var(--border-light);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
}
.user-trigger:hover {
    border-color: var(--accent-peach);
    background: var(--bg-peach);
}
.user-trigger svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}
.user-menu.open .user-trigger svg { transform: rotate(180deg); }

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: 2px;
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}
.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    color: var(--text-body);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s;
}
.user-dropdown a:last-child { border-bottom: none; }
.user-dropdown a:hover {
    background: var(--bg-warm);
    color: var(--text-primary);
}
.user-dropdown a.logout { color: var(--accent-terracotta); }
.user-dropdown a.logout:hover { background: #FEF2F2; }

/* Auth state visibility */
.guest-only, .auth-only { display: none; }
body.guest .guest-only {
    display: flex;
    align-items: center;
    gap: 24px;
}
body.logged-in .auth-only {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Footer */
footer {
    padding: 80px 0 0;
    background: var(--bg-primary);
    color: var(--text-body);
    position: relative;
    overflow: hidden;
}
footer::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 166, 122, 0.15) 0%, transparent 60%);
    pointer-events: none;
}
footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Hide old footer structure */
.footer-grid { display: none; }
.footer-social { display: none; }
.footer-nav { display: none; }

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-light);
}
.footer-brand { max-width: 280px; }
footer .logo {
    color: var(--text-primary);
    margin-bottom: 12px;
    display: inline-block;
}
.footer-tagline {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}
.footer-col h5 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.footer-col a {
    display: block;
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s;
}
.footer-col a:hover {
    color: var(--accent-gold-dark);
    transform: translateX(4px);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 14px;
    color: var(--text-muted);
}
.footer-legal {
    display: flex;
    gap: 32px;
}
.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    margin-left: 0;
}
.footer-legal a:hover { color: var(--accent-gold-dark); }

/* Responsive */
@media (max-width: 1024px) {
    .footer-top { flex-direction: column; gap: 40px; }
    .footer-links { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 768px) {
    .footer-links { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .footer-legal { flex-direction: column; gap: 12px; }
    .header-right { gap: 12px; }
    .header-cta { padding: 10px 16px; font-size: 13px; }
    .header-link { font-size: 14px; }
}
@media (max-width: 480px) {
    .footer-links { grid-template-columns: 1fr; gap: 24px; }
}
