/**
 * NEBRASKETBALL - Mission & Underdog Stories
 * Clean, readable design with mission-first approach
 */

/* ============================================
   Mission Section - The Main Hero
   ============================================ */
.mission-section {
    padding: 3rem 1rem;
    background: linear-gradient(180deg,
            var(--background) 0%,
            rgba(208, 0, 0, 0.08) 50%,
            var(--background) 100%);
}

.mission-hero {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.mission-badge {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--husker-red);
    background: rgba(208, 0, 0, 0.1);
    border: 1px solid rgba(208, 0, 0, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.mission-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mission-context {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0 0 2rem 0;
    line-height: 1.5;
}

/* Mission Stats Row */
.mission-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.mission-stat .stat-number {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--husker-red);
    line-height: 1;
}

.mission-stat .stat-desc {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* Stretch Goals */
.mission-extras {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.extra-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--muted);
    margin-right: 0.5rem;
}

.extra-goal {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.extra-goal:hover {
    background: rgba(208, 0, 0, 0.1);
    border-color: rgba(208, 0, 0, 0.3);
    color: var(--text);
}

/* ============================================
   Underdogs Section - Simple List
   ============================================ */
.underdogs-section {
    padding: 3rem 1rem;
    background: var(--background);
}

.underdogs-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.underdogs-section .section-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.underdogs-section .section-header p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Underdogs Grid */
.underdogs-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Individual Underdog Item */
.underdog-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.underdog-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.underdog-year {
    flex-shrink: 0;
    width: 50px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--husker-red);
    text-align: center;
}

.underdog-info {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
}

.underdog-info strong {
    color: var(--text);
    font-weight: 600;
}

/* Featured Item (Indiana) */
.underdog-item.featured {
    background: rgba(255, 213, 79, 0.08);
    border-color: rgba(255, 213, 79, 0.2);
}

.underdog-item.featured:hover {
    background: rgba(255, 213, 79, 0.12);
}

/* Nebraska Quest Item */
.underdog-item.nebraska-quest {
    background: linear-gradient(135deg,
            rgba(208, 0, 0, 0.15) 0%,
            rgba(208, 0, 0, 0.08) 100%);
    border: 2px solid rgba(208, 0, 0, 0.4);
    margin-top: 0.5rem;
    position: relative;
}

.underdog-item.nebraska-quest:hover {
    background: linear-gradient(135deg,
            rgba(208, 0, 0, 0.2) 0%,
            rgba(208, 0, 0, 0.12) 100%);
    border-color: rgba(208, 0, 0, 0.6);
}

.underdog-item.nebraska-quest .underdog-year {
    color: var(--husker-gold);
    font-size: 1rem;
}

.underdog-item.nebraska-quest .underdog-info strong {
    color: var(--husker-red);
    font-size: 1rem;
}

.quest-arrow {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--husker-red);
    animation: arrow-pulse 1.5s ease-in-out infinite;
}

@keyframes arrow-pulse {

    0%,
    100% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(5px);
        opacity: 0.6;
    }
}

/* ============================================
   Hero Section - Highest Ever Crown
   ============================================ */
.highest-ever-value {
    font-size: 2rem !important;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
    animation: crown-pulse 2s ease-in-out infinite;
}

@keyframes crown-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
}

.highest-ever-label {
    font-size: 0.7rem !important;
    line-height: 1.3;
}

.highest-ever-label em {
    font-style: normal;
    color: var(--husker-gold);
    font-weight: 600;
}

/* ============================================
   Streak Indicator (Schedule Page)
   ============================================ */
.streak-indicator {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg,
            rgba(208, 0, 0, 0.1) 0%,
            rgba(208, 0, 0, 0.05) 100%);
    border: 1px solid rgba(208, 0, 0, 0.3);
    border-radius: 12px;
}

.streak-indicator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.streak-badge {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--husker-red);
}

.streak-count {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--husker-red);
    line-height: 1;
}

.streak-viz {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.streak-win {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.streak-win:hover {
    transform: scale(1.15);
    z-index: 1;
}

.streak-win .win-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--background);
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 4px;
}

.streak-win:hover .win-tooltip {
    display: block;
}

