/* ==========================================================
   category.css — Dedicated Category Screen Styles
   Uses the site's primary purple theme, NOT the reference blue
   ========================================================== */

/* ---------- Page Base ---------- */
body.category-page {
  background-color: var(--bg-main);
  min-height: 100vh;
}

/* ---------- Category Header ---------- */
.cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(
    135deg,
    rgba(104, 66, 255, 0.15) 0%,
    rgba(26, 27, 34, 0.9) 100%
  );
  border-bottom: 1px solid rgba(104, 66, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cat-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
  flex-shrink: 0;
}

.cat-back-btn:hover {
  background: rgba(104, 66, 255, 0.25);
  transform: translateX(-2px);
}

.cat-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.cat-emoji {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(104, 66, 255, 0.5));
}

.cat-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff 0%, #c8b9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cat-header-spacer {
  width: 38px;
  flex-shrink: 0;
}

/* ---------- Game Grid ---------- */
.cat-game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 16px 16px;
}

/* ---------- Game Card (Category page style) ---------- */
.cat-game-card {
  background: #1e1f2c;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 4px 20px rgba(104, 66, 255, 0.15);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.cat-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(104, 66, 255, 0.2);
}

.cat-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cat-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.cat-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.cat-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-muted);
}

.cat-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
}

.cat-card-users {
  font-weight: 600;
  color: #a1ffc0;
}

.cat-card-entry {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-muted);
}

.cat-entry-coin {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.cat-entry-val {
  font-weight: 700;
  color: var(--color-yellow);
  font-size: 13px;
}

.cat-btn-play {
  margin-top: 4px;
  width: 100%;
  padding: 11px 0;
  background: linear-gradient(135deg, #f99893 0%, #6842ff 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition:
    opacity 0.2s,
    transform 0.1s;
  font-family: var(--font-main);
}

.cat-btn-play:hover {
  opacity: 0.9;
}

.cat-btn-play:active {
  transform: scale(0.97);
}

/* ---------- More Games ---------- */
.cat-more-container {
  padding: 8px 16px 24px;
}

.cat-btn-more {
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 2px solid var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border-radius: 16px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition:
    background 0.2s,
    box-shadow 0.2s;
  font-family: var(--font-main);
}

.cat-btn-more:hover {
  background: rgba(104, 66, 255, 0.1);
  box-shadow: 0 0 16px rgba(104, 66, 255, 0.3);
}

/* ---------- Footer ---------- */
.cat-footer {
  background: #1a1b25;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 20px;
  text-align: center;
}

.cat-footer-heading {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #c8b9ff, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cat-footer-text {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cat-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

.cat-privacy-link {
  font-size: 12px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.cat-privacy-link:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 380px) {
  .cat-game-grid {
    gap: 10px;
    padding: 0 12px 12px;
  }

  .cat-title {
    font-size: 19px;
  }

  .cat-card-title {
    font-size: 13px;
  }

  .cat-btn-play {
    font-size: 12px;
    padding: 10px 0;
  }
}
