/* ========================================
   CARTES DE JEUX - DESIGN GLASSMORPHISM UNIFIÉ
   Ce fichier est chargé AVANT game-cards-steam.css
   Documentation : /Docs/GLASS_SYSTEM.md
   ======================================== */

/* Variables maintenant centralisées dans variables.css */

/* --- CARTE PRINCIPALE - GLASSMORPHISM SUBTLE AU REPOS --- */
.game-card {
  position: relative;
  /* Glassmorphism SUBTLE - Éléments discrets */
  background: var(--glass-bg-subtle);
  border: 1px solid var(--glass-border-subtle);
  backdrop-filter: var(--glass-backdrop-subtle);
  -webkit-backdrop-filter: var(--glass-backdrop-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: visible; /* Important pour éviter de couper l'effet de zoom */
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: auto;
  width: 100%;
  /* Animation d'entrée cascade (staggered) */
  animation: cardFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--card-index, 0) * 0.05s); /* Cascade effet */
  opacity: 0;
  transform: translateY(20px);
  /* Transition glassmorphism - IMPORTANT: doit être après l'animation */
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.320, 1), 
              box-shadow 0.5s cubic-bezier(0.23, 1, 0.320, 1),
              background 0.3s ease,
              border-color 0.3s ease;
  /* GPU acceleration */
  will-change: transform, box-shadow;
  transform-origin: center center; /* Point d'origine pour le zoom */
}

/* Supprime will-change après animation pour économiser GPU */
.game-card.loaded {
  will-change: auto;
}

/* Mode sombre - Glassmorphism SUBTLE DARK */
body.dark-mode .game-card {
  background: var(--glass-bg-subtle-dark);
  border-color: var(--glass-border-subtle-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* HOVER - Effet DECK DE CARTES : zoom + ombre forte comme si on soulève une carte */
.game-card:hover {
  background: var(--glass-bg-medium);
  border-color: var(--glass-border-medium);
  backdrop-filter: var(--glass-backdrop-medium);
  -webkit-backdrop-filter: var(--glass-backdrop-medium);
  transform: scale(1.12) translateY(-16px) !important; /* !important pour override l'animation */
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 6px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

body.dark-mode .game-card:hover {
  background: var(--glass-bg-medium-dark);
  border-color: var(--glass-border-medium-dark);
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.5),
    0 10px 25px rgba(0, 0, 0, 0.35),
    0 5px 12px rgba(0, 0, 0, 0.25);
}

/* ACTIVE - Feedback tactile premium */
.game-card:active {
  transform: scale(0.98) translateY(2px);
  box-shadow: var(--glass-shadow-subtle);
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

body.dark-mode .game-card:active {
  box-shadow: var(--glass-shadow-subtle-dark);
}

/* Suppression des anciens effets de bordure */
.game-card::before {
  display: none;
}

/* Suppression du fond coloré adaptatif */
.game-card.color-adapted::after {
  display: none;
}

/* Suppression de l'ancien hover-light */
.game-card .hover-light {
  display: none;
}

/* Focus Indicators Premium - Accessibilité et esthétique */
.game-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 6px;
  box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.25),
              0 8px 24px rgba(74, 108, 247, 0.15);
  z-index: 10;
}

body.dark-mode .game-card:focus-visible {
  box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.35),
              0 8px 24px rgba(74, 108, 247, 0.25);
}

/* --- CONTENEUR D'IMAGE - BASE PROPRE --- */
.game-card .game-img-container {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.95), rgba(10, 10, 20, 0.98));
}

body.dark-mode .game-card .game-img-container {
  background: linear-gradient(135deg, rgba(15, 15, 25, 0.98), rgba(8, 8, 18, 1));
}

.game-card .game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  position: relative;
  z-index: 2;
  transition: filter var(--transition-normal) ease, transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1) translateZ(0);
  will-change: transform;
}

.game-card:hover .game-img {
  filter: brightness(1.15);
  transform: scale(1.05) translateZ(0);
}

