/* =====================================================
   THE ROLL CALL OF THE CRYPTO PHALANX - Landing Page
   Hellenic War-Epic Aesthetic
   ===================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Spectral:ital,wght@0,400;0,500;1,400;1,500&family=Great+Vibes&family=Dancing+Script:wght@400;500;600;700&family=Kalam:wght@300;400;700&family=Satisfy&family=Pacifico&display=swap');

/* =====================================================
   COLOR PALETTE - Hellenic War Theme
   ===================================================== */
:root {
    --bronze-deep: #b58c44;
    --gold-heroic: #d9c28b;
    --orange-embers: #cc7a2f;
    --tan-parchment: #e7d4b1;
    --black-ink: #1a1a1a;
    --blue-ethereum: #88a6c9;
    --shadow-dark: rgba(0, 0, 0, 0.7);
    --stone-dark: #1c1a17;
    --stone-mid: #2a2520;
    --stone-light: #3a3530;
    --gold-text: #d4af37;
    --gold-muted: #b8993e;
    --bronze-accent: #cd7f32;
    --cream-text: #e8dcc8;
    --cream-muted: #a89b8c;
}

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'EB Garamond', 'Spectral', Georgia, serif;
    color: var(--black-ink);
    overflow-x: hidden;
    line-height: 1.6;
    background: var(--stone-dark);
}

/* =====================================================
   HERO SECTION - Video + Parchment
   ===================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* =====================================================
   VIDEO BACKGROUND - Scoped to Hero
   ===================================================== */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Darkening overlay for better contrast */
.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* =====================================================
   MAIN CONTENT CONTAINER (inside hero)
   ===================================================== */
.landing-container {
    position: relative;
    z-index: 10;
    height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

/* =====================================================
   SCROLL-DOWN INDICATOR
   ===================================================== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    cursor: pointer;
    animation: bounce 2s ease infinite;
}

.scroll-indicator__text {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 8px;
}

.scroll-indicator__arrow {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-12px);
    }
    60% {
        transform: translateX(-50%) translateY(-6px);
    }
}

/* =====================================================
   PARCHMENT SCROLL - Tessellated Background
   ===================================================== */
.parchment-scroll {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

/* Scroll Container with Tessellation */
.scroll-container {
    position: relative;
    /* background-color: var(--tan-parchment);*/
    border-radius: 8px;
    /*
     * box-shadow: 0 20px 60px var(--shadow-dark),
     *           0 10px 30px rgba(0, 0, 0, 0.5),
     *           inset 0 2px 4px rgba(255, 255, 255, 0.3);
     */
}

/* Scroll Top */
.scroll-top {
    width: 100%;
    height: auto;
    display: block;
    background-image: url('../images/scroll-top.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: top center;
    min-height: 150px;
}

/* Scroll Middle - Repeating Tessellation */
.scroll-middle {
    width: 100%;
    background-image: url('../images/scroll-middle.png');
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position: center;
    padding: 40px 60px;
}

/* Scroll Bottom */
.scroll-bottom {
    width: 100%;
    height: auto;
    display: block;
    background-image: url('../images/scroll-bottom.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: bottom center;
    min-height: 150px;
}

/* =====================================================
   CONTENT AREA (Inside Parchment)
   ===================================================== */
.scroll-content {
    position: relative;
    z-index: 5;
    padding-left: 100px;
    padding-right: 100px;
    text-align: center;
}

/* =====================================================
   TYPOGRAPHY - Hellenic Epic Style
   ===================================================== */

/* Main Header - "THE ROLL CALL OF THE CRYPTO PHALANX" */
.scroll-header {
    /* font-family set dynamically via inline styles based on A/B variant */
    font-size: 2.875rem;
    font-weight: 400;
    color: var(--black-ink);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    line-height: 1.4;
}

/* Subtitle */
.scroll-subtitle {
    /* font-family set dynamically via inline styles based on A/B variant */
    font-size: 1.8rem;
    font-weight: 400;
    font-style: italic;
    color: var(--black-ink);
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.4;
}

/* The Roll Call List */
.roll-call-list {
    list-style-type: decimal;
    padding: 0;
    padding-left: 2rem;
    text-align: center;
    display: inline-block;
}

.roll-call-list li {
    /* font-family set dynamically via inline styles based on A/B variant */
    font-size: 1.9rem;
    font-weight: 400;
    color: var(--black-ink);
    margin-bottom: 0.8rem;
    line-height: 1.6;
    text-align: left;
}

.roll-call-link {
    color: var(--black-ink);
    text-decoration: none;
}

/* Footer */
.scroll-footer {
    /* font-family set dynamically via inline styles based on A/B variant */
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--black-ink);
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0;
}

.footer-link {
    color: var(--black-ink);
    text-decoration: none;
}

/* Post Preview */
.post-preview {
    /* font-family set dynamically via inline styles based on A/B variant */
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--black-ink);
}

.post-preview p {
    /* font-family set dynamically via inline styles based on A/B variant */
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    color: #3a2e1f;
    margin-bottom: 2em;
}

.post-preview p:last-child {
    margin-bottom: 0;
}

/* Homeric Invocation Paragraph */
.homeric-invocation {
    font-family: 'Spectral', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--black-ink);
    line-height: 1.8;
    margin-top: 2.5rem;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.homeric-invocation::before,
.homeric-invocation::after {
    content: '\2694';
    display: inline-block;
    margin: 0 10px;
    color: var(--orange-embers);
    font-size: 1.3rem;
}

/* =====================================================
   CONTENT SECTIONS (Below Hero)
   ===================================================== */
.content-section {
    position: relative;
    padding: 80px 20px;
    color: var(--cream-text);
}

/* =====================================================
   LEADERBOARD SECTION
   ===================================================== */
.leaderboard-section {
    background: linear-gradient(180deg, var(--stone-dark) 0%, var(--stone-mid) 50%, var(--stone-dark) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.leaderboard-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-text);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    color: var(--cream-muted);
    font-style: italic;
    margin-bottom: 2.5rem;
}

/* Tab Switcher */
.tab-switcher {
    display: inline-flex;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.tab-btn {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 28px;
    background: transparent;
    color: var(--cream-muted);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn:hover {
    color: var(--gold-text);
    background: rgba(212, 175, 55, 0.08);
}

.tab-btn.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-text);
}

/* Leaderboard Tables */
.leaderboard-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.leaderboard-panel {
    display: none;
}

.leaderboard-panel.active {
    display: block;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'EB Garamond', serif;
    font-size: 1.05rem;
}

.leaderboard-table thead th {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-muted);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    text-align: left;
    white-space: nowrap;
}

.leaderboard-table thead th:first-child {
    text-align: center;
    width: 60px;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
}

.leaderboard-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.04);
}

