/* =================================
   Old Man's Crystal Ball - Wizard Theme
   Colors: Tree bark, sage green, mystic purple, gold
   ================================= */

:root {
    --bark-light: #D4C5B9;
    --bark-dark: #4A3F35;
    --sage-green: #9CAF88;
    --mystic-purple: #8B7AB8;
    --gold: #D4AF37;
    --parchment: #F4E8D0;
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', serif;
    background:
        linear-gradient(135deg, #2C3E2E 0%, #1a1a1a 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(74, 63, 53, 0.03) 2px,
            rgba(74, 63, 53, 0.03) 4px
        );
    color: var(--bark-light);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Mystical Background Effect */
.mystical-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(139, 122, 184, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(154, 175, 136, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: mysticalShift 20s ease-in-out infinite;
}

@keyframes mysticalShift {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: linear-gradient(180deg, rgba(74, 63, 53, 0.95) 0%, rgba(44, 62, 46, 0.9) 100%);
    border-bottom: 4px solid var(--gold);
    padding: 50px 0;
    text-align: center;
    box-shadow: 0 8px 30px var(--shadow), inset 0 -1px 0 rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(139, 122, 184, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(212, 175, 55, 0.4);
    margin-bottom: 10px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

.title::before {
    content: '';
    width: 100px;
    height: 100px;
    background: url('../Favicon.ico') center/cover no-repeat;
    animation: float 4s ease-in-out infinite;
    border: 5px solid var(--gold);
    border-radius: 12px;
    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.7),
        0 5px 20px rgba(0, 0, 0, 0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.crystal-ball {
    display: inline-block;
    font-size: 4rem;
    animation: glow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 25px var(--mystic-purple));
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px var(--mystic-purple));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 40px var(--mystic-purple));
        transform: scale(1.05);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--bark-light);
    font-style: italic;
    margin-bottom: 25px;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.nav-btn {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 35px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gold);
    transition: width 0.4s ease, height 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.nav-btn:hover::before {
    width: 300px;
    height: 300px;
}

.nav-btn:hover {
    color: var(--bark-dark);
    box-shadow:
        0 6px 20px rgba(212, 175, 55, 0.6),
        0 0 30px rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
}

.nav-btn.active {
    background: var(--gold);
    color: var(--bark-dark);
    box-shadow:
        0 4px 15px rgba(212, 175, 55, 0.7),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .header {
        padding: 30px 0;
    }

    .title {
        font-size: 2.2rem;
    }

    .crystal-ball {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .nav {
        flex-direction: row;
        gap: 8px;
        margin-top: 20px;
    }

    .nav-btn {
        flex: 1;
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Main Content */
.main-content {
    padding: 40px 0 80px;
}

/* Sections */
.section {
    display: block;
}

.section.hidden {
    display: none;
}

/* Hero Section */
.hero-section {
    margin-bottom: 50px;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--bark-dark);
    text-align: center;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: center;
    color: var(--bark-dark);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--bark-dark);
    margin-bottom: 30px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(139, 122, 184, 0.25) 0%, rgba(154, 175, 136, 0.25) 100%);
    border: 2px solid var(--bark-dark);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(139, 122, 184, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--mystic-purple);
}

.stat-value {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--mystic-purple);
    margin-bottom: 12px;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(139, 122, 184, 0.4);
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--bark-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.5s ease, height 0.5s ease;
    transform: translate(-50%, -50%);
}

.btn-primary:hover::before, .btn-secondary:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--mystic-purple) 0%, #7361A0 100%);
    color: white;
    border-color: var(--mystic-purple);
}

.btn-primary:hover {
    box-shadow:
        0 8px 25px rgba(139, 122, 184, 0.6),
        0 0 40px rgba(139, 122, 184, 0.3);
    border-color: #9D8BC8;
}

.btn-secondary {
    background: transparent;
    color: var(--bark-dark);
    border-color: var(--bark-dark);
}

.btn-secondary:hover {
    background: var(--bark-dark);
    color: var(--parchment);
    box-shadow:
        0 8px 25px rgba(74, 63, 53, 0.6),
        0 0 40px rgba(74, 63, 53, 0.3);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--bark-dark);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--bark-dark);
}

/* Week Selector */
.week-selector {
    margin-bottom: 40px;
}

.season-label {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--bark-dark);
    margin-left: 15px;
    font-weight: 600;
}

/* Model Explanation Section */
.model-explanation {
    max-width: 1200px;
    margin: 0 auto;
}

.model-explanation h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--bark-dark);
    text-align: center;
    margin-bottom: 30px;
}

.model-explanation h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--bark-dark);
    margin-bottom: 20px;
}

.model-overview {
    margin-bottom: 40px;
}

