/* Container improvements for better desktop layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

@media (min-width: 1600px) {
  .container {
    max-width: 1600px;
    padding: 0 2rem;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }
}

/* CSS Variables for Design System */

/* Dark Mode Variables */
.dark-mode {
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-light: #9ca3af;
  --text-muted: #9ca3af;
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  --bg-card: #1f2937;
  --border-color: #374151;
  --border-light: #374151;
  --border-medium: #4b5563;
}

/* Smooth scrolling for the whole page */

/* Add some CSS animations */

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Hero Section */

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2rem;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(70, 187, 229, 0.4);
  box-shadow: 0 8px 32px rgba(70, 187, 229, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse 2s ease-in-out infinite;
}

.hero-badge i {
  font-size: 1.2rem;
  animation: sparkle 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(70, 187, 229, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(70, 187, 229, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-10deg) scale(1.1);
  }
  75% {
    transform: rotate(10deg) scale(1.1);
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  justify-content: center;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

.stat-item:hover::before {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out;
}

.stat-item:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(70, 187, 229, 0.3);
}

.stat-icon i {
  font-size: 1.2rem;
  color: white;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Main Content */
.main-content {
  padding: 3rem 0;
  background: var(--bg-secondary);
  min-height: calc(100vh - 400px);
}

.main-content .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1600px) {
  .main-content .container {
    max-width: 1600px;
  }
}

/* Quick Filters */
.quick-filters {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  max-width: 100%;
}

@media (min-width: 1200px) {
  .quick-filters {
    padding: 2rem;
    margin-bottom: 3rem;
  }
}

.quick-filters h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--primary-light);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-inverse);
  box-shadow: var(--shadow);
}

.filter-btn i {
  font-size: 0.875rem;
}

/* Search Controls Container */
.search-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Search Bar */
.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
  min-width: 250px;
}

.search-input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 3rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition);
}

.search-input:focus + .search-icon {
  color: var(--primary-color);
}

.clear-search {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: var(--transition);
}

.clear-search:hover {
  color: var(--error-color);
  background: rgba(239, 68, 68, 0.1);
}

/* Sort Container */
.sort-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.sort-select {
  padding: 0.625rem 0.875rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  min-width: 120px;
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Active Filters Display */
.active-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.active-filter {
  background: var(--primary-color);
  color: var(--text-inverse);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideIn 0.2s ease-out;
}

.remove-filter {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--text-inverse);
  cursor: pointer;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition);
}

.remove-filter:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Games Grid - Enhanced Layout */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

/* Responsive grid adjustments */
@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
  }
}

@media (min-width: 1400px) {
  .games-grid {
    max-width: 1300px;
    gap: 3rem;
  }
}

/* Card Load Animation */
@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-card {
  opacity: 1 !important;
  animation: cardFadeIn 0.6s ease-out forwards;
}

.game-card:nth-child(1) {
  animation-delay: 0.1s;
}
.game-card:nth-child(2) {
  animation-delay: 0.2s;
}
.game-card:nth-child(3) {
  animation-delay: 0.3s;
}
.game-card:nth-child(4) {
  animation-delay: 0.4s;
}
.game-card:nth-child(5) {
  animation-delay: 0.5s;
}
.game-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Enhanced Game Card Styles */
.game-card {
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  height: 400px;
  position: relative;
  backdrop-filter: blur(10px);
  will-change: transform, box-shadow;
  background: linear-gradient(
    145deg,
    var(--bg-card),
    rgba(255, 255, 255, 0.98)
  );
  width: 100%;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(70, 187, 229, 0.05) 0%,
    rgba(16, 185, 129, 0.05) 50%,
    rgba(245, 158, 11, 0.05) 100%
  );
  border-radius: 20px;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 25px 50px rgba(70, 187, 229, 0.25),
    0 12px 35px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(70, 187, 229, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(70, 187, 229, 0.3);
}

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

.game-card:active {
  transform: translateY(-4px) scale(1.01);
  transition: all 0.1s ease;
}

.game-image-container {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  flex-shrink: 0;
  z-index: 2;
  border-radius: 16px 16px 0 0;
}