/* --- SHIMMER OVERLAY - EFFET LUMINEUX QUI VA ET VIENT (OPTIMISÉ) --- */
@keyframes shimmer-sweep {
  0% {
    background-position: -100% 0;
  }
  50% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.game-card .frosted-glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  background-repeat: no-repeat;
}

.game-card:hover .frosted-glass-overlay {
  opacity: 1;
  animation: shimmer-sweep 2.5s ease-in-out infinite;
}

.game-card .game-img.loaded,
.game-card .game-img.lazy-loaded {
  opacity: 1;
}

.game-card .game-img.img-error {
  object-fit: contain;
  filter: grayscale(80%) opacity(60%);
  background: rgba(0, 0, 0, 0.3);
}

/* --- BADGES EN HAUT - BASE PROPRE --- */
.game-card .game-top-info {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 5;
  pointer-events: none;
}

.game-card .game-top-info > * {
  pointer-events: all;
}

/* Badges de score - BASE PROPRE */
.game-card .game-scores-top {
  display: flex;
  gap: 6px;
}

.game-card .game-badge-score {
  height: var(--badge-height);
  padding: var(--badge-padding);
  font-size: var(--badge-font-size);
  font-weight: var(--badge-font-weight);
  color: white;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: var(--badge-gap);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  min-width: fit-content;
  /* AUCUN effet hover/transition */
}

/* Classes de couleur pour badges de score */
.game-card .game-badge-score.metacritic.score-high,
.game-card .game-badge-score.user-rating.score-high-text {
  background: var(--metacritic-bg-high);
  border-color: var(--metacritic-border-high);
  box-shadow: 
    0 4px 16px var(--metacritic-shadow-high),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-card .game-badge-score.metacritic.score-medium,
.game-card .game-badge-score.user-rating.score-medium-text {
  background: var(--metacritic-bg-medium);
  border-color: var(--metacritic-border-medium);
  color: var(--gray-900);
  text-shadow: none;
  box-shadow: 
    0 4px 16px var(--metacritic-shadow-medium),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-card .game-badge-score.metacritic.score-low,
.game-card .game-badge-score.user-rating.score-low-text {
  background: var(--metacritic-bg-low);
  border-color: var(--metacritic-border-low);
  box-shadow: 
    0 4px 16px var(--metacritic-shadow-low),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Badge "Nouveau" - SUPPRIMÉ */
.game-card .game-badge.new {
  display: none; /* Supprime complètement le badge "Nouveau" */
}

/* --- CONTENU DE LA CARTE - Supprimé car on met tout dans l'image --- */
.game-card .game-content {
  display: none; /* Suppression complète du contenu */
}

/* Titre du jeu - Visible au hover avec fond glassmorphism */
.game-card .game-title {
  position: absolute;
  bottom: 50px;
  left: 10px;
  right: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  padding: 12px 14px;
  color: #ffffff;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
  word-wrap: break-word;
  word-break: break-word;
  z-index: 10;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.85));
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  /* AUCUN effet hover/transition */
}

body.dark-mode .game-card .game-title {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.9));
  border-color: rgba(255, 255, 255, 0.2);
}

/* Boîte de date - GLASSMORPHISM */
.game-card .date-box {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  padding: 8px 6px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 3;
  overflow: hidden;
}

body.dark-mode .game-card .date-box {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.game-card .date-box .day {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: #eaeaea;
  text-shadow: 0 2px 8px rgba(0,0,0,0.13);
  position: relative;
  z-index: 10;
}

body.dark-mode .game-card .date-box .day {
  color: #eaeaea;
}

.game-card .date-box .month {
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1;
  color: #eaeaea;
  margin-top: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.13);
  position: relative;
  z-index: 10;
}

body.dark-mode .game-card .date-box .month {
  color: #eaeaea;
}

.game-card .date-box .year {
  font-size: 0.6rem;
  font-weight: 500;
  line-height: 1;
  color: #eaeaea;
  margin-top: 2px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.13);
  position: relative;
  z-index: 10;
}

body.dark-mode .game-card .date-box .year {
  color: #eaeaea;
}

