/* ===== CSS Variables & Design System ===== */
:root {
    /* Colors */
    --primary: #FF1744;
    --primary-light: #FF5252;
    --primary-dark: #D50000;
    --secondary: #2979FF;
    --secondary-light: #448AFF;
    --accent: #FFD600;
    --success: #00E676;
    --warning: #FFAB00;
    --error: #FF1744;

    /* Pokemon Type Colors */
    --fire: linear-gradient(135deg, #FF9800 0%, #F44336 100%);
    --water: linear-gradient(135deg, #2196F3 0%, #00BCD4 100%);
    --grass: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    --electric: linear-gradient(135deg, #FFEB3B 0%, #FFC107 100%);
    --normal: linear-gradient(135deg, #9E9E9E 0%, #BDBDBD 100%);
    --dragon: linear-gradient(135deg, #7B1FA2 0%, #E91E63 100%);
    --legendary: linear-gradient(135deg, #673AB7 0%, #FF4081 100%);

    /* Backgrounds */
    --bg-dark: #0A0E27;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(255, 23, 68, 0.3);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Typography */
    --font-body: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== Animated Background ===== */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 23, 68, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(41, 121, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(103, 58, 183, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0A0E27 0%, #1a1f3a 100%);
    z-index: -1;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Session Selector */
.session-selector {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    margin-bottom: var(--space-md);
}

.session-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: auto;
}

.session-btn.active {
    background: var(--primary);
    border-color: var(--primary-light);
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.4);
}

/* Hint Toggle */
.hint-toggle {
    margin-top: var(--space-sm);
    text-align: center;
}

.btn-hint {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hint:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
    border-color: var(--accent);
}

/* Educational Badges */
.badges-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    max-width: 350px;
}

.edu-badge {
    background: linear-gradient(135deg, rgba(41, 121, 255, 0.95) 0%, rgba(103, 58, 183, 0.95) 100%);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 214, 0, 0.3);
    animation: badgeSlideIn 0.5s ease-out;
    position: relative;
}

@keyframes badgeSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.badge-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.badge-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.badge-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

.badge-content {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.badge-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
}

.badge-close:hover {
    background: rgba(255, 23, 68, 0.8);
}

/* Stats Table */
.table-container {
    overflow-x: auto;
    margin-top: 10px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stats-table th {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.stats-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-table tr:last-child td {
    border-bottom: none;
}

.status-tag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-tag.success {
    background: rgba(0, 230, 118, 0.2);
    color: var(--success);
}

.status-tag.neutral {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* ===== Session Stats & Analysis ===== */
.session-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: rgba(41, 121, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--glass-border);
}

.trainer-info {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary-light);
}

.attempts-remaining {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
}

.final-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1 F));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.final-stat {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-md);
    border-radius: var(--radius-md);
}

.final-stat .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.final-stat .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.analysis-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: left;
    margin-bottom: var(--space-lg);
    border-left: 4px solid var(--primary);
}

.analysis-box h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-light);
}

.analysis-box p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ===== Overlay Screens ===== */
.overlay-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.intro-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    max-width: 480px;
    width: 90%;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg), 0 0 50px rgba(255, 23, 68, 0.2);
}

.intro-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, #FF1744 0%, #FFD600 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-text {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

#trainerNameInput {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 2px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    font-family: var(--font-body);
    text-align: center;
    transition: all 0.3s ease;
}

#trainerNameInput:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.3);
}

/* Session Selector */
.session-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-content: center;
}

.session-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    min-width: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.session-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

.session-btn.active {
    background: linear-gradient(135deg, #FF1744 0%, #F50057 100%);
    border-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.5);
    color: white;
}

#startJourneyBtn {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: 1.1rem;
}

/* ===== Story Box ===== */
.story-box {
    background: rgba(41, 121, 255, 0.1);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary-light);
    margin-bottom: var(--space-md);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Header ===== */
.header {
    text-align: center;
    padding: var(--space-lg) var(--space-md) var(--space-sm);
}

.title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #FF1744 0%, #FF4081 50%, #2979FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.pokeball-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 12px rgba(255, 23, 68, 0.5));
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 600;
    background: linear-gradient(135deg, #FFD600 0%, #FFAB00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md) var(--space-xl);
}

/* ===== Section ===== */
.section {
    margin-bottom: var(--space-xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    position: relative;
    padding-left: var(--space-md);
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(180deg, #FF1744 0%, #2979FF 100%);
    border-radius: 2px;
}

/* ===== Pokemon Grid ===== */
.pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-md);
}