@media (min-width: 768px) {
  .game-image-container {
    height: 250px;
  }
}

@media (min-width: 1200px) {
  .game-image-container {
    height: 260px;
  }
}

.game-image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.game-card:hover .game-image-container::after {
  opacity: 1;
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1.05) contrast(1.1);
}

.game-card:hover .game-image {
  transform: scale(1.1) rotate(1deg);
  filter: brightness(1.15) contrast(1.2);
}

.game-fallback-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  opacity: 0.9;
}

.favorite-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: #666;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.favorite-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.2) rotate(-5deg);
  box-shadow: 0 6px 25px rgba(70, 187, 229, 0.4);
  border-color: var(--primary-color);
}

.favorite-btn.active {
  background: linear-gradient(135deg, #e74c3c, #ff6b6b);
  color: white;
  transform: scale(1.15);
  box-shadow: 0 6px 25px rgba(231, 76, 60, 0.4);
  border-color: #e74c3c;
  animation: heartbeat 0.6s ease-in-out;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1.15);
  }
  50% {
    transform: scale(1.25);
  }
}

.game-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  z-index: 5;
  background: var(--bg-card);
  position: relative;
  border-radius: 0 0 20px 20px;
}

.game-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
  background: linear-gradient(
    135deg,
    var(--text-primary),
    var(--primary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-card:hover .game-title {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 auto 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 400;
}

.game-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 10;
}

.game-skill {
  background: linear-gradient(
    135deg,
    rgba(70, 187, 229, 0.15),
    rgba(16, 185, 129, 0.15)
  );
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: capitalize;
  border: 2px solid rgba(70, 187, 229, 0.3);
  position: relative;
  z-index: 10;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.game-card:hover .game-skill {
  background: linear-gradient(
    135deg,
    rgba(70, 187, 229, 0.25),
    rgba(16, 185, 129, 0.25)
  );
  border-color: rgba(70, 187, 229, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(70, 187, 229, 0.2);
}

.btn-play {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white !important;
  border: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(70, 187, 229, 0.3);
  position: relative;
  z-index: 15;
  overflow: hidden;
  text-decoration: none;
  min-width: 110px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-play:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #059669 100%);
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 30px rgba(70, 187, 229, 0.5);
  color: white !important;
}

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

.btn-play:active {
  transform: translateY(0) scale(0.98);
  transition: transform 0.1s;
}

.btn-play:focus {
  outline: 3px solid rgba(70, 187, 229, 0.5);
  outline-offset: 2px;
}

/* Notification System */
.notification {
  position: fixed;
  top: 100px;
  right: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 350px;
  opacity: 0;
  transform: translateX(100%);
  transition: var(--transition);
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid var(--success-color);
}

.notification.info {
  border-left: 4px solid var(--primary-color);
}

.notification.error {
  border-left: 4px solid var(--error-color);
}

.notification-icon {
  font-size: 1.25rem;
}

.notification.success .notification-icon {
  color: var(--success-color);
}

.notification.info .notification-icon {
  color: var(--primary-color);
}

.notification.error .notification-icon {
  color: var(--error-color);
}

/* Game Modal */
.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 1rem;
}

.game-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9) translateY(-20px);
  transition: var(--transition);
}

.game-modal.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-game-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-fallback-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.8);
}

.modal-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.modal-stat i {
  color: var(--primary-color);
  width: 16px;
}

.modal-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.modal-tag {
  background: var(--primary-color);
  color: var(--text-inverse);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 500;
}