.model-components {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.component-card {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--bark-dark);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.component-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.component-header {
    background: linear-gradient(135deg, var(--bark-dark) 0%, #3A3028 100%);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.component-icon {
    font-size: 2rem;
}

.component-header h3 {
    font-size: 1.4rem;
    color: var(--gold);
    margin: 0;
}

.component-body {
    padding: 25px;
}

.component-body p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--bark-dark);
}

.component-body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.component-body ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--bark-dark);
    line-height: 1.6;
}

.component-body ul li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: var(--mystic-purple);
}

.example {
    background: rgba(139, 122, 184, 0.15);
    padding: 15px 20px;
    border-left: 4px solid var(--mystic-purple);
    border-radius: 5px;
    font-style: italic;
    margin-top: 15px;
}

/* Formula and Data Sources */
.formula-section, .data-sources {
    background: rgba(154, 175, 136, 0.15);
    border: 2px solid var(--sage-green);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.formula-section h3, .data-sources h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.formula-section ul, .data-sources ul {
    list-style: none;
    padding-left: 0;
}

.formula-section ul li, .data-sources ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.formula-section ul li::before, .data-sources ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--sage-green);
    font-weight: 700;
}

.parchment-box {
    background: linear-gradient(135deg, var(--parchment) 0%, #E8D9B8 100%);
    border: 2px solid var(--bark-dark);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px var(--shadow);
    color: var(--bark-dark);
}

.parchment-box label {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

.mystical-select {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    font-size: 1.1rem;
    font-family: 'Merriweather', serif;
    background: white;
    border: 2px solid var(--bark-dark);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mystical-select:hover {
    border-color: var(--mystic-purple);
    box-shadow: 0 0 10px rgba(139, 122, 184, 0.3);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading.hidden {
    display: none;
}

.crystal-ball-loading .orb {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: radial-gradient(circle at 30% 30%, #E8D9F8, var(--mystic-purple));
    border-radius: 50%;
    box-shadow:
        0 0 40px var(--mystic-purple),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.crystal-ball-loading p {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--gold);
}

/* Predictions Grid */
.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

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

/* Prediction Card */
.prediction-card {
    background: linear-gradient(135deg, rgba(212, 197, 185, 0.98) 0%, rgba(232, 217, 184, 0.98) 100%);
    border: 3px solid var(--bark-dark);
    border-radius: 15px;
    padding: 0;
    box-shadow:
        0 10px 35px var(--shadow),
        0 0 0 1px rgba(212, 175, 55, 0.2) inset;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.prediction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.prediction-card:hover {
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(212, 175, 55, 0.4) inset,
        0 0 40px rgba(139, 122, 184, 0.2);
}

.prediction-card:hover::before {
    opacity: 1;
}

.card-header {
    background: linear-gradient(135deg, var(--bark-dark) 0%, #3A3028 100%);
    color: var(--gold);
    padding: 25px;
    border-bottom: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
    box-shadow: 0 1px 8px rgba(212, 175, 55, 0.5);
}

.matchup {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.team {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    vertical-align: middle;
}

.team-logo-inline {
    width: 26px;
    height: 26px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 4px;
}

.winner-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
}

.vs {
    margin: 0 15px;
    opacity: 0.7;
    font-size: 1.2rem;
}

.game-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--bark-light);
    font-style: italic;
}

@media (max-width: 600px) {
    .game-info {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

/* Prediction Main Section */
.prediction-main {
    padding: 30px;
    background: rgba(255, 255, 255, 0.5);
}

.crystal-vision {
    text-align: center;
    margin-bottom: 30px;
}

.crystal-glow {
    background: radial-gradient(circle, rgba(139, 122, 184, 0.3) 0%, transparent 70%);
    padding: 30px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 20px;
}

.predicted-winner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.winner-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.7));
}

.winner-name {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
}

.predicted-spread {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #6B5694;
    text-align: center;
    margin-top: 8px;
}

.confidence-meter {
    position: relative;
    width: 100%;
    height: 30px;
    background: rgba(74, 63, 53, 0.2);
    border-radius: 15px;
    overflow: hidden;
    margin-top: 15px;
}

.confidence-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--sage-green) 0%, var(--gold) 100%);
    border-radius: 15px;
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
}

.confidence-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    color: var(--bark-dark);
    font-size: 0.9rem;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

/* Vegas Comparison */
.vegas-comparison {
    background: rgba(74, 63, 53, 0.15);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--sage-green);
}

.vegas-comparison h3 {
    font-family: 'Cinzel', serif;
    color: var(--bark-dark);
    margin-bottom: 10px;
}

.vegas-line {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bark-dark);
}

.edge {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--bark-dark);
}

.edge .label {
    font-weight: 600;
    color: var(--bark-dark);
}

.edge .value {
    font-weight: 700;
}