.streak-win.ranked {
    background: linear-gradient(135deg, #ffd54f 0%, #f59e0b 100%);
    color: #000;
}

.streak-win.nit {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.streak-next {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--muted);
}

.loading-dots {
    color: var(--muted);
    font-size: 0.8rem;
}

/* Light mode for streak indicator */
[data-theme="light"] .streak-indicator {
    background: linear-gradient(135deg,
            rgba(208, 0, 0, 0.08) 0%,
            rgba(208, 0, 0, 0.03) 100%);
}

[data-theme="light"] .streak-win .win-tooltip {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .streak-next {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Selected win detail panel - shows on tap for mobile */
.streak-detail {
    display: none;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text);
    text-align: center;
    animation: fade-in 0.2s ease;
}

.streak-detail.visible {
    display: block;
}

.streak-detail .detail-game {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: var(--husker-red);
    margin-bottom: 0.25rem;
}

.streak-detail .detail-score {
    color: var(--muted);
    font-size: 0.8rem;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile hint text */
.streak-hint {
    display: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--muted);
    text-align: center;
    margin-top: 0.75rem;
}

[data-theme="light"] .streak-detail {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Mobile - Streak Indicator responsive */
@media (max-width: 768px) {
    /* Reorder schedule section on mobile - Next Game first */
    .schedule-section {
        display: flex;
        flex-direction: column;
    }

    .schedule-section .section-header {
        order: 1;
    }

    .schedule-section #dynamic-next-game {
        order: 2;
    }

    .schedule-section .streak-indicator {
        order: 3;
    }

    .schedule-section .schedule-grid {
        order: 4;
    }

    .streak-indicator {
        margin: 0 1rem 2rem 1rem;
        padding: 1rem 1.25rem;
    }

    .streak-win {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }

    .streak-next {
        width: 24px;
        height: 24px;
    }

    /* Hide hover tooltips on mobile */
    .streak-win .win-tooltip {
        display: none !important;
    }

    /* Show hint and enable tap behavior */
    .streak-hint {
        display: block;
    }

    /* Highlight selected win */
    .streak-win.selected {
        transform: scale(1.2);
        box-shadow: 0 0 0 2px var(--husker-red);
    }
}

@media (max-width: 480px) {
    .streak-indicator {
        margin: 0 0.75rem 1.5rem 0.75rem;
        padding: 1rem;
    }

    .streak-badge {
        font-size: 0.7rem;
    }

    .streak-count {
        font-size: 1.5rem;
    }

    .streak-win {
        width: 22px;
        height: 22px;
        font-size: 0.55rem;
        border-radius: 3px;
    }

    .streak-next {
        width: 22px;
        height: 22px;
    }

    .streak-viz {
        gap: 3px;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .mission-section {
        padding: 2.5rem 1rem;
    }

    .mission-stats {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
    }

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

    .mission-stat .stat-desc {
        font-size: 0.65rem;
    }

    .mission-extras {
        gap: 0.4rem;
    }

    .extra-label {
        width: 100%;
        text-align: center;
        margin-bottom: 0.25rem;
        margin-right: 0;
    }

    .underdogs-section {
        padding: 2rem 1rem;
    }

    .underdog-item {
        padding: 0.75rem 1rem;
    }

    .underdog-year {
        width: 40px;
        font-size: 0.8rem;
    }

    .underdog-info {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .mission-title {
        font-size: 1.75rem;
    }

    .mission-context {
        font-size: 1rem;
    }

    .mission-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .mission-stat {
        flex: 0 0 calc(33% - 0.5rem);
    }

    .mission-stat .stat-number {
        font-size: 1.5rem;
    }

    .underdog-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .underdog-year {
        width: auto;
        padding-right: 0.5rem;
        border-right: 2px solid var(--husker-red);
    }

    .underdog-info {
        flex: 1 1 100%;
        font-size: 0.8rem;
    }

    .underdog-item.nebraska-quest .underdog-info {
        flex: 1;
    }
}

/* ============================================
   Light Mode Adjustments
   ============================================ */
[data-theme="light"] .mission-section {
    background: linear-gradient(180deg,
            var(--background) 0%,
            rgba(208, 0, 0, 0.05) 50%,
            var(--background) 100%);
}

[data-theme="light"] .underdog-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .underdog-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .mission-stats {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .extra-goal {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}