/* ===== PROPHECY PAGE — SPECIFIC STYLES ===== */

/* --- Category Stats Bar --- */
.prophecy-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 32px 0 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c9a227 0%, #f4d35e 25%, #ffd700 50%, #f4d35e 75%, #c9a227 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 4s linear infinite;
    line-height: 1.2;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #a09888;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* --- Category Filter Tabs --- */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 27, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 20px;
    transition: box-shadow 0.3s ease;
}

.category-nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.category-tabs {
    display: flex;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.cat-tab {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #a09888;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    user-select: none;
}

.cat-tab:hover {
    border-color: rgba(244, 211, 94, 0.3);
    color: #d4c9b8;
    background: rgba(255, 255, 255, 0.06);
}

.cat-tab.active {
    background: linear-gradient(135deg, rgba(196, 154, 42, 0.2), rgba(244, 211, 94, 0.12));
    border-color: rgba(244, 211, 94, 0.4);
    color: #f4d35e;
    font-weight: 600;
}

.cat-tab .tab-count {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.7rem;
    opacity: 0.6;
}

/* --- Category Sections --- */
.prophecy-category {
    padding: 80px 20px;
    position: relative;
}

.prophecy-category:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.prophecy-category .section-content {
    max-width: 900px;
}

.category-header {
    text-align: center;
    margin-bottom: 48px;
    cursor: pointer;
    user-select: none;
}

.category-header h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #c9a227 0%, #f4d35e 25%, #ffd700 50%, #f4d35e 75%, #c9a227 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 4s linear infinite;
    margin: 0 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(244, 211, 94, 0.3);
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    /* Override the gold shimmer text for the icon */
    -webkit-text-fill-color: #c9a227;
}

.category-header.expanded .expand-icon {
    transform: rotate(180deg);
}

.category-subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
    color: #a09888;
    margin: 0;
}

.category-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #7a7060;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 8px;
}

/* --- Expandable Content --- */
.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.4s ease;
    opacity: 0;
}

.category-content.expanded {
    max-height: 50000px;
    opacity: 1;
    transition: max-height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.6s ease 0.1s;
}

/* --- Prophecy Cards --- */
.prophecy-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.prophecy-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(20px);
}

.prophecy-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.prophecy-card:hover {
    border-color: rgba(244, 211, 94, 0.15);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2),
                0 0 30px rgba(196, 154, 42, 0.04);
}

.prophecy-title-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.prophecy-title-bar:hover {
    background: rgba(255, 255, 255, 0.02);
}

.prophecy-number {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #c9a227;
    background: rgba(196, 154, 42, 0.1);
    border: 1px solid rgba(196, 154, 42, 0.2);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prophecy-title-text {
    flex: 1;
}

.prophecy-title-text h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #f0e6d3;
    margin: 0 0 2px;
    letter-spacing: 0.02em;
}

.prophecy-refs {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #7a7060;
}

.prophecy-refs span {
    color: #c9a227;
}

.prophecy-expand-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a7060;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.prophecy-card.open .prophecy-expand-btn {
    transform: rotate(180deg);
    color: #c9a227;
}

/* --- Prophecy Detail (collapsible) --- */
.prophecy-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.prophecy-card.open .prophecy-detail {
    max-height: 1000px;
}

.prophecy-detail-inner {
    padding: 0 24px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: start;
}

/* --- OT / NT Columns --- */
.prophecy-col {
    padding: 20px;
    border-radius: 12px;
}

.prophecy-col.ot {
    background: rgba(196, 154, 42, 0.04);
    border: 1px solid rgba(196, 154, 42, 0.1);
}

.prophecy-col.nt {
    background: rgba(74, 144, 217, 0.04);
    border: 1px solid rgba(74, 144, 217, 0.1);
}

.col-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ot .col-label {
    color: #c9a227;
}

.nt .col-label {
    color: #6bb3e8;
}

.col-ref {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #f0e6d3;
    margin-bottom: 10px;
}

.col-quote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.8;
    color: #c8baa8;
    margin: 0;
}

/* --- Arrow connector --- */
.prophecy-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: #c9a227;
    font-size: 1.2rem;
    opacity: 0.5;
}

/* --- Explanation --- */
.prophecy-explanation {
    grid-column: 1 / -1;
    margin-top: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border-left: 2px solid rgba(196, 154, 42, 0.2);
}

.prophecy-explanation p {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #a09888;
    margin: 0;
}

/* --- Probability Section --- */
.probability-section {
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.probability-section .section-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.prob-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 154, 42, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.prob-number {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #c9a227 0%, #f4d35e 25%, #ffd700 50%, #f4d35e 75%, #c9a227 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 4s linear infinite;
    margin: 24px 0 16px;
    letter-spacing: 0.03em;
}

.prob-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(244, 211, 94, 0.12);
    border-radius: 20px;
    padding: 48px 40px;
    backdrop-filter: blur(10px);
    margin-top: 40px;
}

.prob-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.prob-item {
    text-align: center;
}

.prob-item-number {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #f4d35e;
    margin-bottom: 4px;
}

.prob-item-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #a09888;
    line-height: 1.5;
}

/* --- Expand All / Collapse All Button --- */
.expand-all-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.expand-all-btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #a09888;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expand-all-btn:hover {
    border-color: rgba(244, 211, 94, 0.3);
    color: #f4d35e;
    background: rgba(244, 211, 94, 0.08);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .prophecy-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .prophecy-category {
        padding: 50px 16px;
    }

    .prophecy-detail-inner {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 16px 20px;
    }

    .prophecy-arrow {
        display: none;
    }

    .prophecy-col {
        padding: 16px;
    }

    .prophecy-title-bar {
        padding: 16px;
    }

    .prophecy-number {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }

    .prophecy-title-text h3 {
        font-size: 0.95rem;
    }

    .category-header h2 {
        font-size: 1.4rem;
    }

    .prob-card {
        padding: 32px 20px;
    }

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

    .expand-all-bar {
        padding: 12px 16px;
    }

    .prophecy-explanation {
        margin-top: 12px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .prob-grid {
        grid-template-columns: 1fr;
    }

    .prophecy-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 1.6rem;
    }
}