.game-card .date-box.unavailable {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--gray-500);
}

/* --- TAG DE GENRE - BAS-GAUCHE AVEC GLASSMORPHISM COLORÉ --- */
.game-card .game-genre-tag {
  position: absolute;
  bottom: 10px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  /* Background et border seront surchargés par les classes de genre spécifiques dans genres.css */
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border-left: none;
  border-radius: 0 8px 8px 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-transform: capitalize;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 50%;
}

/* Dark mode adjustments - les couleurs spécifiques restent prioritaires */
body.dark-mode .game-card .game-genre-tag {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Responsive: Tags de genre sur cartes */
@media (max-width: 768px) {
  .game-card .game-genre-tag {
    height: 28px;
    font-size: 0.7rem;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .game-card .game-genre-tag {
    height: 26px;
    font-size: 0.65rem;
    padding: 0 8px;
  }
}
/* --- LAYOUT : Row supprimée avec les tags/plateformes --- */
/* .genre-platforms-row, .game-platforms-container et .game-platform supprimés */

/* --- ANIMATIONS ET TRANSITIONS --- */
@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-card.fade-in {
  animation: cardFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- RESPONSIVE DESIGN - Layout ultra-condensé --- */
@media (max-width: 768px) {
  :root {
    --card-border-radius: 6px;
  }
  
  .game-card {
    height: auto;
  }
  
  .game-card .game-img-container {
    aspect-ratio: 3 / 4;
  }
  
  .game-card .game-title {
    font-size: 1rem;
    padding: 12px;
    width: 85%;
  }
  
  /* Spécificité augmentée pour override sans !important */
  .game-card .game-card-link .genre-platforms-row {
    padding: 10px;
    bottom: 0; /* Remis à l'intérieur de la carte */
    /* Suppression de toute bordure/fond */
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    /* backdrop-filter géré par .game-card parent */
  }
  
  .game-card .date-box {
    min-width: 32px;
    padding: 3px 2px;
  }
  
  .game-card .date-box .day {
    font-size: 0.9rem;
  }
  
  .game-card .date-box .month {
    font-size: 0.5rem;
  }
  
  .game-card .date-box .year {
    font-size: 0.5rem;
  }
  
  .game-card .game-platform { width: 24px; height: 24px; }
  
  .game-card .game-platform iconify-icon { font-size: 1em; }
  

}

@media (max-width: 576px) {
  .game-card {
    height: auto;
  }
  
  .game-card .game-img-container {
    aspect-ratio: 3 / 4;
  }
  
  .game-card .game-title {
    font-size: 0.9rem;
    padding: 8px 10px;
    width: 90%;
  }
  
  /* Spécificité augmentée pour override sans !important */
  .game-card .game-card-link .genre-platforms-row {
    padding: 6px 8px;
    bottom: 0; /* Remis à l'intérieur de la carte */
    /* Suppression de toute bordure/fond */
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    /* backdrop-filter géré par .game-card parent */
  }
  
  .game-card .date-box {
    min-width: 28px;
    padding: 2px 1px;
  }
  
  .game-card .date-box .day {
    font-size: 0.85rem;
  }
  
  .game-card .date-box .month {
    font-size: 0.45rem;
  }
  
  .game-card .date-box .year {
    font-size: 0.45rem;
  }
  
  .game-card .game-platform { width: 22px; height: 22px; }
  
  .game-card .game-platform iconify-icon { font-size: 0.95em; }
  

}

/* --- ÉTATS SPÉCIAUX --- */
/* Section "Hier" avec opacité réduite */
#yesterdaySection .game-card {
  opacity: 0.85;
}

#yesterdaySection .game-card:hover,
#yesterdaySection .game-card:focus-visible {
  opacity: 1;
}

/* Cartes en mode recherche */
.search-active .game-card {
  animation-delay: calc(var(--card-index, 0) * 0.1s);
}

/* --- ACCESSIBILITÉ --- */
/* Tooltip aria-label désactivé pour éviter l'affichage du texte */
.game-card[aria-label] {
  position: relative;
}





/* ========================================
   SUPPORT POUR LES SKELETONS
   ======================================== */
.skeleton-card {
  background: var(--card-glass-bg);
  border: 1px solid var(--card-glass-border);
  border-radius: var(--card-border-radius);
  box-shadow: var(--card-glass-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: var(--card-padding);
  border: 1px solid transparent;
  height: auto;
}

body.dark-mode .skeleton-card {
  background: var(--card-glass-bg-dark);
  border-color: var(--card-glass-border-dark);
  box-shadow: var(--card-glass-shadow-dark);
}

.skeleton-image {
  aspect-ratio: 3 / 4;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.1) 25%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
  margin-bottom: 0; /* Plus de marge car pas de contenu en dessous */
}

body.dark-mode .skeleton-image {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.05) 25%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0.05) 75%);
}

