/* Styles pour les statistiques et l'UI principale */

.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.score-container, .clicks-per-second {
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.8), rgba(30, 30, 30, 0.8));
    border-radius: 10px;
    padding: 1rem 2rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 0, 122, 0.3);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 300px;
}

.score-container:hover, .clicks-per-second:hover {
    box-shadow: 0 0 30px rgba(255, 0, 122, 0.5);
}

.score-label, .cps-label {
    display: block;
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

#score, #cps {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 0, 122, 0.7);
}

.stats-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0 2rem;
    width: 100%;
    max-width: 800px;
}

.stat-item {
    background: rgba(30, 30, 30, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
}

.stat-item i {
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: #ccc;
    margin-right: 0.3rem;
}

/* Météo */
.weather-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(40, 40, 50, 0.8), rgba(20, 20, 30, 0.8));
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.weather-container i {
    font-size: 1.5rem;
    color: var(--gold-color);
}

.weather-info {
    display: flex;
    flex-direction: column;
}

#weather-name {
    font-weight: bold;
    color: white;
}

#weather-effect-production, #weather-effect-critical {
    font-size: 0.8rem;
    color: #bbb;
}

/* Combo */
.combo-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1.5rem;
}

.combo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.combo-header span:first-child {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
}

#combo-counter {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

#combo-multiplier {
    font-size: 1rem;
    color: var(--gold-color);
}

.combo-bar {
    height: 10px;
    width: 100%;
    background-color: rgba(50, 50, 50, 0.5);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    display: none;
}

.combo-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color));
    transform-origin: left;
    animation: combo-decay var(--combo-decay-time, 3s) linear;
}

/* Boosts actifs */
.active-boosts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 600px;
}

.active-boost {
    background: linear-gradient(135deg, rgba(60, 40, 80, 0.7), rgba(40, 20, 60, 0.7));
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 160px;
    max-width: 200px;
    box-shadow: 0 0 10px rgba(100, 50, 150, 0.4);
    animation: pulse 2s infinite;
}

.active-boost i {
    font-size: 1.5rem;
    color: var(--gold-color);
    animation: boost-icon-pulse 1.5s infinite;
}

.boost-info {
    display: flex;
    flex-direction: column;
}

.boost-name {
    font-weight: bold;
    color: white;
}

.boost-timer {
    font-size: 0.8rem;
    color: #ccc;
}

/* Bonus quotidien et Prestige */
.daily-bonus-container, .prestige-container {
    background: linear-gradient(135deg, rgba(40, 40, 50, 0.8), rgba(20, 20, 30, 0.8));
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.daily-bonus-container button, .prestige-container button {
    width: 100%;
    padding: 0.8rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#daily-bonus-button {
    background: linear-gradient(135deg, var(--green-color), #2E8B57);
}

#daily-bonus-button:hover {
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    transform: translateY(-2px);
}

#daily-bonus-button:disabled {
    background: linear-gradient(135deg, #666, #444);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#prestige-button {
    background: linear-gradient(135deg, var(--purple-color), #4A148C);
}

#prestige-button:hover {
    box-shadow: 0 0 10px rgba(156, 39, 176, 0.5);
    transform: translateY(-2px);
}

.streak-container, .prestige-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9rem;
    color: #ccc;
}

#daily-streak, #prestige-level, #prestige-multiplier {
    font-weight: bold;
    color: white;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 0, 122, 0.7);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

@keyframes combo-decay {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

@keyframes boost-icon-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .score-container, .clicks-per-second {
        width: 100%;
    }
    
    .stats-details {
        flex-direction: column;
    }
}