/* ==========================================
   GAME PLATFORM - NEW UNIQUE STYLE
   ========================================== */

/* ========================
   CSS VARIABLES
   ======================== */
:root {
  /* Colors - Bright Gaming Theme */
  --primary: #00d4ff;
  --primary-hover: #00b8e6;
  --secondary: #ff006e;
  --accent: #8338ec;
  --success: #00ff88;
  --warning: #ffb703;
  --danger: #ff0055;

  /* Backgrounds - Cyberpunk Light */
  --bg-body: #0a0a0f;
  --bg-card: rgba(20, 20, 35, 0.8);
  --bg-elevated: rgba(30, 30, 50, 0.9);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #b8c5d6;
  --text-muted: #7a8a9a;

  /* Borders */
  --border: rgba(0, 212, 255, 0.3);
  --border-light: rgba(255, 255, 255, 0.1);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099ff 50%, #8338ec 100%);
  --gradient-secondary: linear-gradient(135deg, #ff006e 0%, #ff0099 50%, #8338ec 100%);
  --gradient-accent: linear-gradient(135deg, #8338ec 0%, #ff006e 50%, #ffb703 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
  --gradient-card: linear-gradient(145deg, rgba(20, 20, 35, 0.9) 0%, rgba(10, 10, 20, 0.95) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 212, 255, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 212, 255, 0.2);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.4);
  --shadow-glow-secondary: 0 0 30px rgba(255, 0, 110, 0.4);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================
   RESET & BASE
   ======================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-body);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(131, 56, 236, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
}

/* ========================
   CONTAINER
   ======================== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-narrow {
  max-width: 1000px;
}

/* ========================
   LAYOUT UTILITIES
   ======================== */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.grid {
  display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* ========================
   NAVBAR
   ======================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.navbar-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -1px;
  position: relative;
  text-transform: uppercase;
}

.navbar-brand span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5)); }
  50% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); }
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-search {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-xl);
  padding: 8px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: var(--transition);
}

.navbar-search:focus-within {
  background: rgba(0, 0, 0, 0.6);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.navbar-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 15px;
  width: 320px;
  padding: 10px 16px;
}

.navbar-search input::placeholder {
  color: var(--text-muted);
}

.navbar-search button {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.navbar-search button:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-menu-item {
  position: relative;
}

.navbar-menu-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  display: block;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.navbar-menu-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--gradient-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.navbar-menu-link:hover {
  color: var(--text-primary);
}

.navbar-menu-link:hover::before {
  width: 200%;
  height: 200%;
}

.navbar-menu-link.active {
  color: var(--text-primary);
  background: var(--gradient-primary);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 212, 255, 0.3);
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.navbar-toggle:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.navbar-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
  background: var(--secondary);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  background: var(--secondary);
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  background: var(--gradient-dark);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 212, 255, 0.03) 2px,
      rgba(0, 212, 255, 0.03) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(0, 212, 255, 0.03) 2px,
      rgba(0, 212, 255, 0.03) 4px
    );
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
  letter-spacing: -2px;
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
  animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 0.8s ease-out 0.4s both;
}

/* ========================
   CAROUSEL
   ======================== */
.carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2xl);
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, transparent 100%);
}

.carousel-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.carousel-desc {
  color: var(--text-secondary);
  font-size: var(--text-base);
}

.carousel-nav {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-xl);
  display: flex;
  gap: var(--space-sm);
  z-index: 2;
}

.carousel-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.carousel-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

.carousel-dots {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--space-xl);
  display: flex;
  gap: var(--space-sm);
  z-index: 2;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.2);
}

/* ========================
   SECTIONS
   ======================== */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.bg-glow {
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
}

.bg-dark {
  background: var(--bg-body);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid rgba(0, 212, 255, 0.2);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--gradient-primary);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.section-title-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-link {
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: var(--transition);
  text-transform: uppercase;
  font-size: var(--text-sm);
  letter-spacing: 0.5px;
}