.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.1) 25%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--tag-border-radius);
  margin-bottom: 8px;
}

body.dark-mode .skeleton-line {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.05) 25%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0.05) 75%);
}

@keyframes skeletonShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-line.title {
  width: 75%;
  height: 20px;
  margin-bottom: 12px;
}

.skeleton-line.short {
  width: 55%;
}

.skeleton-line.tag {
  width: 35%;
  height: 12px;
  display: inline-block;
  margin-right: 8px;
  border-radius: var(--tag-border-radius);
}

/* ========================================
   LOGOS DESIGN POUR SECTIONS TEMPORELLES
   ======================================== */

/* Logo design pour les sections */
.logo-design {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 40px;
    padding: 0 16px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary), hsl(from var(--primary) h s calc(l + 10%)));
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    position: relative;
    z-index: 5; /* Laisse passer les menus de filtres (z > 1500 au besoin) */
    overflow: hidden;
    transition: all var(--transition-normal) var(--transition-easing);
    gap: 8px;
}

.logo-design::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: 6px;
    pointer-events: none;
}

.logo-design .logo-icon {
    font-size: 1.1rem;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    z-index: 1;
    position: relative;
    flex-shrink: 0;
}

.logo-design .logo-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
    position: relative;
    line-height: 1;
    white-space: nowrap;
}

