/* Enhanced Professional Gaming Platform Styles - Garud Theme V2 */

:root {
  --gaming-primary: #00e6ff; /* Brighter Cyan */
  --gaming-secondary: #ff4d6d; /* Vibrant Pink-Red */
  --gaming-accent: #a200ff; /* Deep Purple */
  --gaming-dark: #0d0d1a; /* Slightly lighter dark for more contrast */
  --gaming-darker: #080810; /* Deepest dark */
  --gaming-light: #2a2a40; /* Lighter background for elements */
  --gaming-text: #e0e0e0; /* Softer white text */
  --gaming-text-muted: #8a8a9a; /* Muted grey for secondary text */
  --gaming-success: #39ff14; /* Neon Green */
  --gaming-warning: #ffeb3b; /* Bright Yellow */
  --gaming-danger: #ff073a; /* Intense Red */
  --gaming-gradient: linear-gradient(135deg, var(--gaming-primary), var(--gaming-accent));
  --gaming-gradient-hover: linear-gradient(135deg, var(--gaming-accent), var(--gaming-secondary));
  --gaming-shadow: 0 12px 36px rgba(0, 230, 255, 0.4);
  --gaming-shadow-hover: 0 24px 48px rgba(162, 0, 255, 0.5);
  --gaming-border: rgba(255, 255, 255, 0.15);
  --gaming-bg-glass: rgba(255, 255, 255, 0.08);
}

body {
  background: var(--gaming-darker);
  color: var(--gaming-text);
  font-family: 'Orbitron', 'Inter', sans-serif; /* Added Orbitron for a more futuristic feel */
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

.garud-header {
  background: rgba(13, 13, 26, 0.96);
  color: var(--gaming-text);
  border-bottom: 1px solid var(--gaming-border);
  backdrop-filter: blur(18px);
}

.garud-header .zon-container {
  padding-top: 10px;
  padding-bottom: 10px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

* {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

/* Enhanced Container Styles */
.zon-container {
  max-width: 1440px;
  margin: auto;
  padding: 25px;
  position: relative;
  background: var(--gaming-dark);
  border-radius: 20px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.zon-game-container {
  max-width: 1100px;
  margin: auto;
  padding: 25px;
  position: relative;
}

/* Enhanced Header Action Buttons */
.head__action__button {
  position: relative;
  padding: 15px;
  border-radius: 15px;
  background: var(--gaming-bg-glass);
  backdrop-filter: blur(15px);
  border: 1px solid var(--gaming-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
}

.head__action__button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gaming-gradient);
  transition: left 0.4s ease;
  z-index: -1;
}

.head__action__button:hover::before {
  left: 0;
}

.head__action__button svg {
  height: 28px;
  width: 28px;
  z-index: 1;
}

.head__action__button svg path {
  stroke: var(--gaming-text);
  transition: all 0.4s ease;
  stroke-width: 2.5px;
}

.head__action__button:hover {
  transform: translateY(-4px);
  box-shadow: var(--gaming-shadow);
  border-color: var(--gaming-primary);
}

.head__action__button:hover svg path {
  stroke: #ffffff;
  stroke-width: 3px;
}

/* Enhanced Game Grid */
.game {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  z-index: 1;
  background: var(--gaming-light);
  border: 1px solid var(--gaming-border);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gaming-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.game:hover::before {
  opacity: 0.15;
}

.game:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: var(--gaming-shadow-hover);
  border-color: var(--gaming-primary);
}

.new__badge::before {
  content: 'NEW GAME';
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 11px;
  font-weight: 900;
  background: var(--gaming-gradient);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 10;
  box-shadow: 0 6px 16px rgba(0, 230, 255, 0.5);
  animation: pulse 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

.game__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: 30px;
  grid-auto-rows: minmax(220px, auto);
  grid-auto-flow: dense;
  padding: 30px 0;
}

.game.large {
  grid-column-end: span 2;
  grid-row-end: span 2;
}

.game .game__thumb {
  display: block;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.game .game__thumb img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.5s ease;
}

.game:hover .game__thumb img {
  transform: scale(1.15);
}

.game .game_name {
  display: block;
  width: 100%;
  position: absolute;
  bottom: -100%;
  font-weight: 800;
  left: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.8));
  backdrop-filter: blur(12px);
  z-index: 9;
  font-size: 14px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #ffffff;
  border-top: 3px solid var(--gaming-primary);
}

.game:hover .game_name {
  bottom: 0;
}

/* Enhanced Categories */
.game__categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 30px;
  grid-auto-rows: minmax(140px, auto);
  grid-auto-flow: dense;
  padding: 30px 0;
}