.pokemon-card {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.pokemon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--pokemon-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.pokemon-card:hover::before {
    opacity: 0.15;
}

.pokemon-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.pokemon-card.selected {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 23, 68, 0.4);
}

.pokemon-card.selected::before {
    opacity: 0.2;
}

.pokemon-card>* {
    position: relative;
    z-index: 1;
}

.pokemon-emoji {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--space-xs);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.pokemon-name {
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: var(--space-xs);
}

.pokemon-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.difficulty {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: var(--space-xs);
}

.difficulty.easy {
    background: rgba(0, 230, 118, 0.2);
    color: var(--success);
}

.difficulty.medium {
    background: rgba(255, 171, 0, 0.2);
    color: var(--warning);
}

.difficulty.hard {
    background: rgba(255, 23, 68, 0.2);
    color: var(--error);
}

/* ===== Resources Grid ===== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    backdrop-filter: blur(10px);
}

.resource-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.resource-display {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.resource-card.revealed .resource-display {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: scale(1.02);
}

.resource-icon {
    font-size: 1.5rem;
}

.resource-name {
    flex: 1;
    font-weight: 500;
}

.educational-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* ===== Calculator Card ===== */
.calculator-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    backdrop-filter: blur(10px);
}

.formula-display {
    margin-bottom: var(--space-lg);
}

.formula-line {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: rgba(41, 121, 255, 0.1);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--secondary);
}

.formula-label {
    font-weight: 600;
    color: var(--secondary-light);
}

.formula-text {
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
}

.formula-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
}

.factor {
    text-align: center;
    padding: var(--space-xs);
}

.factor-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.factor-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

/* ===== Probability Result ===== */
.probability-result {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.1) 0%, rgba(41, 121, 255, 0.1) 100%);
    border-radius: var(--radius-lg);
}

.result-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.result-value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #FF1744 0%, #2979FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.result-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.result-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF1744 0%, #FFD600 50%, #00E676 100%);
    border-radius: 6px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.5);
}

/* ===== Multiple Attempts ===== */
.multiple-attempts {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--glass-border);
}

.multiple-attempts h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.attempts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-sm);
}

.attempt-item {
    text-align: center;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.attempt-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
}

.attempt-number {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.attempt-probability {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success);
}

/* ===== Simulator Card ===== */
.simulator-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    backdrop-filter: blur(10px);
}

.simulator-display {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pokemon-display {
    text-align: center;
    z-index: 1;
}

.pokemon-sprite {
    font-size: 6rem;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.pokemon-display .pokemon-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pokemon-probability {
    margin-top: var(--space-xs);
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--radius-md);
    border: 2px solid;
    display: inline-block;
    font-weight: 700;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

.pokemon-probability.high {
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}

.pokemon-probability.medium {
    border-color: var(--warning);
    color: var(--warning);
    box-shadow: 0 0 15px rgba(255, 171, 0, 0.3);
}

.pokemon-probability.low {
    border-color: var(--error);
    color: var(--error);
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.3);
}

.capture-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0;
    pointer-events: none;
}

.capture-animation.active {
    animation: throwBall 1s ease-out;
}

@keyframes throwBall {
    0% {
        opacity: 1;
        transform: translate(-50%, 100%) scale(0.5);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) rotate(360deg);
    }
}

/* ===== Buttons ===== */
.simulator-controls {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    min-width: 200px;
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
}

.btn-primary {
    background: linear-gradient(135deg, #FF1744 0%, #F50057 100%);
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(255, 23, 68, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 23, 68, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-secondary);
}

.btn-icon {
    font-size: 1.5rem;
}

/* ===== Statistics ===== */
.simulator-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== Result Message ===== */
.result-message {
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    clear: both;
}

.result-message.show {
    opacity: 1;
    transform: translateY(0);
}

.result-message.success {
    background: rgba(0, 230, 118, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.result-message.failure {
    background: rgba(255, 23, 68, 0.2);
    color: var(--error);
    border: 1px solid var(--error);
}

/* ===== Education Grid ===== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.education-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-light);
}

.education-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.education-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.formula-box {
    background: rgba(41, 121, 255, 0.1);
    border-left: 3px solid var(--secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--secondary-light);
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-xl);
}

.footer p {
    margin: var(--space-xs) 0;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .pokemon-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .simulator-controls {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        min-width: 100%;
    }

    .formula-breakdown {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pokemon-sprite {
        font-size: 4rem;
    }

    .result-value {
        font-size: 2.5rem;
    }

    .formula-breakdown {
        grid-template-columns: 1fr;
    }
}