/* ===== COMPETITION STYLES - MOBILE FIRST ===== */

/* ===== MOBILE BASE STYLES ===== */
.competition-header {
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .competition-header {
        margin-bottom: 2rem;
        padding: 0;
    }
}

.progress-indicator {
    margin: 1rem 0;
}

@media (min-width: 768px) {
    .progress-indicator {
        margin: 1.5rem 0;
    }
}

.progress-bar-container {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    height: 16px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .progress-bar-container {
        height: 20px;
    }
}

.progress-bar {
    background: linear-gradient(90deg, var(--gold), var(--bridge-green-light));
    height: 100%;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--cream);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

@media (min-width: 768px) {
    .progress-text {
        font-size: 1.1rem;
    }
}

.competition-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (min-width: 576px) {
    .competition-stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .competition-stats {
        gap: 2rem;
        margin-top: 1.5rem;
    }
}

.stat-box {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    min-width: 100px;
    text-align: center;
}

@media (min-width: 768px) {
    .stat-box {
        padding: 1rem 1.5rem;
        min-width: 120px;
    }
}

.stat-box .stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .stat-box .stat-label {
        font-size: 0.9rem;
    }
}

.stat-box .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
}

@media (min-width: 768px) {
    .stat-box .stat-value {
        font-size: 1.8rem;
    }
}

.competition-complete {
    text-align: center;
    padding: 1rem;
}

@media (min-width: 768px) {
    .competition-complete {
        padding: 2rem;
    }
}

.completion-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--cream);
}

@media (min-width: 768px) {
    .completion-header h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
}

.personal-record-badge {
    background: linear-gradient(135deg, var(--gold), #FFD700);
    color: var(--wood-brown);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-block;
    margin: 0.75rem 0;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    animation: pulse 2s infinite;
}

@media (min-width: 768px) {
    .personal-record-badge {
        padding: 1rem 2rem;
        font-size: 1.5rem;
        margin: 1rem 0;
    }
}

@@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.completion-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem auto;
    max-width: 900px;
}

@media (min-width: 576px) {
    .completion-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .completion-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        margin: 2rem auto;
    }
}

.stat-card {
    background: rgba(255, 248, 220, 0.95);
    border: 3px solid var(--wood-brown);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .stat-card {
        padding: 1.5rem;
    }
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-card .stat-icon {
        font-size: 3rem;
    }
}

.stat-card .stat-content {
    color: #212529;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .stat-card .stat-label {
        font-size: 0.9rem;
    }
}

.stat-card .stat-value-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bridge-green);
    line-height: 1;
}

@media (min-width: 768px) {
    .stat-card .stat-value-large {
        font-size: 2.5rem;
    }
}

.stat-card .stat-previous,
.stat-card .stat-percentage,
.stat-card .stat-average,
.stat-card .stat-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .stat-card .stat-previous,
    .stat-card .stat-percentage,
    .stat-card .stat-average,
    .stat-card .stat-subtitle {
        font-size: 0.9rem;
    }
}
        min-width: 100%;
    }

    .completion-stats {
        grid-template-columns: 1fr;
    }

    .personal-record-badge {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
    }

    .completion-header h1 {
        font-size: 2rem;
    }
}
