/* Base Styles */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color 0.3s, color 0.3s;
  image-rendering: crisp-edges;
}

.container {
  flex: 1;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}

.dropdown-trigger {
  padding: 10px 15px;
  text-decoration: none;
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0.375rem;
  z-index: 1000;
  min-width: 200px;
  transition: background-color 0.3s;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.platform-icon-container {
  background-color: #8dabd1;
  width: 75px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  will-change: transform; /* Optimization for container */
  transform: translateZ(0); /* Enable GPU rendering */
}

.platform-icon-container:hover {
  transform: scale(1.05) translateZ(0); /* Prevent blurring */
}

.platform-icon-container span, /* For text inside */
.platform-icon-container .platform-icon {
  /* And icon */
  will-change: transform; /* Optimize rendering for hover transforms */
  transform: translateZ(0); /* Avoid blurring for text and icon */
  backface-visibility: hidden;
}

.game-card .platform-icon {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  image-rendering: crisp-edges;
}

/* Discord Button */
.discord-button {
  display: flex;
  align-items: center;
  background-color: #5865f2;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s ease-in-out;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.discord-button:hover {
  transform: scale(1.05);
}

.discord-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

/* Theme Toggle Button */
body.dark-mode #theme-toggle {
  background-color: #2d3748;
  color: #f7fafc;
}

body.light-mode #theme-toggle {
  background-color: #e2e8f0;
  color: #1a202c;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #1a202c;
  color: #f7fafc;
}

body.dark-mode .bg-gray-800 {
  background-color: #2d3748;
}

body.dark-mode .text-gray-400 {
  color: #e2e8f0;
}

body.dark-mode .dropdown-menu {
  background-color: #2d3748;
}

body.dark-mode .dropdown-menu a {
  color: #f7fafc;
}

body.dark-mode .dropdown-menu a:hover {
  background-color: #4a5568;
}

body.dark-mode .dropdown-trigger {
  color: white;
}

/* Light Mode Styles */
body.light-mode {
  background-color: #f7fafc;
  color: #1a202c;
}

body.light-mode .bg-gray-800 {
  background-color: #e2e8f0;
}

body.light-mode .text-gray-400 {
  color: #4a5568;
}

body.light-mode .dropdown-menu {
  background-color: #e2e8f0;
}

body.light-mode .dropdown-menu a {
  color: #1a202c;
}

body.light-mode .dropdown-menu a:hover {
  background-color: #edf2f7;
}

body.light-mode .dropdown-trigger {
  color: black;
}

/* Game Card Styles */
body.light-mode .game-card {
  background-color: #edf2f7;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  transform: perspective(1px) translateZ(0); /* Fix for 3D transform */
}
body.dark-mode .game-card {
  background-color: #2d3748;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
  transform: perspective(1px) translateZ(0); /* Fix for 3D transform */
}

.game-card h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.game-card p {
  color: #a0aec0; /* Gray color for the description */
  margin-bottom: 1rem;
}

.game-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.4s ease-in-out;
}

.game-card:hover img {
  transform: scale(1.1); /* Slightly zoom in on hover */
} /* NEW Flair Style */

/* Keyframes for pulsing animation */
@keyframes pulseNew {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(255, 89, 94, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 89, 94, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(255, 89, 94, 0.4);
  }
}
@keyframes pulseUpdated {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(0, 180, 216, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.4);
  }
}

.game-card:hover .updated-flair {
  animation: pulseUpdated 2s infinite ease-in-out;
}

.game-card:hover .new-flair {
  animation: pulseNew 2s infinite ease-in-out;
} /* Game card styles without hover */
body.dark-mode .game-card,
body.light-mode .game-card {
  transform: scale(1); /* Initial scale */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Initial subtle shadow */
  opacity: 1; /* Full opacity */
  transition: transform 0.7s ease, box-shadow 0.7s ease, opacity 0.7s ease; /* Smooth transitions */
}

/* Hover effect: Pulse glow and scale-up */
body.dark-mode .game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 80px rgba(165, 29, 29, 0.8); /* Intense glow on hover */
}
body.light-mode .game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 80px rgba(29, 134, 165, 0.8); /* Intense glow on hover */
}

/* After hover ends (scale-down and fade-out animation) */
body.dark-mode .game-card:not(:hover),
body.light-mode .game-card:not(:hover) {
  transform: scale(1); /* Back to original size */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  opacity: 1; /* Full opacity */
  transition: transform 0.7s ease, box-shadow 0.7s ease, opacity 0.7s ease; /* Smooth transition on hover out */
}

/* Disable animations on page load */
body.dark-mode .game-card,
body.light-mode .game-card {
  will-change: transform, box-shadow, opacity; /* Optimize for animation */
  transition: none; /* Disable transitions initially */
}

/* Once the card is hovered, enable transitions */
body.dark-mode .game-card:hover,
body.light-mode .game-card:hover {
  transition: transform 0.7s ease, box-shadow 0.7s ease, opacity 0.7s ease; /* Enable transitions only after hover */
} /* Dark Mode Styles */
body.dark-mode .modal-content {
  background-color: #1a202c;
  color: #fff; /* Light text in dark mode */
  border-color: #444;
}

body.dark-mode .close {
  color: #aaa;
}

body.dark-mode .close:hover {
  color: #fff;
}

