/**
 * Gaming Page Theme Styles
 * Purple/Violet gradient theme for gaming content
 */

:root {
  --gaming-primary: #667eea;
  --gaming-secondary: #764ba2;
  --gaming-accent: #f093fb;
  --gaming-dark: #2d1b4e;
  --gaming-light: #9f7aea;
}

/* Gaming Hero Section */
.gaming-hero {
  background: linear-gradient(135deg, var(--gaming-primary) 0%, var(--gaming-secondary) 100%);
}

/* Gaming Short Card Styles */
.gaming-short-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--bs-body-bg);
  overflow: hidden;
}

.gaming-short-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

[data-bs-theme="dark"] .gaming-short-card:hover {
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.5);
}

.gaming-short-card .play-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gaming-short-card:hover .play-overlay {
  opacity: 1;
}

.gaming-short-card img {
  transition: transform 0.3s ease;
}

.gaming-short-card:hover img {
  transform: scale(1.05);
}

.gaming-short-card .card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

/* Gaming Playlist Card Styles */
.gaming-playlist-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--bs-body-bg);
}

.gaming-playlist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.2);
}

[data-bs-theme="dark"] .gaming-playlist-card:hover {
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

/* Gaming Badge Styles */
.badge.bg-danger {
  background: linear-gradient(135deg, #ff0000, #cc0000) !important;
}

/* Gaming Grid Responsive */
@media (max-width: 768px) {
  .gaming-short-card .ratio-9x16 {
    max-height: 300px;
  }
}

@media (max-width: 576px) {
  .gaming-short-card .ratio-9x16 {
    max-height: 250px;
  }
}

/* Section Headers */
.gaming-section-header {
  border-left: 4px solid var(--gaming-primary);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

/* Gaming Icon Animations */
.gaming-icon-bounce {
  animation: gentle-bounce 2s ease-in-out infinite;
}

@keyframes gentle-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Loading State */
.gaming-loading {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gaming-loading .spinner-border {
  width: 3rem;
  height: 3rem;
  color: var(--gaming-primary);
}

/* Category Badges */
.gaming-category-badge {
  background: linear-gradient(135deg, var(--gaming-primary), var(--gaming-secondary));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  margin: 0.25rem;
  transition: transform 0.2s ease;
}

.gaming-category-badge:hover {
  transform: scale(1.05);
}

/* Steam Curator Card Enhancement */
.steam-curator-card {
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
  border: none;
  color: white;
}

.steam-curator-card .btn-steam {
  background: #66c0f4;
  border: none;
  color: #1b2838;
  font-weight: 600;
  transition: all 0.3s ease;
}

.steam-curator-card .btn-steam:hover {
  background: #4fa5d5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 192, 244, 0.4);
}

/* Martian Games Card Enhancement */
.martian-games-card {
  background: linear-gradient(135deg, #171a21 0%, #1b2838 100%);
  border: none;
  color: white;
}

.martian-games-social-link {
  transition: all 0.3s ease;
}

.martian-games-social-link:hover {
  transform: translateY(-2px);
}

/* Community Card */
.gaming-community-card {
  background: linear-gradient(135deg, var(--gaming-primary) 0%, var(--gaming-secondary) 100%);
  border: none;
  color: white;
}

.gaming-community-card .btn-light:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.gaming-community-card .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

/* Shorts Aspect Ratio */
.ratio-9x16 {
  --bs-aspect-ratio: 177.78%; /* 16/9 = 1.778, inverted for 9:16 */
}

/* Dark Mode Adjustments */
[data-bs-theme="dark"] .gaming-short-card,
[data-bs-theme="dark"] .gaming-playlist-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .gaming-short-card:hover,
[data-bs-theme="dark"] .gaming-playlist-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gaming-primary);
}

/* Accessibility */
.gaming-short-card:focus,
.gaming-playlist-card:focus {
  outline: 2px solid var(--gaming-primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .gaming-short-card,
  .gaming-playlist-card {
    break-inside: avoid;
  }
}