.game__categories .category {
  padding: 25px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  background: var(--gaming-light);
  border: 1px solid var(--gaming-border);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game__categories .category::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gaming-gradient);
  opacity: 0.15;
  transition: left 0.4s ease;
  z-index: 1;
}

.game__categories .category:hover::before {
  left: 0;
}

.game__categories .category:hover {
  transform: translateY(-6px);
  box-shadow: var(--gaming-shadow);
  border-color: var(--gaming-primary);
}

.game__categories .category img {
  height: 90px;
  width: 90px;
  object-fit: cover;
  border-radius: 15px;
  margin-right: 25px;
  border: 3px solid var(--gaming-border);
  transition: all 0.4s ease;
  z-index: 2;
  position: relative;
}

.game__categories .category:hover img {
  border-color: var(--gaming-primary);
  transform: scale(1.1);
}

.game__categories .category .category__name {
  font-size: 20px;
  font-weight: 800;
  color: var(--gaming-text);
  transition: all 0.4s ease;
  z-index: 2;
  position: relative;
}

.game__categories .category .category__name:hover {
  color: var(--gaming-primary);
}

.game__categories .category p {
  color: var(--gaming-text-muted);
  text-transform: capitalize;
  font-size: 15px;
  z-index: 2;
  position: relative;
}

/* Enhanced Buttons */
.more_games_button {
  display: inline-block;
  width: fit-content;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  margin-top: 25px;
  background: var(--gaming-gradient);
  padding: 16px 32px;
  border-radius: 30px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.more_games_button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gaming-gradient-hover);
  transition: left 0.4s ease;
  z-index: -1;
}

.more_games_button:hover::before {
  left: 0;
}

.more_games_button:hover {
  transform: translateY(-4px);
  box-shadow: var(--gaming-shadow);
}

/* Enhanced Modal and Drawer Styles */
.search-container,
.menu-container {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  z-index: 9999;
  transition: all 0.5s ease;
  opacity: 0;
  visibility: hidden;
}

.search-container.active,
.menu-container.active {
  opacity: 1;
  visibility: visible;
}

.search-container.active .search-drawer,
.menu-container.active .menu-drawer {
  right: 0;
}

.search-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: calc(100% - 30%);
  height: 100%;
  background: var(--gaming-dark);
  border-left: 1px solid var(--gaming-border);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
  padding: 40px;
  overflow-y: auto;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.15s;
}

.menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 350px;
  height: 100%;
  background: var(--gaming-dark);
  border-left: 1px solid var(--gaming-border);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
  padding: 40px;
  overflow-y: auto;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.15s;
}