.section-link:hover {
  color: var(--primary-hover);
  gap: var(--space-md);
}

/* ========================
   GAME CARD
   ======================== */
.game-card {
  background: var(--gradient-card);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.game-card:hover::before {
  opacity: 0.05;
}

.game-card-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  z-index: 1;
}

.game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover .game-card-img {
  transform: scale(1.1);
}

.game-card-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--gradient-secondary);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(255, 0, 110, 0.3);
  z-index: 2;
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.game-card-body {
  padding: var(--space-lg);
  position: relative;
  z-index: 1;
}

.game-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
}

.game-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.game-card-rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: #ffb703;
  font-size: var(--text-sm);
}

.game-card-rating-value {
  color: var(--text-secondary);
  font-weight: 600;
  margin-left: var(--space-xs);
}

.game-card-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.game-card-action {
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.game-card:hover .game-card-action {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   SECTION ICON
   ======================== */

.section-icon {
  font-size: 32px;
  margin-right: var(--space-md);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin: var(--space-sm) 0 var(--space-lg);
  line-height: 1.7;
}

/* ========================
   GAME LIST HORIZONTAL (Module 3-4)
   ======================== */

.game-list-horizontal {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.game-list-item {
  display: flex;
  align-items: stretch;
  background: linear-gradient(145deg, rgba(30, 30, 50, 0.95) 0%, rgba(15, 15, 30, 0.98) 100%);
  border: 2px solid rgba(255, 0, 110, 0.2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-list-item:hover {
  transform: translateX(10px);
  border-color: var(--secondary);
  box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

.game-list-img {
  position: relative;
  width: 280px;
  flex-shrink: 0;
  overflow: hidden;
}

.game-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-list-item:hover .game-list-img img {
  transform: scale(1.1);
}

.game-list-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.game-list-info {
  flex: 1;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-list-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 0 var(--space-sm) 0;
  color: var(--text-primary);
  transition: color 0.3s ease;
  line-height: 1.3;
}

.game-list-title:hover {
  color: var(--secondary);
}

.game-list-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.game-list-rating,
.game-list-plays {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.game-list-rating i,
.game-list-plays i {
  color: var(--warning);
}

.game-list-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive game list horizontal */
@media (max-width: 768px) {
  .game-list-item {
    flex-direction: column;
  }
  
  .game-list-img {
    width: 100%;
    height: 200px;
  }
  
  .game-list-info {
    padding: var(--space-md);
  }
}

/* ========================
   GAME GRID COMPACT (Module 5+)
   ======================== */

.game-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.game-grid-item {
  background: linear-gradient(145deg, rgba(20, 20, 35, 0.9) 0%, rgba(10, 10, 25, 0.95) 100%);
  border: 1px solid rgba(131, 56, 236, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-grid-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(131, 56, 236, 0.3);
}

.game-grid-link {
  display: block;
  text-decoration: none;
}

.game-grid-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.game-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-grid-item:hover .game-grid-thumb img {
  transform: scale(1.1);
}

.game-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-grid-item:hover .game-grid-overlay {
  opacity: 1;
}

.game-grid-play {
  width: 60px;
  height: 60px;
  background: rgba(131, 56, 236, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  transform: scale(0);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(131, 56, 236, 0.5);
}

.game-grid-item:hover .game-grid-play {
  transform: scale(1);
}

.game-grid-number {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(131, 56, 236, 0.4);
  z-index: 2;
}

.game-grid-content {
  padding: var(--space-md);
}

.game-grid-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-grid-stats {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.game-grid-stats span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: var(--text-xs);
}

.game-grid-stats i {
  color: var(--warning);
}

/* Responsive game grid compact */
@media (max-width: 768px) {
  .game-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-sm);
  }
  
  .game-grid-thumb {
    aspect-ratio: 16 / 9;
  }
  
  .game-grid-content {
    padding: var(--space-sm);
  }
  
  .game-grid-name {
    font-size: var(--text-sm);
  }
}

/* ========================
   GAME CARD VARIANTS
   ======================== */

/* Compact Card Style (Module 3-4) */
.game-card-compact {
  background: linear-gradient(145deg, rgba(30, 30, 50, 0.95) 0%, rgba(15, 15, 30, 0.98) 100%);
  border: 1px solid rgba(255, 0, 110, 0.2);
  border-radius: var(--radius-lg);
}

.game-card-compact::before {
  background: var(--gradient-secondary);
}

.game-card-compact:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: 0 12px 30px rgba(255, 0, 110, 0.3);
}

.game-card-compact .game-card-img-wrapper {
  aspect-ratio: 16 / 9;
}

.game-card-compact .game-card-body {
  padding: var(--space-md);
}

.game-card-compact .game-card-title {
  font-size: var(--text-base);
  font-weight: 600;
}

.game-card-compact .game-card-desc {
  display: none;
}

.game-card-compact .game-card-action {
  opacity: 1;
  transform: translateY(0);
}

/* Minimal Card Style (Module 5+) */
.game-card-minimal {
  background: linear-gradient(145deg, rgba(20, 20, 35, 0.9) 0%, rgba(10, 10, 25, 0.95) 100%);
  border: 1px solid rgba(131, 56, 236, 0.2);
  border-radius: var(--radius-md);
}

.game-card-minimal::before {
  background: var(--gradient-accent);
}

.game-card-minimal:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(131, 56, 236, 0.25);
}

.game-card-minimal .game-card-img-wrapper {
  aspect-ratio: 16 / 8;
}

.game-card-minimal .game-card-body {
  padding: var(--space-sm) var(--space-md);
}

.game-card-minimal .game-card-title {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.game-card-minimal .game-card-desc {
  display: none;
}

.game-card-minimal .game-card-action {
  opacity: 1;
  transform: translateY(0);
}

.game-card-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 48px;
  color: white;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  z-index: 3;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card-minimal:hover .game-card-play-icon {
  transform: translate(-50%, -50%) scale(1);
}

/* ========================
   BUTTONS
   ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary)!important;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.btn-secondary {
  background: var(--secondary)!important;
  background: var(--gradient-secondary)!important;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-glow-secondary);
  transform: translateY(-3px);
}

.btn-accent {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 15px rgba(131, 56, 236, 0.3);
}

.btn-accent:hover {
  box-shadow: 0 0 30px rgba(131, 56, 236, 0.5);
  transform: translateY(-3px);
}

.btn-tertiary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-tertiary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-base);
}

/* ========================
   FORM
   ======================== */
.form-input {
  padding: var(--space-md) var(--space-lg);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

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

/* ========================
   FOOTER
   ======================== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid rgba(0, 212, 255, 0.2);
  padding: var(--space-3xl) 0 var(--space-2xl);
  margin-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition);
  display: block;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: var(--space-sm);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  color: var(--text-muted);
}

.footer-brand-title {
  font-size: var(--text-2xl);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}

.footer-nav-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav-link {
  color: var(--text-secondary);
  transition: var(--transition);
  padding: var(--space-sm) 0;
  text-decoration: none;
}

.footer-nav-link:hover {
  color: var(--primary);
  padding-left: var(--space-sm);
}

.footer-subscribe-label {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.footer-subscribe-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-sm);
  outline: none;
  transition: var(--transition);
  margin-bottom: var(--space-sm);
}

.footer-subscribe-input::placeholder {
  color: var(--text-muted);
}

.footer-subscribe-input:focus {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.footer-subscribe form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ========================
   DETAIL PAGE
   ======================== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-2xl);
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.detail-sidebar {
  position: sticky;
  top: 100px;
}

/* Hero Card */
.detail-hero {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.detail-hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

.detail-hero-content {
  padding: var(--space-xl);
}

.detail-hero-action {
  margin-top: var(--space-xl);
}

.detail-hero-action .play-now-btn {
  font-size: var(--text-lg);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 900;
}

/* ========================
   CONTACT PAGE
   ======================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.contact-form-wrapper {
  width: 100%;
}

.contact-form-card .detail-hero-content {
  padding: 0;
}

.contact-form-card .detail-title {
  margin-bottom: var(--space-lg);
}

/* Form styles for contact page */
.contact-form-wrapper .form-group {
  margin-bottom: var(--space-lg);
}

.contact-form-wrapper .form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-form-wrapper .form-input {
  width: 100%;
  padding: var(--space-md);
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: 500;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.contact-form-wrapper .form-input::placeholder {
  color: var(--text-muted);
}

.contact-form-wrapper .form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.contact-form-wrapper .form-textarea {
  min-height: 150px;
  resize: vertical;
  font-family: inherit;
}

.contact-form-wrapper .btn-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-lg);
}

.contact-form-wrapper .btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.contact-form-desc {
  font-size: var(--text-base);
  line-height: 1.6;
}

/* Mobile contact page */
@media (max-width: 1024px) {
  .contact-layout {
    gap: var(--space-lg);
  }
}

.detail-title {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  line-height: 1.2;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.detail-meta-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-meta-value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.detail-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.detail-content h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.detail-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
}

.detail-content p {
  margin-bottom: var(--space-lg);
}

/* Sidebar Card */
.detail-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}

.detail-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-card-body {
  padding: var(--space-xl);
}

.detail-sidebar-action {
  margin-top: var(--space-lg);
}

/* Tabs */
.tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: var(--space-md);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: var(--space-md) var(--space-lg);
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  border-radius: var(--radius-lg);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.05);
}

.tab-btn.active {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Header in Detail */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
}

.section-title-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.section-link:hover {
  color: var(--primary);
  gap: var(--space-md);
}

/* Responsive Detail */
@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: relative;
    top: 0;
    order: -1;
  }

  .detail-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .detail-hero-img {
    max-height: 300px;
  }

  .detail-title {
    font-size: var(--text-2xl);
  }

  .detail-meta {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .detail-hero-content,
  .detail-card-body {
    padding: var(--space-lg);
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
    min-width: calc(50% - var(--space-sm));
  }
}



/* ========================
   PAGINATION
   ======================== */
.pagination {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-2xl);
  width: 100%;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.pagination-item .pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 var(--space-md);
  color: var(--text-secondary);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-lg);
}

.pagination-item:hover .pagination-link:not(.disabled) {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.pagination-item:hover:not(.disabled) {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.pagination-item.active .pagination-link.current {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-glow);
  pointer-events: none;
}

.pagination-item.disabled .pagination-link {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
}

.pagination-item:not(.disabled):hover .pagination-link {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

.pagination-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========================
   TEXT UTILITIES
   ======================== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================
   MARGIN & PADDING
   ======================== */
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.py-md { padding: var(--space-md) 0; }
.py-lg { padding: var(--space-lg) 0; }
.py-xl { padding: var(--space-xl) 0; }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .navbar-search input {
    width: 220px;
  }

  .navbar-menu-link {
    padding: 10px 16px;
    font-size: 14px;
  }

  .grid-cols-4,
  .grid-cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel {
    height: 400px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  /* Mobile pagination */
  .pagination-list {
    gap: var(--space-xs);
  }

  .pagination-item .pagination-link {
    min-width: 40px;
    height: 40px;
    font-size: 14px;
    padding: 0 var(--space-sm);
  }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  /* Mobile navbar */
  .navbar-wrapper {
    height: 70px;
    padding: 0 16px;
  }

  .navbar-brand {
    font-size: 24px;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-right {
    gap: 0;
    align-items: center;
  }

  .navbar-search {
    display: none;
  }

  .navbar-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    height: calc(100vh - 70px);
    max-height: calc(100vh - 70px);
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 20px;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    overflow-y: auto;
    z-index: 9998;
  }

  .navbar-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar-menu-item {
    width: 100%;
    flex-shrink: 0;
  }

  .navbar-menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    font-size: 17px;
    border-radius: var(--radius-lg);
    text-align: center;
    min-height: 56px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
  }

  .navbar-menu-link:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    transform: scale(1.02);
  }

  .navbar-menu-link.active {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
  }

  /* Mobile pagination */
  .pagination-list {
    gap: 4px;
  }

  .pagination-item .pagination-link {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
    padding: 0 var(--space-xs);
  }

  /* Contact page mobile */
  .grid.grid-cols-2.gap-lg {
    grid-template-columns: 1fr;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero {
    min-height: 60vh;
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .carousel {
    height: 300px;
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4,
  .grid-cols-5 {
    grid-template-columns: 1fr;
  }

  /* Mobile game card layout */
  .game-card-img-wrapper {
    aspect-ratio: 16 / 9;
  }

  .game-card-action {
    opacity: 1;
    transform: translateY(0);
  }

  .game-card-overlay {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 20px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .carousel {
    height: 250px;
  }
}

/* ========================
   CATEGORY BUTTONS (SIDEBAR)
   ======================== */
.category-buttons {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.category-buttons-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.category-buttons-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-glow);
}

.category-buttons-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ========================
   CATEGORY BUTTONS (FULL WIDTH)
   ======================== */
.category-buttons-full {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-xl);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.category-buttons-list-full {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.category-btn {
  display: block;
  padding: var(--space-md) var(--space-lg);
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: all var(--transition);
}

.category-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary);
  background: rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.category-btn:hover::before {
  left: 0;
  opacity: 0.1;
}

.category-btn.active {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.category-btn.active::before {
  left: 0;
  opacity: 0;
}

/* Responsive adjustments for category buttons */
@media (max-width: 1024px) {
  .category-buttons {
    top: 90px;
    padding: var(--space-md);
  }

  .category-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-xs);
  }
}

@media (max-width: 768px) {
  .category-buttons-list-full {
    flex-wrap: wrap;
  }

  .category-btn {
    min-width: 100px;
    text-align: center;
  }

  .category-buttons-full {
    padding: var(--space-md);
  }
}

/* ========================
   EMPTY STATE
   ======================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.5s ease;
}

.empty-state-icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(131, 56, 236, 0.1) 100%);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  margin-bottom: var(--space-xl);
  color: var(--primary);
  position: relative;
  animation: pulse 2s ease-in-out infinite;
}

.empty-state-icon::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  z-index: -1;
  animation: ripple 2s ease-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.empty-state-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.empty-state-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.empty-state .btn {
  min-width: 200px;
  padding: var(--space-md) var(--space-2xl);
}

/* Responsive empty state */
@media (max-width: 768px) {
  .empty-state {
    padding: var(--space-2xl) var(--space-lg);
  }

  .empty-state-icon {
    width: 100px;
    height: 100px;
    margin-bottom: var(--space-lg);
  }

  .empty-state-icon svg {
    width: 60px;
    height: 60px;
  }

  .empty-state-title {
    font-size: var(--text-xl);
  }

  .empty-state-desc {
    font-size: var(--text-sm);
  }
}

@media (max-width: 480px) {
  .empty-state {
    padding: var(--space-xl) var(--space-md);
  }

  .empty-state-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-md);
  }

  .empty-state-icon svg {
    width: 48px;
    height: 48px;
  }

  .empty-state-title {
    font-size: var(--text-lg);
  }

  .empty-state .btn {
    width: 100%;
  }
}

/* ========================
   BACK TO TOP BUTTON
   ======================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--text-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gradient-secondary);
  box-shadow: var(--shadow-glow-secondary);
  transform: translateY(-5px);
}

.back-to-top:active {
  transform: translateY(-2px);
}

.back-to-top i {
  transition: transform 0.3s ease;
}

.back-to-top:hover i {
  transform: translateY(-2px);
}

/* Responsive back to top button */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

