/*
  Blue Arcade — Custom overrides
  Add your own custom styles here. This file is not overwritten by updater.
*/

/* Homepage SEO bottom content block */
.seo-content-block {
  background: var(--soft-bg);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin: 32px 0;
  border: 1px solid var(--border-light);
}

.seo-content-block h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.seo-content-block p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* Featured categories strip */
.featured-categories-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.featured-cat-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 90px;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}

.featured-cat-item:hover {
  background: var(--gradient-btn);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.featured-cat-item i {
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
}

.featured-cat-item:hover i { color: #fff; }

/* Hero gradient wave divider */
.hero-wave {
  height: 40px;
  background: var(--bg);
  border-radius: 0 0 50% 50% / 0 0 40px 40px;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

/* Search page top */
.search-top-bar {
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
  margin-bottom: 24px;
}

/* Game page layout tweaks */
.game-content-col {
  /* Ensure game area doesn't overflow */
  min-width: 0;
}

/* Sidebar sticky */
@media (min-width: 992px) {
  .sidebar-sticky {
    position: sticky;
    top: 84px;
    align-self: flex-start;
  }
}

/* Rating stars replacement */
.star-rating-display {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star-filled { color: #f59e0b; }
.star-empty  { color: var(--border); }

/* Homepage section bg alternation */
.section-alt {
  background: var(--soft-bg);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin: 24px 0;
}

/* Loading skeleton for game cards */
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.skeleton-card {
  background: var(--border-light);
  border-radius: var(--radius-xl);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* Game iframe loading overlay */
.game-loading-overlay {
  position: absolute;
  inset: 0;
  background: var(--soft-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border-radius: var(--radius-xl);
}

.game-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--soft-bg); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Text selection */
::selection {
  background: rgba(13, 110, 253, 0.15);
  color: var(--primary-dark);
}