.modal-devices h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.device-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.device-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.device-item i {
  color: var(--primary-color);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.btn-modal-play {
  flex: 1;
  background: var(--primary-color);
  color: var(--text-inverse);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.btn-modal-play:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-modal-favorite {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-light);
  color: var(--text-secondary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-modal-favorite:hover {
  border-color: var(--error-color);
  color: var(--error-color);
}

.btn-modal-favorite.active {
  background: rgba(255, 107, 107, 0.1);
  border-color: #ff6b6b;
  color: #ff6b6b;
}

/* Skill Type Specific Colors */
.game-card[data-skill="vocabulary"] .game-image-container {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #059669 100%);
}

.game-card[data-skill="grammar"] .game-image-container {
  background: linear-gradient(135deg, var(--accent-color) 0%, #d97706 100%);
}

.game-card[data-skill="reading"] .game-image-container {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.game-card[data-skill="listening"] .game-image-container {
  background: linear-gradient(135deg, var(--info) 0%, #0891b2 100%);
}

.game-card[data-skill="speaking"] .game-image-container {
  background: linear-gradient(135deg, var(--primary-color) 0%, #4338ca 100%);
}

.game-card[data-skill="coding"] .game-image-container {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

/* No Results State */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
  color: var(--primary-color);
}

.no-results h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.no-results p {
  max-width: 400px;
  margin: 0 auto;
}

/* Mobile Responsiveness - Enhanced */
@media (max-width: 768px) {
  .hero {
    min-height: calc(100vh - 70px);
    padding: 2rem 0;
  }

  .hero-content {
    padding: 1.5rem;
    max-width: 100%;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-badge {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

  .stat-item {
    padding: 1.5rem 1rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
  }

  .stat-icon i {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 0.5rem;
  }

  .game-card {
    height: 360px;
    margin: 0;
  }

  .game-card:hover {
    transform: translateY(-6px) scale(1.02);
  }

  .game-image-container {
    height: 200px;
  }

  .game-content {
    padding: 20px;
  }

  .game-title {
    font-size: 1.15rem;
  }

  .game-description {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .btn-play {
    padding: 12px 20px;
    font-size: 0.9rem;
    min-width: 100px;
  }

  .favorite-btn {
    width: 40px;
    height: 40px;
    top: 15px;
    right: 15px;
    padding: 10px;
  }

  .game-footer {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .game-skill {
    padding: 4px 10px;
    font-size: 0.75rem;
  }

  .search-controls {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-buttons {
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .game-image-container {
    height: 180px;
  }

  .game-content {
    padding: 1rem;
  }
}

/* Print styles */
@media print {
  .hero,
  .quick-filters,
  .game-actions,
  .notification,
  .game-modal {
    display: none;
  }

  .game-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .game-card:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --border-light: #000000;
    --border-medium: #000000;
    --bg-tertiary: #ffffff;
  }

  .game-card {
    border: 2px solid #000000;
  }

  .filter-btn {
    border: 2px solid #000000;
  }
}

/* Touch interactions */
.game-card.touch-active {
  transform: translateY(-4px) scale(0.98);
  transition: transform 0.1s ease;
}

/* Focus styles for better accessibility */
.filter-btn:focus,
.btn-play:focus,
.btn-info:focus,
.btn-share:focus,
.favorite-btn:focus,
.theme-toggle:focus,
.search-input:focus,
.sort-select:focus,
.clear-search:focus,
.game-card:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Ensure buttons are always clickable */
.btn-play,
.favorite-btn {
  pointer-events: auto !important;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Dark mode specific fixes */
.dark-mode .btn-play {
  box-shadow: 0 4px 15px rgba(70, 187, 229, 0.5);
}

.dark-mode .favorite-btn {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.dark-mode .game-skill {
  background: rgba(70, 187, 229, 0.2);
  border-color: rgba(70, 187, 229, 0.3);
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Ad Settings Modal */
.ad-settings {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.setting-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

.setting-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.setting-label select {
  padding: 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
}

.setting-item small {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-left: 2rem;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1001;
  font-weight: 600;
}

.skip-to-content:focus {
  top: 6px;
}

/* Ensure mobile dropdowns work properly */
@media (max-width: 768px) {
  /* FORCE mobile menu to display full width */
  .nav-links,
  #navLinks,
  ul.nav-links {
    display: flex !important;
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: auto !important;
    min-height: calc(100vh - 70px) !important;
  }

  .nav-links.active,
  #navLinks.active,
  ul.nav-links.active {
    display: flex !important;
    max-height: calc(100vh - 70px) !important;
    height: auto !important;
  }

  /* Make sure nav links with dropdowns are clearly tappable */
  .nav-item .nav-link {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(70, 187, 229, 0.2);
    cursor: pointer;
  }

  /* Ensure chevron is visible and clickable */
  .nav-link .fa-chevron-down {
    transition: transform 0.3s ease !important;
    opacity: 1 !important;
    pointer-events: none; /* Let clicks go through to parent link */
  }

  /* Visual feedback when dropdown is open */
  .nav-item.mobile-open > .nav-link,
  .nav-item.mobile-dropdown-open > .nav-link {
    background: rgba(70, 187, 229, 0.15) !important;
    border-color: var(--primary-color, #46bbe5) !important;
  }

  /* Make dropdowns smoother */
  .dropdown {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      padding 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  /* Ensure dropdown items are visible when parent is open */
  .nav-item.mobile-open .dropdown,
  .nav-item.mobile-dropdown-open .dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Ensure dropdown items are clickable */
  .dropdown-item,
  .dropdown > a {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    user-select: none;
    -webkit-user-select: none;
  }
}

/* ===========================================
   FEATURED GAMES CAROUSEL SECTION
   =========================================== */
.featured-games-section {
  padding: 3rem 0 2rem;
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
}

.featured-header {
  text-align: center;
  margin-bottom: 2rem;
}

.featured-title {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.featured-title i {
  color: #f59e0b;
  animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.featured-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.featured-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
}

.carousel-track-container {
  overflow: hidden;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .carousel-item {
    flex-direction: row;
  }
}

.carousel-item:hover {
  transform: scale(1.02);
}

.carousel-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .carousel-image {
    width: 50%;
    height: 300px;
  }
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-item:hover .carousel-image img {
  transform: scale(1.1);
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carousel-skill {
  background: var(--primary-color);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.carousel-rating {
  color: #fbbf24;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.carousel-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .carousel-content {
    width: 50%;
    padding: 2rem;
  }
}

.carousel-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.carousel-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.carousel-play-btn {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  width: fit-content;
}

.carousel-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(70, 187, 229, 0.4);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 10px;
}
.carousel-next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-light);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.carousel-dot:hover {
  background: var(--primary-color);
  opacity: 0.7;
}

/* ===========================================
   CATEGORY NAVIGATION SECTION
   =========================================== */
.category-nav-section {
  padding: 2rem 0;
  background: var(--bg-secondary);
}

.category-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .category-nav-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.category-nav-card {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.category-nav-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(70, 187, 229, 0.2);
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.category-icon.vocabulary {
  background: linear-gradient(135deg, #10b981, #059669);
}
.category-icon.grammar {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.category-icon.speaking {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}
.category-icon.all {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.category-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.category-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===========================================
   RESULTS INFO & CLEAR ALL
   =========================================== */
.results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.results-count {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.results-count i {
  color: var(--primary-color);
}

.results-count strong {
  color: var(--text-primary);
  font-size: 1.1rem;
}

.clear-all-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.clear-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* ===========================================
   GAME CARD BADGES
   =========================================== */
.game-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.game-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(10px);
}

.badge-new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
  animation: pulse-badge 2s ease-in-out infinite;
}

.badge-popular {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

@keyframes pulse-badge {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.game-difficulty {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.badge-beginner {
  background: rgba(16, 185, 129, 0.9);
  color: white;
}

.badge-intermediate {
  background: rgba(245, 158, 11, 0.9);
  color: white;
}

.badge-advanced {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

/* ===========================================
   GAME CARD RATING & META
   =========================================== */
.game-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.game-rating i.fa-star,
.game-rating i.fa-star-half-alt {
  color: #fbbf24;
}

.game-rating i.far.fa-star {
  color: #d1d5db;
}

.rating-value {
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 0.25rem;
}

.play-count {
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.play-count i {
  color: var(--primary-color);
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.game-duration {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.game-duration i {
  color: var(--primary-color);
}

.game-devices-icons {
  display: flex;
  gap: 0.5rem;
}

.game-devices-icons i {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.game-card:hover .game-devices-icons i {
  color: var(--primary-color);
}

/* Mini Play Button */
.btn-play-mini {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(70, 187, 229, 0.3);
}

.btn-play-mini:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(70, 187, 229, 0.4);
}

.btn-play-mini:active {
  transform: translateY(0) scale(0.98);
}

/* ===========================================
   VALUE PROPOSITION SECTION
   =========================================== */
.value-proposition-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.dark-mode .value-proposition-section {
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-tertiary) 100%
  );
}

.value-proposition-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.value-proposition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.value-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .value-card {
  background: var(--bg-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.value-card-emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.dark-mode .value-card-title {
  color: var(--text-primary);
}

.value-card-text {
  color: #5a6c7d;
  line-height: 1.6;
}

.dark-mode .value-card-text {
  color: var(--text-secondary);
}

/* ===========================================
   HOW TO USE / TIPS SECTION
   =========================================== */
.how-to-use-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: "Poppins", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tip-card {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg, 16px);
  padding: 2rem;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tip-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tip-icon.primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.tip-icon.accent {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--success-color)
  );
}

.tip-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.tip-icon.cyan {
  background: linear-gradient(135deg, #06b6d4, var(--info, #3b82f6));
}

.tip-icon i {
  font-size: 1.5rem;
  color: white;
}

.tip-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.tip-card-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===========================================
   FAQ SECTION
   =========================================== */
.faq-section {
  padding: 4rem 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}

.faq-section .section-title {
  font-size: 2.5rem;
}

.faq-section .section-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg, 16px);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.faq-question {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-question i {
  color: var(--primary-color);
}

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.1rem;
}

/* ===========================================
   NOSCRIPT FALLBACK STYLES
   =========================================== */
.noscript-fallback {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

.dark-mode .noscript-fallback {
  background: linear-gradient(135deg, #451a03 0%, #78350f 100%);
  border-color: #d97706;
}

.noscript-fallback h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 1rem;
}

.dark-mode .noscript-fallback h3 {
  color: #fbbf24;
}

.noscript-fallback p {
  color: #b45309;
  margin-bottom: 1.5rem;
}

.dark-mode .noscript-fallback p {
  color: #fcd34d;
}

.noscript-games-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.noscript-game-link {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  border: 1px solid #e5e7eb;
}

.dark-mode .noscript-game-link {
  background: var(--bg-card);
  border-color: var(--border-light);
}

.noscript-game-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness for new sections */
@media (max-width: 768px) {
  .value-proposition-section,
  .how-to-use-section,
  .faq-section {
    padding: 3rem 0;
  }

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

  .faq-section .section-title {
    font-size: 2rem;
  }

  .faq-item {
    padding: 1.5rem;
  }

  .faq-question {
    font-size: 1.2rem;
  }

  .faq-answer {
    font-size: 1rem;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .value-proposition-grid {
    grid-template-columns: 1fr;
  }

  /* Featured carousel mobile */
  .featured-games-section {
    padding: 2rem 0;
  }

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

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .carousel-prev {
    left: 5px;
  }
  .carousel-next {
    right: 5px;
  }

  .carousel-content h3 {
    font-size: 1.25rem;
  }

  /* Category nav mobile */
  .category-nav-section {
    padding: 1.5rem 0;
  }

  .category-nav-card {
    padding: 1rem 0.75rem;
  }

  .category-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .category-name {
    font-size: 0.9rem;
  }

  /* Results info mobile */
  .results-info {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .clear-all-btn {
    width: 100%;
    justify-content: center;
  }

  /* Game badges mobile */
  .game-badges {
    top: 8px;
    left: 8px;
  }

  .game-badge {
    padding: 3px 8px;
    font-size: 0.65rem;
  }

  .game-difficulty {
    bottom: 8px;
    right: 8px;
    padding: 3px 10px;
    font-size: 0.7rem;
  }

  /* Game rating mobile */
  .game-rating {
    flex-wrap: wrap;
    gap: 0.375rem;
    font-size: 0.85rem;
  }

  .play-count {
    width: 100%;
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .game-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .game-devices-icons {
    margin-top: 0.25rem;
  }
}