.leaderboard-table tbody td {
    padding: 14px 16px;
    color: var(--cream-text);
    text-align: left;
    vertical-align: middle;
}

.leaderboard-table tbody td:first-child {
    text-align: center;
}

/* Rank Badges */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
}

.rank-badge--gold {
    background: linear-gradient(135deg, #d4af37 0%, #f5d060 50%, #d4af37 100%);
    color: #1a1a1a;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.rank-badge--silver {
    background: linear-gradient(135deg, #8e8e8e 0%, #c0c0c0 50%, #8e8e8e 100%);
    color: #1a1a1a;
    box-shadow: 0 0 6px rgba(192, 192, 192, 0.3);
}

.rank-badge--bronze {
    background: linear-gradient(135deg, #a0662a 0%, #cd7f32 50%, #a0662a 100%);
    color: #1a1a1a;
    box-shadow: 0 0 6px rgba(205, 127, 50, 0.3);
}

.rank-badge--default {
    background: transparent;
    color: var(--cream-muted);
    font-size: 0.9rem;
}

/* Warrior name link in leaderboard */
.warrior-name {
    color: var(--cream-text);
    text-decoration: none;
    transition: color 0.15s ease;
}

.warrior-name:hover {
    color: var(--gold-text);
}

/* Score highlight */
.score-value {
    color: var(--gold-text);
    font-weight: 600;
}

/* Show All / Top 10 toggle */
.show-all-btn {
    display: inline-block;
    margin-top: 1.2rem;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cream-muted);
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 5px;
    padding: 8px 22px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.show-all-btn:hover {
    color: var(--gold-text);
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.06);
}

/* Empty state */
.leaderboard-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--cream-muted);
    font-style: italic;
    font-size: 1.1rem;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-section {
    background: linear-gradient(180deg, var(--stone-dark) 0%, #151310 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.about-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 2.5rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 8px;
    padding: 35px 25px;
    text-align: left;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.about-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.about-card__title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.about-card__text {
    font-family: 'EB Garamond', serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--cream-muted);
}

.about-card__steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
}

.about-card__steps li {
    font-family: 'EB Garamond', serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--cream-muted);
    padding-left: 28px;
    position: relative;
    margin-bottom: 0.6rem;
    counter-increment: step;
}

