/* =============================================
   CREATORS — Video Games Page
   style-videogames.css
   Inherit semua dari /style.css (global)
   ============================================= */

/* ===================== PAGE HERO ===================== */
.page-hero {
  position: relative;
  background: var(--dark);
  background-image: url('/assets/images/cover-creators.jpg');
  background-size: cover;
  background-position: center top;
  padding: 5rem 0 4rem;
  overflow: hidden;
  border-bottom: 1px solid var(--dark-border);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,20,0.93) 0%,
    rgba(10,10,30,0.80) 60%,
    rgba(10,10,20,0.92) 100%
  );
  z-index: 1;
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107,176,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,176,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 1;
  pointer-events: none;
}

.page-hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.06) 3px,
    rgba(0,0,0,0.06) 4px
  );
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}

.page-hero-content {
  position: relative;
  z-index: 10;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--yellow); }
.bc-sep { color: rgba(255,255,255,0.25); }

/* Hero inner layout */
.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.page-hero-text .section-badge {
  margin-bottom: 0.8rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.page-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 2rem;
}
.page-desc strong { color: var(--yellow); }

/* Mini stats */
.page-hero-stats {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.mini-stat { text-align: center; }
.mini-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0,240,255,0.4);
}
.mini-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}
.mini-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
}

/* ===================== DECORATIVE CONTROLLER ===================== */
.page-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 2rem;
}

.floating-controller {
  position: relative;
  animation: float 4s ease-in-out infinite;
}

.controller-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,176,255,0.2) 0%, transparent 70%);
  animation: neon-pulse 3s ease-in-out infinite;
}

.ctrl-body {
  width: 180px;
  height: 110px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 2px solid rgba(107,176,255,0.3);
  border-radius: 30px 30px 40px 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  box-shadow:
    0 0 20px rgba(107,176,255,0.2),
    inset 0 2px 4px rgba(255,255,255,0.05);
}

/* D-Pad */
.ctrl-dpad {
  position: relative;
  width: 52px;
  height: 52px;
}
.ctrl-dpad-v, .ctrl-dpad-h {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
}
.ctrl-dpad-v {
  width: 18px; height: 52px;
  left: 50%; transform: translateX(-50%);
}
.ctrl-dpad-h {
  width: 52px; height: 18px;
  top: 50%; transform: translateY(-50%);
}

/* Center dot */
.ctrl-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ctrl-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(107,176,255,0.15);
  border: 1px solid rgba(107,176,255,0.3);
  animation: badge-dot-pulse 2s infinite;
}

/* Buttons */
.ctrl-buttons {
  position: relative;
  width: 52px;
  height: 52px;
}
.ctrl-btn {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.45rem;
  font-family: var(--font-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.7);
  font-weight: bold;
}
.btn-y { top: 0;    left: 50%; transform: translateX(-50%); background: #ffce00; }
.btn-x { left: 0;  top: 50%;  transform: translateY(-50%); background: #6bb0ff; }
.btn-b { right: 0; top: 50%;  transform: translateY(-50%); background: #ff4800; }
.btn-a { bottom: 0;left: 50%; transform: translateX(-50%); background: #4caf50; }

/* Wave */
.page-hero-wave {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  z-index: 5;
  line-height: 0;
}
.page-hero-wave svg {
  width: 100%;
  height: 60px;
}

/* ===================== GAMES SECTION ===================== */
.games-section {
  background: #0f0f1e;
  padding: 4rem 2rem 5rem;
}

.games-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.games-count {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}
.games-count span {
  color: var(--cyan);
  font-family: var(--font-bold);
}

/* ===================== GAME CARDS GRID ===================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.game-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.game-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.game-card.game-available:hover {
  transform: translateY(-8px);
  border-color: var(--yellow);
  box-shadow: 0 12px 40px rgba(254,206,72,0.15);
}

.game-card.game-soon {
  opacity: 0; /* starts hidden, revealed by JS */
  filter: none;
}
.game-card.game-soon.revealed {
  opacity: 1;
}
.game-card.game-soon:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}

/* Thumbnail */
.game-thumb {
  position: relative;
  overflow: hidden;
}
.game-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.game-card:hover .game-thumb img {
  transform: scale(1.06);
}

.game-card.game-soon .game-thumb img {
  filter: brightness(0.4) saturate(0.3);
}

.game-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,20,0.7) 0%, transparent 60%);
}

/* Badge on thumb */
.game-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: var(--font-bold);
  letter-spacing: 0.04em;
  z-index: 2;
}
.badge-play {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 2px 12px rgba(254,206,72,0.4);
}
.badge-soon {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}

/* Game info */
.game-info {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-meta-top {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.game-tool {
  background: rgba(107,176,255,0.1);
  border: 1px solid rgba(107,176,255,0.2);
  color: var(--blue-light);
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-bold);
  letter-spacing: 0.04em;
}

.game-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.game-card.game-soon .game-title {
  color: rgba(255,255,255,0.5);
}

.game-dev {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.2rem;
}
.game-dev strong {
  color: var(--yellow);
}
.game-card.game-soon .game-dev strong {
  color: rgba(255,255,255,0.3);
}

.game-school {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 0.7rem;
}

.game-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

/* Card footer */
.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.game-type {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

.game-cta {
  font-family: var(--font-bold);
  font-size: 0.82rem;
  color: var(--yellow);
  transition: color 0.2s, transform 0.2s;
}
.game-card:hover .game-cta {
  transform: translateX(3px);
}

.soon-label {
  color: rgba(255,255,255,0.2) !important;
  font-size: 0.78rem;
}

/* ===================== SUBMIT CTA ===================== */
.vg-submit-section {
  background: var(--dark);
  padding: 4rem 2rem;
  text-align: center;
}

.vg-submit-inner {
  max-width: 580px;
}

.vg-submit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.submit-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero-visual { display: none; }
  .page-hero-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .games-grid { grid-template-columns: 1fr; }
  .games-header { flex-direction: column; }
  .page-hero { padding: 4rem 0 3rem; }
  .page-title { font-size: 1.8rem; }
}