.search-drawer form {
  width: 100%;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
  border-radius: 15px;
  background: var(--gaming-bg-glass);
  backdrop-filter: blur(15px);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.search-drawer form input {
  height: 55px;
  width: 100%;
  padding: 0 25px;
  background: transparent;
  border: none;
  color: var(--gaming-text);
  font-size: 18px;
  font-weight: 500;
}

.search-drawer form input::placeholder {
  color: var(--gaming-text-muted);
}

.search-drawer form button {
  padding: 0 25px;
  background: var(--gaming-gradient);
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.4s ease;
  font-size: 18px;
}

.search-drawer form button:hover {
  background: var(--gaming-gradient-hover);
}

.close-drawer {
  display: flex;
  position: absolute;
  top: 25px;
  left: 25px;
  background: var(--gaming-bg-glass);
  backdrop-filter: blur(15px);
  border: 1px solid var(--gaming-border);
  justify-content: center;
  align-items: center;
  font-size: 22px;
  border-radius: 50%;
  height: 48px;
  width: 48px;
  cursor: pointer;
  user-select: none;
  color: var(--gaming-text);
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.close-drawer:hover {
  background: var(--gaming-primary);
  border-color: var(--gaming-primary);
  transform: scale(1.15) rotate(90deg);
}

.close-drawer i {
  margin-top: -2px;
}

.scroll-none::-webkit-scrollbar {
  display: none;
}

.menu-drawer a {
  padding: 18px;
  border: 1px solid var(--gaming-border);
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 15px;
  margin-bottom: 15px;
  transition: all 0.4s ease;
  color: var(--gaming-text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.menu-drawer a:hover {
  color: var(--gaming-primary);
  border-color: var(--gaming-primary);
  background: rgba(0, 230, 255, 0.1);
  transform: translateX(6px);
}

.menu-drawer a:hover svg path {
  stroke: var(--gaming-primary);
}

.menu-drawer a svg path {
  stroke: var(--gaming-text);
  transition: all 0.4s ease;
}

@media screen and (max-width: 500px) {
  .search-drawer { width: calc(100% - 50px); }    
  .menu-drawer { width: calc(100% - 50px); }    
}

/* Enhanced Share Modal */
.share-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
}

.share-modal .modal-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 550px;
  background: var(--gaming-dark);
  border: 1px solid var(--gaming-border);
  transform: translate(-50%, -50%);
  height: auto;
  min-height: 350px;
  border-radius: 25px;
  box-shadow: var(--gaming-shadow-hover);
  padding: 50px;
  color: var(--gaming-text);
}

/* Enhanced Like Button */
.liked svg {
  fill: var(--gaming-danger);
  filter: drop-shadow(0 0 10px rgba(255, 7, 58, 0.7));
}

.liked svg path {
  stroke: var(--gaming-danger);
}

@media screen and (max-width: 578px) {
  .game-meta-container {
    flex-direction: column;
    gap: 20px;
  }
}

/* Enhanced Ads Section */
.ads {
  display: flex;
  justify-content: center;
  margin: 70px 0;
  padding: 25px;
}

.ads img {
  border-radius: 15px;
  border: 1px solid var(--gaming-border);
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.ads img:hover {
  transform: scale(1.03);
  box-shadow: var(--gaming-shadow);
}

/* Additional Gaming Enhancements */
.glow-effect {
  position: relative;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: inherit;
  padding: 3px;
  background: var(--gaming-gradient);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(5px);
}

.glow-effect:hover::after {
  opacity: 1;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gaming-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--gaming-gradient);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gaming-gradient-hover);
}

/* Loading Animation */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.loading-shimmer {
  position: relative;
  overflow: hidden;
}

.loading-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: shimmer 1.8s infinite;
}

/* Text Enhancements */
h1, h2, h3, h4, h5, h6 {
  background: var(--gaming-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0, 230, 255, 0.3);
}

.text-gradient {
  background: var(--gaming-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced Focus States */
*:focus {
  outline: 3px solid var(--gaming-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Responsive Enhancements */
@media screen and (max-width: 768px) {
  .zon-container,
  .zon-game-container {
    padding: 20px;
  }

  .game__grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-gap: 20px;
  }

  .game__categories {
    grid-template-columns: 1fr;
    grid-gap: 20px;
  }

  .search-drawer { width: calc(100% - 40px); }    
  .menu-drawer { width: calc(100% - 40px); }    
}

@media screen and (max-width: 480px) {
  .zon-container,
  .zon-game-container {
    padding: 15px;
  }

  .game__grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-gap: 15px;
  }

  .game__categories {
    grid-gap: 15px;
  }

  .search-drawer form input {
    font-size: 16px;
    height: 50px;
  }

  .search-drawer form button {
    font-size: 16px;
  }

  .close-drawer {
    height: 40px;
    width: 40px;
    font-size: 18px;
  }

  .share-modal .modal-dialog {
    width: 90%;
    padding: 30px;
  }
}


