/* ============================================================
   aurifan.css — Global shared styles
   All cluster pages: /blog, /guides, /for, /compare, and
   top-level content pages (features, pricing, about, etc.)
   ============================================================ */

/* ============ VARIABLES ============ */
:root {
    --background: #0f0e0d;
    --card:       #1a1917;
    --muted:      #292623;
    --border:     #3b352c;
    --gold:       #b8941c;
    --gold-light: #d4b467;
    --gold-dark:  #8a6c1f;
    --cream:      #ebe6dc;
    --text:       #ebe6dc;
    --text-muted: #8a8172;
    --success:    #34d399;
    --danger:     #f87171;
    --card-hover: #201f1e;
    /* Compare-specific (harmless as globals) */
    --aurifan:    #b8941c;
    --competitor: #6b7280;
}

/* ============ RESET ============ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ============ BASE TYPOGRAPHY ============ */
body {
    background: var(--background);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    letter-spacing: 0.025em;
    line-height: 1.3;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold-light);
}

/* ============ LAYOUT ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Compare pages override this to 1000px in compare.css */

/* ============ NAVIGATION ============ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 14, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav.scrolled {
    padding: 0.75rem 0;
    background: rgba(15, 14, 13, 0.98);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-crown {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

/* Higher specificity than .nav-links li to ensure mobile CTAs stay hidden on desktop */
.nav-links .mobile-nav-cta,
.mobile-nav-cta {
    display: none;
}

.nav-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-ghost {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-ghost:hover {
    background: var(--gold);
    color: var(--background);
    -webkit-text-fill-color: var(--background);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--background);
    -webkit-text-fill-color: var(--background);
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(184, 148, 28, 0.4);
    color: var(--background);
    -webkit-text-fill-color: var(--background);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-cta,
.cta-button {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--background);
    -webkit-text-fill-color: var(--background);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-cta:hover,
.cta-button:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(184, 148, 28, 0.4);
    color: var(--background);
    -webkit-text-fill-color: var(--background);
}

/* ============ UTILITY ============ */
.check  { color: var(--success); font-weight: bold; }
.cross  { color: var(--danger); }
.highlight { color: var(--gold); font-weight: 600; }
.winner    { color: var(--success); font-weight: 600; }
.rank      { font-weight: 700; color: var(--gold); }
.earnings  { color: var(--success); font-weight: 600; }

.badge {
    background: var(--gold);
    color: var(--background);
    -webkit-text-fill-color: var(--background);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* ============ FOOTER ============ */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    background: var(--card);
}

.footer .container,
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo,
.footer-brand .footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer column headings — support both h4 (legacy) and p.footer-col-heading (new) */
.footer-column h4,
.footer-col-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--gold);
}

/* Footer heading links — h4 > a and a.footer-col-heading */
.footer-column h4 a,
.footer-column a.footer-col-heading {
    display: block;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
}

.footer-column h4 a:hover,
.footer-column a.footer-col-heading:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

/* ============ RESPONSIVE — NAV ============ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 14, 13, 0.98);
        padding: 0.5rem 1rem 0.6rem;
        border-top: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        z-index: 999;
    }

    /* 2-column grid: 6 nav links become 3 compact rows */
    .nav-links.active {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 0.5rem;
    }

    .nav-links li {
        padding: 0;
    }

    .nav-links a {
        display: block;
        padding: 0.45rem 0.5rem;
        font-size: 0.875rem;
        color: var(--text-muted);
        border-radius: 6px;
        transition: color 0.2s, background 0.2s;
    }

    .nav-links a:hover {
        color: var(--gold);
        background: rgba(212, 175, 55, 0.07);
    }

    .nav-cta {
        display: none;
    }

    /* CTA row: Log In + Start Free Trial side by side below nav links */
    .nav-links .mobile-nav-cta,
    .mobile-nav-cta {
        display: block;
        padding: 0.4rem 0.3rem 0;
        border-top: 1px solid rgba(212, 175, 55, 0.25);
        margin-top: 0.4rem;
    }

    .mobile-nav-cta a {
        display: block;
        width: 100%;
        padding: 0.35rem 0.4rem;
        font-size: 0.82rem;
        text-align: center;
        border-radius: 8px;
    }

    /* Log In — ghost button (no .btn-primary class on its <a>) */
    .mobile-nav-cta a:not(.btn-primary) {
        border: 1px solid var(--gold);
        color: var(--gold) !important;
        -webkit-text-fill-color: var(--gold) !important;
        font-weight: 500;
    }

    .mobile-nav-cta .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
        color: #0f0e0d !important;
        -webkit-text-fill-color: #0f0e0d !important;
        padding: 0.4rem 0.5rem;
        font-size: 0.85rem;
    }

    .mobile-menu-btn {
        display: block;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo-crown {
        width: 24px;
        height: 24px;
    }
}

/* ============ RESPONSIVE — FOOTER ============ */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .footer-brand .footer-logo,
    .footer-logo {
        justify-content: center;
    }

    .footer-column {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}