.edge .value.positive {
    color: var(--sage-green);
}

.edge .value.negative {
    color: #C74B4B;
}

/* Wisdom Breakdown */
.wisdom-breakdown {
    padding: 35px;
    background: linear-gradient(135deg, var(--parchment) 0%, #E8D9B8 100%);
    border-top: 3px solid var(--bark-dark);
    position: relative;
}

.wisdom-breakdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bark-dark), transparent);
    box-shadow: 0 1px 3px rgba(74, 63, 53, 0.3);
}

.wisdom-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--bark-dark);
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.scroll-icon {
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.factors {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.factor {
    background: rgba(255, 255, 255, 0.85);
    border-left: 5px solid;
    padding: 18px 20px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.factor::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.factor:hover::before {
    opacity: 0.5;
}

.factor:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.factor.positive {
    border-color: var(--sage-green);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(154, 175, 136, 0.1) 100%);
}

.factor.negative {
    border-color: #C74B4B;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(199, 75, 75, 0.1) 100%);
}

.factor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.factor-name {
    font-weight: 700;
    font-family: 'Cinzel', serif;
    color: var(--bark-dark);
    font-size: 1.05rem;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.factor-points {
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 4px 12px;
    border-radius: 6px;
}

.factor.positive .factor-points {
    color: var(--sage-green);
    background: rgba(154, 175, 136, 0.15);
}

.factor.negative .factor-points {
    color: #C74B4B;
    background: rgba(199, 75, 75, 0.15);
}

.factor-reasoning {
    font-size: 0.98rem;
    color: var(--bark-dark);
    line-height: 1.6;
    opacity: 0.9;
}

.total-score {
    margin-top: 30px;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--bark-dark) 0%, #3A3028 100%);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.total-score .label {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.total-score .score {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(212, 175, 55, 0.5);
}

.btn-view-details {
    width: 100%;
    margin-top: 25px;
    padding: 14px 30px;
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--mystic-purple) 0%, #7361A0 100%);
    color: white;
    border: 2px solid var(--mystic-purple);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-view-details::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.5s ease, height 0.5s ease;
    transform: translate(-50%, -50%);
}

.btn-view-details:hover::before {
    width: 400px;
    height: 400px;
}

.btn-view-details:hover {
    box-shadow:
        0 6px 25px rgba(139, 122, 184, 0.6),
        0 0 40px rgba(139, 122, 184, 0.3);
    border-color: #9D8BC8;
}

/* About Section */
.about-section {
    margin-top: 60px;
}

.about-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--bark-dark);
    margin-bottom: 20px;
}

.about-section p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.accuracy-badge {
    margin-top: 25px;
    padding: 15px;
    background: rgba(74, 63, 53, 0.15);
    border-radius: 8px;
    text-align: center;
}

.accuracy-badge .label {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--bark-dark);
    margin-right: 10px;
}

.accuracy-badge .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sage-green);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, var(--parchment) 0%, #E8D9B8 100%);
    border: 3px solid var(--gold);
    border-radius: 15px;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    z-index: 1001;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    font-weight: 700;
    background: var(--bark-dark);
    color: var(--gold);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1002;
    line-height: 1;
}

.modal-close:hover {
    background: var(--gold);
    color: var(--bark-dark);
    transform: rotate(90deg);
}

#modal-body {
    padding: 50px 30px 30px;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    #modal-body {
        padding: 45px 20px 20px;
    }
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--bark-dark) 0%, #2C3E2E 100%);
    color: var(--bark-light);
    padding: 40px 0;
    text-align: center;
    border-top: 4px solid var(--gold);
    box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.3);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.footer p {
    margin: 8px 0;
    position: relative;
}

.disclaimer {
    font-size: 0.85rem;
    opacity: 0.7;
    font-style: italic;
    margin-top: 15px;
}

/* Detailed Modal Styles */
.detailed-analysis {
    color: var(--bark-dark);
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--bark-dark);
    text-align: center;
    margin-bottom: 10px;
}

.modal-subtitle {
    text-align: center;
    font-style: italic;
    color: var(--bark-dark);
    margin-bottom: 30px;
    opacity: 0.8;
}

.prediction-summary {
    margin-bottom: 30px;
}

.prediction-result {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.winner-display, .spread-display, .confidence-display {
    text-align: center;
}

.winner-display .label, .spread-display .label, .confidence-display .label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--bark-dark);
}

.winner-name {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--mystic-purple);
}

.spread-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.vegas-section {
    border-top: 2px solid var(--bark-dark);
    padding-top: 20px;
}

.vegas-section h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--bark-dark);
}

.vegas-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

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

