/* ========================
   🎮 RobxGames Theme v2.0
   Premium Dark UI Styling
   ======================== */

:root {
  /* Backgrounds */
  --bg-dark: #0d1117;
  --bg-medium: #1f2937;
  --bg-light: #374151;

  /* Accents */
  --accent-yellow: #f59e0b;
  --accent-gold: #d97706;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;

  /* Text */
  --text-light: #f9fafb;
  --text-medium: #d1d5db;
  --text-dark: #9ca3af;

  /* Border & Effects */
  --border-light: #374151;
  --shadow-color: rgba(0, 0, 0, 0.6);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ========== Navbar ========== */
.navbar, .footer-dark {
  background: linear-gradient(90deg, var(--bg-dark), var(--bg-medium));
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.1);
}

.navbar .nav-link {
  padding-left: 1rem;
  padding-right: 1rem;
  color: var(--text-light);
}

.navbar .nav-link:hover {
  color: var(--accent-yellow);
}
@media (min-width: 992px) {
  /* Show dropdown on hover for desktop */
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* Fixes jump issue */
  }

  /* Keep toggle active when hovered */
  .navbar .dropdown:hover > .nav-link {
    color: linear-gradient(90deg, var(--bg-dark), var(--bg-medium)); /* Optional: highlight */
  }
}

/* ========== Footer Styling ========== */

/* Footer link hover effect only in specific sections */
.footer-dark .col-md-2 a,
.footer-dark .col-md-3 a {
  position: relative;
  transition: color 0.3s ease;
}

/* Text color change on hover */
.footer-dark .col-md-2 a:hover,
.footer-dark .col-md-3 a:hover {
  color: #ffc107; /* Yellow */
  text-decoration: none;
}

/* Underline grow animation */
.footer-dark .col-md-2 a::after,
.footer-dark .col-md-3 a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0%;
  background-color: #ffc107;
  transition: width 0.3s ease;
}

.footer-dark .col-md-2 a:hover::after,
.footer-dark .col-md-3 a:hover::after {
  width: 100%;
}

/* Game thumbnail image hover zoom only */
.footer-dark .col-md-3 img.footer-game-thumb {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.footer-dark .col-md-3 li:hover img.footer-game-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
}

/* Game name hover */
.footer-dark .col-md-3 li:hover .footer-game-title {
  color: #ffc107;
}
/* Game section footer styles */
.footer-dark .col-md-3 ul {
  padding-left: 0;
  margin-bottom: 0;
}

/* Game item */
.footer-dark .col-md-3 li {
  margin-bottom: 0.5rem;
  list-style: none;
}

/* Game link */
.footer-dark .col-md-3 a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
  /* Remove underline effect */
  position: relative;
}

/* Remove underline hover effect */
.footer-dark .col-md-3 a::after {
  display: none !important;
}

/* Game thumbnail */
.footer-dark .footer-game-thumb {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Game title */
.footer-dark .footer-game-title {
  font-size: 14px;
  transition: color 0.3s ease;
}

/* Hover effects */
.footer-dark .col-md-3 a:hover .footer-game-thumb {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
}

.footer-dark .col-md-3 a:hover .footer-game-title {
  color: #ffc107;
}


/* ========== Buttons ========== */
.btn-warning {
  background-color: var(--accent-yellow);
  border-color: var(--accent-gold);
  color: var(--bg-dark);
}

.btn-warning:hover {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}

/* ========== Game Card ========== */

@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 auto;
    width: 20%;
  }
}

.game-card {
  background-color: var(--bg-medium);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.35);
}

.game-img {
  height: 160px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 10px 10px 0 0;
}

.game-card:hover .game-img {
  transform: scale(1.05);
}

.card-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 140%;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(255, 193, 7, 0.2), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

/* ========== Footer ========== */
.footer-dark {
  background: linear-gradient(90deg, var(--bg-dark), var(--bg-medium));
  font-size: 15px;
}

.footer-dark a {
  color: var(--text-light);
  transition: 0.2s;
}

.footer-dark a:hover {
  color: var(--accent-yellow);
  text-decoration: underline;
}

.footer-dark img {
  border-radius: 4px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.footer-dark img:hover {
  transform: scale(1.1);
}

/* ========== Game Frame Responsive ========== */
.game-frame-wrapper {
  aspect-ratio: 9 / 4;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

@media (max-width: 768px) {
  .game-frame-wrapper {
    aspect-ratio: 3 / 4;
  }
}

iframe#gameFrame {
  border-radius: 12px;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
}

/* ========== Search Box ========== */
#searchResults {
  max-height: 300px;
  z-index: 9999;
  background-color: var(--bg-medium);
}

#searchResults a {
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

#searchResults a:hover {
  background-color: var(--bg-light);
}

#searchInput::placeholder {
  color: var(--text-medium);
  opacity: 1;
}

/* ========== Utility Classes ========== */
.text-warning {
  color: var(--accent-yellow) !important;
}

.bg-warning {
  background-color: var(--accent-yellow) !important;
  color: var(--bg-dark) !important;
}

hr {
  border-color: var(--border-light);
}