/* Logo spécifique pour "Hier" */
.logo-yesterday {
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Logo spécifique pour "Aujourd'hui" */
.logo-today {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Logo spécifique pour "Prochainement" */
.logo-upcoming {
    background: linear-gradient(135deg, #17a2b8, #138496);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* Mode sombre */
body.dark-mode .logo-design {
    background: linear-gradient(135deg, var(--primary), hsl(from var(--primary) h s calc(l - 10%)));
}

body.dark-mode .logo-yesterday {
    background: linear-gradient(135deg, #495057, #343a40);
}

body.dark-mode .logo-today {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

body.dark-mode .logo-upcoming {
    background: linear-gradient(135deg, #138496, #0f6674);
}

/* Responsive design */
@media (max-width: 768px) {
    .logo-design {
        height: 36px;
        padding: 0 14px;
        gap: 6px;
    }
    
    .logo-design .logo-icon {
        font-size: 1rem;
    }
    
    .logo-design .logo-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .logo-design {
        height: 32px;
        padding: 0 12px;
        gap: 5px;
    }
    
    .logo-design .logo-icon {
        font-size: 0.9rem;
    }
    
    .logo-design .logo-text {
        font-size: 0.65rem;
    }
}

/* Animation d'entrée */
.logo-design {
    animation: logoFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes logoFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   STYLES DE SECTIONS TEMPORELLES
   ======================================== */

.time-section { 
    margin-bottom: 35px; 
    transition: opacity var(--transition-speed-slow) ease-in-out; 
}

/* Cache sections temporelles si recherche active */
.search-active .time-section-hidden { 
    display: none; 
}

.time-heading { 
    display: flex; 
    align-items: center; 
    margin-bottom: 18px; 
    padding-bottom: 12px; 
    border-bottom: 1px solid var(--border-subtle-light); 
}

body.dark-mode .time-heading { 
    border-bottom-color: var(--border-subtle-dark); 
}

.time-icon { 
    margin-right: 18px; 
    flex-shrink: 0; 
}

.time-title { 
    font-size: 22px; 
    font-weight: 600; 
    color: var(--text-dark);
}

body.dark-mode .time-title {
    color: var(--text-light);
}

/* Responsive design pour les sections temporelles */
@media (max-width: 768px) {
    .time-title {
        font-size: 20px;
    }
    
    .time-heading {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .time-title {
        font-size: 18px;
    }
    
    .time-heading {
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
}

/* ========================================
   GRILLE PRINCIPALE DES JEUX
   ======================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 20px;
  padding-bottom: 10px;
  overflow: visible; /* Permet aux cartes de déborder lors du zoom */
}

/* Réduction progressive du nombre de colonnes pour garder des cartes larges et au ratio constant */
@media (max-width: 1360px) { .games-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 1100px) { .games-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 820px)  { .games-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 576px)  { .games-grid { grid-template-columns: repeat(1,1fr); gap: 16px; } }

/* Visibilité de la section "Hier" contrôlée par JS via classe sur body */
.hide-yesterday #yesterdaySection { 
    display: none; 
}

/* ========================================
   TAGS DE GENRE - RÉFÉRENCE VERS GENRE-TAGS.CSS
   ======================================== */

/* Les styles des tags de genre sont maintenant centralisés dans genre-tags.css */

/* Effets visuels améliorés pour badges Metacritic (optimisé GPU) */
.game-card .game-badge-score.metacritic {
  position: relative;
  overflow: hidden;
}

.game-card .game-badge-score.metacritic iconify-icon {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* ========================================
   METACRITIC SCORE COLORS (from game-cards-steam.css)
   ======================================== */

/* Classes de couleur Metacritic - conservées pour fonctionnalité */
.game-card .game-badge-score.metacritic.score-high,
.game-card .game-badge-score.user-rating.score-high-text {
  background: rgba(102, 187, 106, 0.92);
  border-color: rgba(102, 187, 106, 0.4);
}

.game-card .game-badge-score.metacritic.score-medium,
.game-card .game-badge-score.user-rating.score-medium-text {
  background: rgba(255, 193, 7, 0.92);
  border-color: rgba(255, 193, 7, 0.4);
  color: var(--gray-900, #212121);
  text-shadow: none;
}

.game-card .game-badge-score.metacritic.score-low,
.game-card .game-badge-score.user-rating.score-low-text {
  background: rgba(229, 57, 53, 0.92);
  border-color: rgba(229, 57, 53, 0.4);
}

/* ========================================
   PLATFORM LOGOS - INTERCALAIRE DESIGN
   ======================================== */

.game-card-platforms {
  position: absolute;
  right: 0;
  bottom: 10px;
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}

.platform-icon-tab {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  border-radius: 8px 0 0 8px;
  box-shadow: 
    -2px 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: 
    transform var(--transition-normal) var(--transition-easing),
    background var(--transition-fast) ease,
    width var(--transition-normal) var(--transition-easing);
  pointer-events: auto;
  cursor: help;
}

.platform-icon-tab iconify-icon {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast) ease;
}

/* Hover effect - extend tab slightly */
.game-card:hover .platform-icon-tab {
  background: rgba(0, 0, 0, 0.6);
}

.platform-icon-tab:hover {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.25);
}

.platform-icon-tab:hover iconify-icon {
  color: rgba(255, 255, 255, 1);
}

/* Dark mode adjustments */
body.dark-mode .platform-icon-tab {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    -2px 2px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.dark-mode .game-card:hover .platform-icon-tab {
  background: rgba(0, 0, 0, 0.8);
}

body.dark-mode .platform-icon-tab:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive - smaller tabs on mobile */
@media (max-width: 576px) {
  .platform-icon-tab {
    width: 28px;
    height: 28px;
  }
  
  .platform-icon-tab iconify-icon {
    font-size: 16px;
  }
  
  .game-card-platforms {
    gap: 4px;
    padding: 6px 0;
  }
}









