:root {
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
    --accent: #f7da00; /* Jaune Fortnite */
    --text-main: #ffffff;
    --text-dim: #b3b3b3;
}

.map-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    width: 350px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
}

.map-card:hover { transform: translateY(-5px); }

.map-thumbnail {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.map-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent);
    height: 100%;
    padding: 15px;
    display: flex;
    justify-content: space-between;
}

.tag-status {
    background: var(--accent);
    color: black;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.map-content { padding: 20px; }

.map-header { display: flex; justify-content: space-between; align-items: flex-start; }

.map-title { font-size: 1.2rem; margin: 0; color: var(--text-main); font-weight: 800; }

.engine-tag { font-size: 0.6rem; background: #333; padding: 2px 6px; border-radius: 4px; }

.creator { color: var(--text-dim); font-size: 0.9rem; margin: 5px 0 15px; }
.creator span { color: var(--accent); font-weight: 600; }

.tags-container { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 20px; }

.tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-dim);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
}

.map-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.map-code {
    background: #000;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    gap: 10px;
}

.map-code code { color: var(--text-main); font-weight: bold; letter-spacing: 1px; }

.date { font-size: 0.75rem; color: var(--text-dim); }

body { background-color: #0f111a; color: #fff; }

.main-stats-wrapper {
    background-color: #1a1d26; /* Gris plus clair que le fond */
    border: 1px solid rgba(255,255,255,0.05);
}

.bg-dark-card { background-color: #242832; }

/* Tags style Fortnite.gg */
.badge-tag-gaming {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    color: #a0a0a0;
}

/* Boite de code interactive */
.code-box {
    background: #000;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #333;
}
.code-box:hover { background: #111; border-color: #555; }

/* Amélioration du titre par dégradé */
h1 {
    font-size: 1.8rem !important; /* Taille beaucoup plus raisonnable */
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
    background: linear-gradient(to bottom, #ffffff 60%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

/* Pour le texte "Created by" et "Code:" */
.sub-header {
    color: rgba(255, 255, 255, 0.7) !important; /* Un blanc à 70% d'opacité au lieu de 50% */
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

/* Si tu veux que le mot "BY" ou "Code:" soit un peu plus blanc que le reste */
.sub-header span.label-text {
    color: #cbd5e1; /* Gris bleuté très clair */
    font-weight: 500;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    display: inline-block;
}

/* L'effet d'onde qui part du point */
.live-indicator::after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: #28a745;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Style optionnel pour le label s'il n'est pas déjà défini */
.stat-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank-badge {
    background: #f7da00; /* Jaune */
    color: #000;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Bordure entre les colonnes uniquement sur PC */
@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid rgba(255,255,255,0.1);
        padding-left: 25px;
    }
}

.text-success { color: #2ecc71 !important; }
.text-info { color: #3498db !important; }

/* Un Vert Émeraude Électrique (Plus moderne que le success standard) */
.text-success {
    color: #2effa2 !important; 
    text-shadow: 0 0 15px rgba(46, 255, 162, 0.3); /* Effet de lueur douce */
    font-weight: 900;
}

/* Un Jaune Doré/Ambré (Plus élégant que le warning standard) */
.text-warning {
    color: #ffd43b !important;
    text-shadow: 0 0 10px rgba(255, 212, 59, 0.2);
    letter-spacing: 0.5px;
}

/* Animation de pulsation sur le nombre de joueurs (Optionnel mais très Pro) */
@keyframes pulse-glow {
    0% { filter: drop-shadow(0 0 2px rgba(46, 255, 162, 0.2)); }
    50% { filter: drop-shadow(0 0 8px rgba(46, 255, 162, 0.5)); }
    100% { filter: drop-shadow(0 0 2px rgba(46, 255, 162, 0.2)); }
}

.stat-value.text-success {
    animation: pulse-glow 3s infinite ease-in-out;
}

/* Effet de dégradé sur le titre pour le côté "Premium" */
.gradient-text {
    background: linear-gradient(to right, #fff, #a5a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-history {
    color: #a0a0a0; /* Gris clair pour ne pas voler la vedette à la date */
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s;
    background: rgba(255,255,255,0.05); /* Très léger fond */
    padding: 5px 12px;
    border-radius: 8px;
}

.btn-history:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}

/* Conteneur avec hauteur fixe et scroll */
.table-scroll-container {
    max-height: 450px; /* Ajuste la hauteur selon tes besoins */
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #121212;
}

/* Rend l'en-tête collant en haut pendant le scroll */
.table-fixed-header thead th {
    position: sticky;
    top: 0;
    background: #1a1a1a;
    z-index: 10;
    border-bottom: 2px solid #0d6efd;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    padding: 12px 8px;
}

/* Style des cellules */
.table-fixed-header td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    font-size: 13px;
}

/* Conteneur avec hauteur fixe et scrollbar */
.table-responsive-scroll {
    max-height: 400px; /* Ajuste la hauteur selon tes besoins */
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fixer l'en-tête en haut lors du scroll */
.table-sticky-header thead th {
    position: sticky;
    top: 0;
    background-color: #1a1a1a; /* Même couleur que ton fond de tableau */
    z-index: 10;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1); /* Ligne de séparation sous l'en-tête */
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
}

/* Personnalisation de la scrollbar pour le style sombre */
.table-responsive-scroll::-webkit-scrollbar {
    width: 6px;
}
.table-responsive-scroll::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

/* bouton copy */
.copy-box {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 300px; /* Ajuste selon ton design */
}

.copy-box:hover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
}

.code-text {
    font-family: 'Monaco', 'Consolas', monospace; /* Police code pour le look */
    color: #efefef;
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-copy-icon {
    background: none;
    border: none;
    color: #888;
    transition: color 0.3s;
}

.copy-box:hover .btn-copy-icon {
    color: #0d6efd;
}

/* État quand on a cliqué (Succès) */
.copy-box.copied {
    border-color: #198754;
    background: rgba(25, 135, 84, 0.1);
}
.copy-box.copied .btn-copy-icon {
    color: #198754;
}

.overview-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    height: 100%;
}

.overview-card .label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.overview-card .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

/* Classe spéciale pour les colonnes de 5 (si tu veux 5 cartes par ligne sur PC) */
@media (min-width: 768px) {
    .col-md-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

#datePickerTrigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3) !important;
    filter: brightness(1.1);
}

#actualDatePicker {
    visibility: hidden;
}

/* tabs */
/* Style personnalisé pour les onglets */
.nav-tabs-custom .nav-link {
    color: #888;
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.nav-tabs-custom .nav-link.active {
    color: #007bff; /* Ou la couleur verte de ton bouton Jouer */
    background: transparent;
    border-bottom: 2px solid #007bff;
}

.nav-tabs-custom .nav-link:hover {
    color: #fff;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

/* Le conteneur du graphique plus propre */
.chart-card {
    background: #1e2227; /* Un gris très foncé, presque noir */
    border-radius: 8px;
    padding: 20px;
}

.promo-banner-container {
    position: relative; width: 100%; 
    max-width: 1000px; 
    margin: 30px auto; 
    overflow: hidden; 
    border-radius: 8px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.6); 
    transition: transform 0.3s ease;
}

/** conteneur thumbnail **/
/* Le conteneur qui force la taille */
.map-thumbnail-container {
    width: 100%;
    aspect-ratio: 16 / 9; /* Ratio standard Fortnite */
    overflow: hidden;
    border-radius: 12px;
    background-color: #1a1e23; /* Fond sombre en attendant le chargement */
}

/* L'image qui s'adapte sans se déformer */
.map-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre intelligemment au centre */
    object-position: center; 
    transition: transform 0.3s ease;
}

/* Petit effet de zoom au survol pour le côté "Premium" */
.map-thumbnail-container:hover .map-thumbnail-img {
    transform: scale(1.05);
}

/** Boutons de push **/
.quick-nav-buttons {
    display: flex;
    gap: 12px;
    margin: 15px 0;
    justify-content: center;
    width: 100%;
}

.nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    color: #ffffff;
    /*max-width: 200px;*/
}

/* Style Leaderboard - Bleu/Acier */
.btn-leaderboard {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-bottom: 3px solid #2471a3;
}

/* Style Daily Top - Orange/Feu */
.btn-daily {
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-bottom: 3px solid #ba4a00;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: #fff;
}

.nav-btn:active {
    transform: translateY(1px);
    border-bottom: 0;
}

.nav-btn .icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Optimisation pour Mobile */
@media (max-width: 480px) {
    .nav-btn .text {
        font-size: 12px;
    }
    .quick-nav-buttons {
        gap: 8px;
    }
}

/** Titre et image cliquable **/
.stats-title {
    transition: transform 0.2s ease;
}

.stats-title:hover {
    opacity: 0.8;
    transform: scale(1.01); /* Léger grossissement au survol sur PC */
}

.stats-title:active {
    transform: scale(0.98); /* Effet d'enfoncement au clic */
}

/** Texte Expired pour la page de redeem mais peut être utile partout **/

.text-expired {
    color: #a0a0a0 !important;
}

/* Badge Gris pour l'expiration */
.badge-expired {
    background-color: #4a4a4a; /* Gris foncé */
    color: #d1d1d1;
    border: 1px solid #666;
    font-size: 0.7rem;
    padding: 2px 8px;
}

/* L'icône de l'échec (Cercle avec X) */
.icon-expired {
    color: #888; /* Gris moyen */
    margin-right: 8px;
}

/** Css copy **/
/* État quand le code est copié */
.code-box.copied {
    background-color: rgba(46, 204, 113, 0.2) !important; /* Fond vert léger */
    border-color: #2ecc71 !important; /* Bordure verte flash */
    transform: scale(1.05); /* Effet de zoom léger */
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.3);
}

.code-box.copied span {
    color: #2ecc71 !important; /* Le texte du code devient vert */
    opacity: 1 !important;
}

.code-box.copied button {
    color: #2ecc71 !important;
}

/* Animation de l'icône qui "bounce" */
.code-box.copied i {
    animation: bounce 0.4s ease;
}

@keyframes bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}
