/**
 * Shared CSS — Components used across multiple pages.
 * Used by: index.html, ueber-nela.html, blog/index.html, blog/artikel-*.html
 *
 * Contains: reveal animations, btn-gold, gold-line, rosa-callout,
 *           sticky photo grid, quiz, Athena chat, iPhone frame
 */

/* ── Newsreader — editorial reading font ── */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&display=swap');

/* ── Colors — mapped to design-tokens.css primitives ── */
:root {
    --deepGreen: var(--color-deepGreen);
    --gold: var(--color-gold);
    --ivory: var(--color-ivory);
    --richBlack: var(--color-richBlack);
    --rosa: var(--color-rosa-fuerte);
    --rosa-soft: var(--color-rosa);
    --sand: var(--color-offwhite);

    /* ── Semantic: White Editorial Magazine (shared with portal.css) ── */
    /* Backgrounds */
    --bg-page: var(--color-white, #FFFFFF);
    --bg-elevated: var(--color-offwhite);

    /* Text hierarchy — deepGreen at varying opacities */
    --text-body: var(--color-deepGreen);
    --text-soft: rgba(14,58,40,0.75);
    --text-muted: rgba(14,58,40,0.6);
    --text-faint: rgba(14,58,40,0.45);
    --text-hint: rgba(14,58,40,0.3);
    --text-ghost: rgba(14,58,40,0.15);

    /* Borders — deepGreen-based */
    --border-subtle: rgba(14,58,40,0.08);
    --border-light: rgba(14,58,40,0.1);
    --border-medium: rgba(14,58,40,0.12);
}

/* ── Semantic utility classes (White Editorial Magazine) ── */
.bg-page { background: var(--bg-page); }
.bg-elevated { background: var(--bg-elevated); }
.text-body { color: var(--text-body); }
.text-soft { color: var(--text-soft); }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-hint { color: var(--text-hint); }
.text-ghost { color: var(--text-ghost); }
.border-subtle { border-color: var(--border-subtle); }
.border-light { border-color: var(--border-light); }

/* ── Editorial Text — Newsreader for long-form reading ── */
/* Use on containers with paragraphs meant for reading (not UI text) */
.editorial-text {
    font-family: 'Newsreader', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(14, 58, 40, 0.75);
    font-weight: 400;
}
.editorial-text p { margin-bottom: 1.5rem; }
.editorial-text strong { color: var(--color-deepGreen); font-weight: 600; }
.editorial-text em { color: var(--color-richBlack); font-style: italic; }

/* Dark background variant */
.editorial-text-dark {
    font-family: 'Newsreader', serif;
    font-size: 1.25rem;
    line-height: 1.85;
    color: rgba(250, 250, 245, 0.78);
    font-weight: 400;
}
.editorial-text-dark strong { color: var(--color-ivory); font-weight: 500; }
.editorial-text-dark em { color: var(--color-ivory); }

/* Newsreader for specific inline elements — slightly larger to match Montserrat x-height */
.font-reading { font-family: 'Newsreader', serif; font-size: 1.25rem; }

/* ── Reveal Animation ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready .reveal { /* elements hidden until JS ready */ }
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Gold Button ── */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--color-gold-warm));
    color: var(--richBlack);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-gold::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transition: left 0.6s ease;
}
.btn-gold:hover::after { left: 100%; }
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
}

/* ── Gold Line Divider ── */
.gold-line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(14,58,40,0.12), transparent);
    opacity: 0.4;
    margin: 0 auto;
}

/* ── Rosa Callout (Athena accent) ── */
.rosa-callout {
    border-left: 4px solid var(--rosa);
    background: rgba(173, 68, 92, 0.06);
    padding: 1.25rem 1.75rem;
    border-radius: 0 8px 8px 0;
}

/* ── Sticky Photo Grid ── */
.sticky-photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.sticky-photo {
    position: -webkit-sticky;
    position: sticky;
    top: 5rem;
    height: calc(100vh - 6rem);
    border-radius: 8px;
    overflow: hidden;
}
.sticky-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 20% !important;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .sticky-photo-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    .sticky-photo {
        position: relative;
        top: auto;
        height: 50vh;
    }
}

/* ── Quiz ── */
.quiz-option {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--color-white);
    border: 1.5px solid rgba(14, 58, 40, 0.15);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--color-richBlack);
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
}
.quiz-option:hover {
    border-color: var(--deepGreen);
    background: rgba(14, 58, 40, 0.03);
}
.quiz-option.selected {
    border-color: var(--deepGreen);
    background: rgba(14, 58, 40, 0.06);
    font-weight: 600;
}
.quiz-step {
    animation: quizFadeIn 0.4s ease;
}
@keyframes quizFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.quiz-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(14, 58, 40, 0.15);
    transition: all 0.3s ease;
}
.quiz-dot.active {
    background: var(--deepGreen);
    width: 24px;
    border-radius: 4px;
}

/* ── Athena Chat Mockup ── */
.athena-section {
    background: var(--ivory);
}
.athena-chat-card {
    background: var(--color-white);
    border: 1px solid rgba(14, 58, 40, 0.12);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}
.athena-avatar-ring {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid var(--rosa);
    display: flex; align-items: center; justify-content: center;
    padding: 1px;
    flex-shrink: 0;
}
.athena-avatar-sm {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(173, 68, 92, 0.4);
    display: flex; align-items: center; justify-content: center;
    padding: 1px;
    flex-shrink: 0;
}
.athena-msg-user {
    background: rgba(14, 58, 40, 0.06);
    border: 1px solid rgba(14, 58, 40, 0.12);
    color: var(--deepGreen);
    font-size: 14px;
    line-height: 1.6;
    padding: 10px 16px;
    border-radius: 14px 14px 4px 14px;
    max-width: 80%;
    font-family: 'Montserrat', sans-serif;
}
.athena-msg-athena {
    background: rgba(173, 68, 92, 0.08);
    border: 1px solid rgba(173, 68, 92, 0.25);
    color: var(--deepGreen);
    font-size: 14px;
    line-height: 1.6;
    padding: 10px 16px;
    border-radius: 14px 14px 14px 4px;
    max-width: 80%;
    font-family: 'Montserrat', sans-serif;
}
.athena-chip {
    display: inline-block;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--deepGreen);
    border: 1px solid rgba(14, 58, 40, 0.15);
    border-radius: 20px;
    background: rgba(14, 58, 40, 0.04);
    font-family: 'Montserrat', sans-serif;
}

/* ── iPhone Frame ── */
.iphone-frame {
    background: var(--color-near-black);
    border-radius: 32px;
    padding: 0;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25), inset 0 0 0 2px rgba(255,255,255,0.08);
    overflow: hidden;
}
.iphone-notch {
    background: var(--color-near-black);
    padding: 10px 20px 6px;
}
.iphone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ivory);
    font-family: 'Montserrat', sans-serif;
}
.iphone-notch-pill {
    display: block;
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 12px;
}

/* ── Benefit Card ── */
.benefit-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rosa-soft), var(--color-rosa-mid));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-4px);
}
.benefit-card:hover::before {
    opacity: 1;
}

/* ── Credential Card (ueber-nela) ── */
.credential-card {
    background: var(--color-white);
    border: 1px solid rgba(14,58,40,0.08);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.credential-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(173,68,92,0.4), transparent);
}
.credential-card:hover {
    border-color: rgba(173,68,92,0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.05);
}

/* ── Article Card (ueber-nela blog links) ── */
.article-card {
    background: var(--color-white);
    border: 1px solid rgba(14,58,40,0.08);
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}
.article-card:hover {
    border-color: var(--rosa-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}
