/* Site Container */
.site-container {
  min-height: 100vh;
  padding-top: 100px;
}

/* Main Content */
.main-content {
  padding: 40px 24px;
}

.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.game-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.game-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.game-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
}

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

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

.game-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(102, 126, 234, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.game-hover .iconfont {
  font-size: 48px;
  color: #ffffff;
}

.game-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.game-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  align-items: center;
}

.stat-rating {
  color: #ffd700;
  font-weight: 700;
}

.stat-plays {
  color: rgba(255, 255, 255, 0.6);
}

/* Tags & Category Page Styles */
.category-hero {
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
  margin-top: 0;
}

.category-hero-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.category-hero-title {
  font-size: clamp(42px, 7vw, 56px);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.1;
}

.category-hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.category-hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-stat-value {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.category-filters {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.filter-btn.active {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* Search Page Styles */
.search-hero {
  padding: 60px 24px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
  text-align: center;
}

.search-hero-title {
  font-size: clamp(42px, 7vw, 56px);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 16px;
}

.search-hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.search-form-large {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-form-large .iconfont {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  pointer-events: none;
}

.search-form-large input {
  width: 100%;
  padding: 16px 20px 16px 56px;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 16px;
  transition: all 0.2s ease;
}

.search-form-large input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
}

.search-form-large input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.popular-searches {
  margin-bottom: 48px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.popular-tag {
  padding: 10px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.popular-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.quick-categories {
  margin-bottom: 48px;
}

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

.category-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.category-card-icon {
  font-size: 40px;
  color: #ffffff;
  margin-bottom: 12px;
}

.category-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.category-card-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.search-results {
  margin-top: 48px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.results-count {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.7);
}

.no-results h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 700;
}

.no-results p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .category-hero {
    padding: 30px 20px;
  }

  .category-hero-stats {
    gap: 32px;
  }

  .hero-stat-value {
    font-size: 28px;
  }

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

@media (max-width: 480px) {
  .category-hero {
    padding: 24px 16px;
  }
}
