/* Ümumi */
body {
  background: #f0f2f5;
  color: #344054;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 100px;
  min-height: 100vh;
}

/* Sidebar */
/* --- Sol sidebar: yalnız desktop üçün --- */
    nav.sidebar {
      position: fixed;
      top: 0; left: 0; bottom: 0;
      width: 90px;
      background: #fff;
      border-radius: 0 40px 40px 0;
      box-shadow: 0 8px 24px rgba(149, 157, 165, 0.2), inset 0 0 10px #dde4f0;
      display: none; /* default gizlidir, desktopda aktivləşdirəcəyik */
      flex-direction: column;
      align-items: center;
      padding: 20px 0;
      gap: 25px;
      transition: width 0.4s ease;
      z-index: 1000;
    }
    nav.sidebar:hover {
      width: 230px;
      box-shadow: 0 15px 45px rgba(149, 157, 165, 0.3), inset 0 0 15px #dde4f0;
    }
    nav.sidebar h2 {
      font-weight: 700;
      font-size: 1.8rem;
      color: #4f46e5;
      margin-bottom: 2rem;
      opacity: 0;
      transition: opacity 0.3s ease;
      white-space: nowrap;
    }
    nav.sidebar:hover h2 {
      opacity: 1;
    }
    nav.sidebar ul {
      list-style: none;
      width: 100%;
      padding-left: 0;
    }
    nav.sidebar ul li a {
      display: flex;
      align-items: center;
      gap: 15px;
      padding: 12px 20px;
      border-radius: 20px;
      text-decoration: none;
      color: #344054;
      font-weight: 600;
      font-size: 1rem;
      transition: background 0.3s ease, color 0.3s ease;
      white-space: nowrap;
      overflow: hidden;
    }
    nav.sidebar ul li a:hover {
      background: #4f46e5;
      color: #fff;
      box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
    }
    nav.sidebar ul li a i {
      font-size: 1.3rem;
      flex-shrink: 0;
      transition: color 0.3s ease;
      color: #4f46e5;
    }
    nav.sidebar:hover ul li a i {
      color: #fff;
    }
    nav.sidebar ul li a span {
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }
    nav.sidebar:hover ul li a span {
      opacity: 1;
      pointer-events: auto;
    }
    /* Desktopda sidebar görünür */
    @media (min-width: 992px) {
      nav.sidebar {
        display: flex;
      }
      main.content {
        margin-left: 90px;
        transition: margin-left 0.4s ease;
      }
      nav.sidebar:hover ~ main.content {
        margin-left: 230px;
      }
    }

    /* --- Mobil üçün yuxarı navbar --- */
    nav.mobile-navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.5rem 1rem;
      background-color: #4f46e5;
      color: white;
      position: sticky;
      top: 0;
      z-index: 1050;
    }
    nav.mobile-navbar .navbar-toggler {
      border: none;
      background: transparent;
      color: white;
      font-size: 1.5rem;
    }
    nav.mobile-navbar .navbar-brand {
      font-weight: 700;
      font-size: 1.3rem;
    }
    /* Navbar collapsible menyu */
    #mobileCategoriesMenu .nav-link {
      color: #4f46e5;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0.5rem 1rem;
    }
    #mobileCategoriesMenu .nav-link:hover {
      background-color: #e2e6ea;
      border-radius: 6px;
      text-decoration: none;
    }

    /* Mobilda sidebar gizlensin */
    @media (max-width: 991px) {
      main.content {
        margin-left: 0 !important;
        padding: 1rem;
      }
    }


/* Axtarış */
.search-wrapper {
  max-width: 300px;
  width: 100%;
}

.input-group {
  background-color: #f1f3f5;
  border-radius: 50px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.input-group:hover {
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}

.input-group input {
  background: transparent;
  font-size: 0.95rem;
  border: none;
  outline: none;
  transition: box-shadow 0.3s ease, border 0.3s ease;
}

.input-group:focus-within {
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.3);
  border: 1px solid #0d6efd;
}

.input-group button {
  background-color: transparent;
  color: #0d6efd;
}

/* HERO BANNER*/
.hero-banner {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
              url('images/hero-bg.png') center/cover no-repeat;
  height: 60vh;
}

.hero-banner h1, 
.hero-banner p {
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
  .hero-banner {
    height: 40vh;
  }
}


.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px)); /* En məhdudlaşdırıldı */
  gap: 24px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center; /* Ortada saxlayır */
}

.game-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #222;
  text-decoration: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  max-width: 320px; /* Kart çox böyüməsin */
}

.game-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, #007bff, #00d4ff, #00ff9e, #007bff);
  background-size: 400% 400%;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 16px;
  z-index: 0;
  filter: blur(30px);
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

.game-card:hover::before,
.game-card:focus-visible::before {
  opacity: 0.3;
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Sabit nisbət */
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  z-index: 1;
}

.card-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  transition: transform 0.5s ease;
}

.game-card:hover img,
.game-card:focus-visible img {
  transform: scale(1.08);
}

.card-body {
  padding: 20px 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
  position: relative;
}

.game-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111;
}

.game-genre {
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-meta {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  font-size: 0.85rem;
  color: #555;
  font-weight: 600;
}

.game-meta span {
  background-color: #f1f1f1;
  padding: 6px 12px;
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6);
  transition: background-color 0.3s ease;
}

.game-card:hover .game-meta span,
.game-card:focus-visible .game-meta span {
  background-color: #cce7ff;
  color: #007bff;
}

.category-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 123, 255, 0.85);
  color: white;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  user-select: none;
  pointer-events: none;
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .card-body {
    padding: 16px;
  }
  .game-title {
    font-size: 1.1rem;
  }
  .game-genre {
    font-size: 0.85rem;
  }
  .game-meta {
    font-size: 0.8rem;
    gap: 12px;
  }
}



/* Responsive */
@media(max-width: 900px) {
  nav.sidebar {
    width: 60px;
    border-radius: 0 20px 20px 0;
  }
  nav.sidebar:hover {
    width: 200px;
  }
  main.content {
    margin-left: 60px;
    padding: 20px 30px;
  }
  nav.sidebar:hover ~ main.content {
    margin-left: 200px;
  }
}
@media(max-width: 480px) {
  nav.sidebar {
    display: none;
  }
  main.content {
    margin-left: 0;
    padding: 20px 15px;
  }
  /* .search-box {
    max-width: 100%;
  } */
}
@media (max-width: 576px) {
  .search-wrapper {
    max-width: 100%;
    margin-top: 10px;
  }
}
@media (max-width: 768px) {
  body {
    padding-top: 100px;
  }
}


.site-footer {
  background-color: #1e293b;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.footer-icon {
  color: #cbd5e1;
  font-size: 1.2rem;
  margin-right: 12px;
  transition: color 0.3s ease;
}
.footer-icon:hover {
  color: #4f46e5;
}
/* LOGIN */
.admin-login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 100px);
  background: #f0f2f5;
  padding: 40px 20px;
}

.login-form {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-form h2 {
  font-size: 1.8rem;
  color: #4f46e5;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.95rem;
  color: #344054;
  font-weight: 600;
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.login-form button {
  padding: 14px;
  background-color: #4f46e5;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.login-form button:hover {
  background-color: #4338ca;
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}
@media (max-width: 480px) {
  .login-form {
    padding: 30px 20px;
  }
  .login-form h2 {
    font-size: 1.5rem;
  }
}
@media (min-width: 992px) { /* desktop üçün */
  #mainNavbar {
    display: none !important;
  }
}


