/* ============================================
   MARMOTTE WORLD - SCORES CSS
   ============================================

   Note: Les styles principaux du Centre des Scores
   sont dans style.css (scores-mega-wrapper, etc.)

   Ce fichier contient des styles additionnels
   et les notifications de jeu.

   (c) 2025 Solal Zanovello - Tous droits reserves
   ============================================ */

/* === NOTIFICATIONS DE JEU === */
.game-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(124, 58, 237, 0.95));
    color: #fff;
    padding: 15px 30px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    z-index: 10000;
    box-shadow:
        0 10px 40px rgba(139, 92, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 90%;
    text-align: center;
}

.game-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Types de notifications */
.game-notification.notification-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
    box-shadow:
        0 10px 40px rgba(16, 185, 129, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.game-notification.notification-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
    box-shadow:
        0 10px 40px rgba(239, 68, 68, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.game-notification.notification-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
    box-shadow:
        0 10px 40px rgba(245, 158, 11, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.game-notification.notification-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(8, 145, 178, 0.95));
    box-shadow:
        0 10px 40px rgba(6, 182, 212, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* === AMELIORATIONS SCORES MEGA === */
.scores-mega-wrapper .scores-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 15px;
}

.scores-mega-wrapper .scores-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--primary, #8b5cf6);
    border-radius: 50%;
    animation: spinLoader 1s linear infinite;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

.scores-mega-wrapper .scores-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.scores-mega-wrapper .scores-empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* === BOUTONS HEADER SCORES === */
.scores-header-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-refresh-scores,
.btn-export-scores {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(124, 58, 237, 0.3));
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-refresh-scores:hover,
.btn-export-scores:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(124, 58, 237, 0.5));
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.btn-refresh-scores:active,
.btn-export-scores:active {
    transform: translateY(0);
}

.btn-export-scores {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.3));
    border-color: rgba(16, 185, 129, 0.5);
}

.btn-export-scores:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(5, 150, 105, 0.5));
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
}

.btn-export-scores .export-icon {
    transition: transform 0.3s ease;
}

.btn-export-scores:hover .export-icon {
    transform: translateY(2px);
}

.btn-refresh-scores.loading,
.btn-export-scores.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn-refresh-scores.loading .refresh-icon,
.btn-export-scores.loading .export-icon {
    animation: spinIcon 1s linear infinite;
}

@keyframes spinIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-refresh-scores .refresh-icon {
    transition: transform 0.5s ease;
}

.btn-refresh-scores:hover .refresh-icon {
    transform: rotate(180deg);
}

/* === NOTICE VISITEUR === */
.visitor-scores-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    margin-bottom: 20px;
    color: #fbbf24;
    font-size: 0.9rem;
}

.visitor-scores-notice .notice-icon {
    font-size: 1.2rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .game-notification {
        font-size: 0.9rem;
        padding: 12px 20px;
        max-width: 95%;
    }

    .btn-refresh-scores {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .btn-refresh-scores .refresh-text {
        display: none;
    }
}