.vegas-item .label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.vegas-item .value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.analysis-breakdown {
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--bark-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.factors-detailed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.factor-detailed {
    background: rgba(255, 255, 255, 0.6);
    border-left: 5px solid;
    padding: 18px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.factor-detailed:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.factor-detailed.positive {
    border-color: var(--sage-green);
}

.factor-detailed.negative {
    border-color: #C74B4B;
}

.factor-header-detailed {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.factor-name {
    font-weight: 700;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
}

.factor-points-badge {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 20px;
}

.factor-detailed.positive .factor-points-badge {
    background: rgba(154, 175, 136, 0.3);
    color: var(--sage-green);
}

.factor-detailed.negative .factor-points-badge {
    background: rgba(199, 75, 75, 0.3);
    color: #C74B4B;
}

.factor-reasoning-detailed {
    line-height: 1.7;
    color: var(--bark-dark);
}

.total-analysis-score {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, var(--bark-dark) 0%, #3A3028 100%);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-analysis-score .label {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold);
}

.total-analysis-score .score {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.disclaimer-box {
    background: rgba(139, 122, 184, 0.1);
    border: 2px solid var(--mystic-purple);
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .main-content {
        padding: 30px 0 60px;
    }

    .prediction-card {
        margin: 0;
        border-radius: 12px;
    }

    .card-header {
        padding: 20px 15px;
    }

    .matchup {
        font-size: 1.1rem;
        flex-wrap: wrap;
    }

    .team {
        gap: 6px;
    }

    .team-logo {
        width: 36px;
        height: 36px;
    }

    .vs {
        margin: 0 8px;
        font-size: 1rem;
    }

    .prediction-main {
        padding: 20px 15px;
    }

    .predicted-winner {
        font-size: 1.3rem;
    }

    .winner-logo {
        width: 54px;
        height: 54px;
    }

    .predicted-spread {
        font-size: 0.9rem;
    }

    .confidence-meter {
        max-width: 100%;
    }

    .wisdom-breakdown {
        padding: 20px 15px;
    }

    .factor {
        padding: 12px;
    }

    .factor-name {
        font-size: 0.95rem;
    }

    .factor-reasoning {
        font-size: 0.85rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .prediction-result {
        grid-template-columns: 1fr;
    }

    .winner-name {
        font-size: 1.5rem;
    }

    .spread-value {
        font-size: 1.6rem;
    }

    .vegas-info {
        flex-direction: column;
    }

    .vegas-comparison {
        padding: 15px;
    }

    .scroll-to-top {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
        font-size: 1.4rem;
    }
}

/* =================================
   Quick Summary View
   ================================= */
.quick-summary {
    margin-bottom: 30px;
}

.quick-summary h3 {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
    text-align: center;
}

.quick-picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .quick-picks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .quick-picks-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .quick-pick-card {
        padding: 12px;
    }

    .quick-pick-logo {
        width: 40px;
        height: 40px;
    }

    .quick-pick-abbr {
        font-size: 0.8rem;
    }

    .quick-pick-winner-logo {
        width: 50px;
        height: 50px;
    }

    .quick-pick-time {
        font-size: 0.7rem;
    }
}

.quick-pick-card {
    background: rgba(244, 232, 208, 0.95);
    border: 2px solid var(--bark-dark);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.quick-pick-card:hover {
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    background: rgba(244, 232, 208, 1);
}

.quick-pick-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.quick-pick-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.quick-pick-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.quick-pick-abbr {
    font-size: 0.9rem;
    font-weight: bold;
    color: #2C3E2E;
}

.quick-pick-vs {
    font-size: 0.9rem;
    color: var(--sage-green);
    font-weight: bold;
}

.quick-pick-winner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 12px 0;
}

.quick-pick-winner-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.winner-name {
    font-size: 1.1rem;
    color: #2C3E2E;
    font-weight: bold;
}

.quick-pick-spread {
    font-size: 0.85rem;
    color: #6B5694;
    font-weight: 700;
    margin-top: 2px;
}

.quick-pick-confidence {
    display: inline-block;
    background: var(--mystic-purple);
    color: white;
    padding: 5px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
}

.quick-pick-time {
    font-size: 0.75rem;
    color: #4A3F35;
    margin-top: 8px;
    font-weight: 500;
}

#scroll-to-details {
    display: block;
    margin: 20px auto 0;
}

/* =================================
   Scroll to Top Button
   ================================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--gold) 0%, #C9A12A 100%);
    color: var(--bark-dark);
    border: 3px solid var(--bark-dark);
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 6px 20px var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--mystic-purple) 0%, #9D8BC8 100%);
    color: white;
    box-shadow:
        0 8px 25px rgba(139, 122, 184, 0.6),
        0 0 40px rgba(139, 122, 184, 0.4);
    border-color: var(--mystic-purple);
}

.scroll-to-top.hidden {
    opacity: 0;
    pointer-events: none;
}