.about-card__steps li::before {
    content: counter(step) ".";
    position: absolute;
    left: 0;
    color: var(--bronze-accent);
    font-weight: 600;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
}

/* Social/CTA Links */
.about-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0.5rem;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cream-text);
    text-decoration: none;
    padding: 10px 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 5px;
    transition: all 0.2s ease;
}

.about-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--gold-text);
}

.about-link__icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* =====================================================
   RESPONSIVE DESIGN - Desktop First
   ===================================================== */

/* Desktop (default styles above are for desktop) */
@media (min-width: 1200px) {
    .parchment-scroll {
        max-width: 800px;
    }

    .scroll-header {
        font-size: 3.375rem;
    }

    .leaderboard-inner {
        max-width: 960px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .parchment-scroll {
        max-width: 650px;
    }

    .scroll-header {
        font-size: 2.575rem;
    }

    .scroll-middle {
        padding: 35px 50px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Small Tablet / Large Phone */
@media (max-width: 768px) {
    .parchment-scroll {
        max-width: 90%;
    }

    .scroll-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .scroll-header {
        font-size: 2.175rem;
        letter-spacing: 2px;
    }

    .scroll-subtitle {
        font-size: 1.375rem;
    }

    .scroll-middle {
        padding: 30px 40px;
    }

    .roll-call-list li {
        font-size: 1.525rem;
    }

    .scroll-footer {
        font-size: 1.15rem;
    }

    .homeric-invocation {
        font-size: 1.05rem;
        padding: 0 10px;
    }

    .content-section {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .tab-btn {
        font-size: 0.75rem;
        padding: 10px 18px;
        letter-spacing: 1px;
    }

    .leaderboard-table {
        font-size: 0.95rem;
    }

    .leaderboard-table thead th {
        font-size: 0.6rem;
        padding: 10px 10px;
    }

    .leaderboard-table tbody td {
        padding: 12px 10px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .landing-container {
        padding: 40px 15px;
    }

    .parchment-scroll {
        max-width: 95%;
    }

    .scroll-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .scroll-header {
        font-size: 1.875rem;
        letter-spacing: 1px;
    }

    .scroll-subtitle {
        font-size: 1.275rem;
        margin-bottom: 2rem;
    }

    .scroll-middle {
        padding: 25px 30px;
    }

    .roll-call-list li {
        font-size: 1.375rem;
        margin-bottom: 0.7rem;
    }

    .scroll-footer {
        font-size: 1rem;
    }

    .homeric-invocation {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .scroll-top,
    .scroll-bottom {
        min-height: 100px;
    }

    .content-section {
        padding: 50px 12px;
    }

    .section-title {
        font-size: 1.3rem;
        letter-spacing: 1.5px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .tab-switcher {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .tab-btn {
        width: 100%;
    }

    .leaderboard-table {
        font-size: 0.9rem;
    }

    .rank-badge {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .about-card {
        padding: 25px 20px;
    }

    .scroll-indicator__text {
        font-size: 0.65rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .scroll-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .scroll-header {
        font-size: 1.675rem;
    }

    .scroll-middle {
        padding: 20px 25px;
    }

    .roll-call-list li {
        font-size: 1.325rem;
    }

    .scroll-footer {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.15rem;
    }
}

/* =====================================================
   ANIMATION & EFFECTS
   ===================================================== */

/* Subtle fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.parchment-scroll {
    animation: fadeIn 1s ease-out;
}

/* Parchment hover effect (optional) */
.scroll-container:hover {
    box-shadow: 0 25px 70px var(--shadow-dark),
                0 15px 40px rgba(0, 0, 0, 0.6),
                inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.3s ease;
}