/* Light Mode Styles */
body.light-mode .modal-content {
  background-color: #f9f9f9;
  color: #333; /* Dark text in light mode */
  border-color: #ddd;
}

body.light-mode .close {
  color: #555;
}

body.light-mode .close:hover {
  color: #333;
}

.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

/* Megaphone button styles */
.update-btn {
  position: absolute; /* Position it relative to the game card */
  top: 10px; /* Adjust as needed */
  left: 10px; /* Adjust as needed */
  border-radius: 50%; /* Circle shape */
  padding: 10px; /* Spacing around the icon */
  display: flex; /* Center the icon */
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  cursor: pointer; /* Pointer cursor on hover */
  transition: background-color 0.3s; /* Smooth transition */
  z-index: 10;
}
body.light-mode .update-btn {
  background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent background */
}
body.light-mode .update-btn:hover {
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
}
body.dark-mode .update-btn {
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent background */
}
body.dark-mode .update-btn:hover {
  background-color: rgba(255, 255, 255, 0.4); /* Semi-transparent background */
}
body.light-mode .megaphone-icon {
  font-size: 24px; /* Adjust icon size */
  color: white; /* Icon color */
}
body.dark-mode .megaphone-icon {
  font-size: 24px; /* Adjust icon size */
  color: black; /* Icon color */
}
/* Dark Mode */
body.dark-mode .modal-content {
  background-color: #1a202c;
  color: #fff;
  border-color: #444;
}

body.dark-mode .update-section h3 {
  color: #fff;
}

/* Light Mode */
body.light-mode .modal-content {
  background-color: #f9f9f9;
  color: #333;
  border-color: #ddd;
}

body.light-mode .update-section h3 {
  color: #333;
}
.modal {
  display: none;
  position: fixed;
  z-index: 50;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: hidden; /* Prevent entire modal from scrolling */
}

.modal-content {
  background-color: #1a202c;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-height: 80%;
  overflow-y: auto; /* Scrollbar inside modal */
  border-radius: 8px;
}

/* Prevent page from scrolling when modal is open */
/* Scrollbar styling */
.modal-content::-webkit-scrollbar {
  width: 10px; /* Width of the scrollbar */
}

.modal-content::-webkit-scrollbar-track {
  background: #2d3748; /* Background of the scrollbar track (dark) */
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: #4a5568; /* Scrollbar color */
  border-radius: 10px;
  border: 2px solid #2d3748; /* Adds padding around the thumb */
}

/* Hover effect for scrollbar thumb */
.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #718096; /* Lighter color on hover */
}

/* Dark mode styling */
body.dark-mode .modal-content::-webkit-scrollbar-track {
  background: #1a202c; /* Darker track for dark mode */
}

body.dark-mode .modal-content::-webkit-scrollbar-thumb {
  background-color: #4a5568; /* Scrollbar thumb in dark mode */
  border: 2px solid #1a202c;
}

/* Light mode styling */
body.light-mode .modal-content {
  background-color: #f9f9f9;
  color: #333;
}

body.light-mode .modal-content::-webkit-scrollbar-track {
  background: #e2e8f0; /* Lighter track for light mode */
}

body.light-mode .modal-content::-webkit-scrollbar-thumb {
  background-color: #a0aec0; /* Scrollbar thumb in light mode */
  border: 2px solid #e2e8f0;
}

/* Prevent page from scrolling when modal is open */
body.modal-open {
  overflow: hidden; /* Disable scrolling for the page */
}

.update-section {
  margin-bottom: 20px;
}

.update-section h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.update-section p {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 10px;
}

.list-disc {
  list-style-type: disc;
}

ul {
  padding-left: 1.25rem;
}
/* Flair Container */
.flair-container {
  display: flex;
  gap: 8px; /* Space between flairs */
  margin-bottom: 12px; /* Space below the flair container */
  z-index: 10;
}
/* New Flair Style */
.new-flair {
  background-color: #d40000; /* Bright cyan */
  color: white;
  padding: 6px 14px; /* Consistent padding */
  font-size: 0.8rem; /* Consistent font size */
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 188, 212, 0.4);
  letter-spacing: 0.5px;
  pointer-events: none; /* Prevent interaction with flair */
  outline: 2px solid white; /* White outline */
  display: flex; /* Use flexbox for centering */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  height: 24px; /* Fixed height for consistency */
  min-width: 80px; /* Set a minimum width */
}

/* Updated Flair Style */
.updated-flair {
  background-color: #00bcd4; /* Bright yellow */
  color: black;
  padding: 6px 14px; /* Consistent padding */
  font-size: 0.8rem; /* Consistent font size */
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(255, 214, 10, 0.4);
  letter-spacing: 0.5px;
  pointer-events: none; /* Prevent interaction with flair */
  outline: 2px solid white; /* White outline */
  display: flex; /* Use flexbox for centering */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  height: 24px; /* Fixed height for consistency */
  min-width: 80px; /* Set a minimum width */
}
.new-flair,
.updated-flair {
  padding: 0.25rem 0.5rem; /* Adjust as necessary */
  border-radius: 0.25rem; /* Tailwind rounded */
  color: white;
  font-weight: bold;
  text-align: center; /* Center the text */
  white-space: nowrap; /* Prevent text wrapping */
  z-index: 10;
}
