/* ==========================================================================
   ZendaGenesis — Sanctum of Creation | Official Game Studio Portal
   Created by Gonzalo Ciocca (gonzalo.ciocca@hotmail.com)
   ========================================================================== */

:root {
  --bg-deep: #0c0618;
  --bg-sanctum: #160c2a;
  --panel-purple: rgba(43, 23, 74, 0.86);
  --panel-purple-solid: #2b174a;
  --panel-inner: rgba(26, 13, 48, 0.92);
  --gold-primary: #e6c67c;
  --gold-bright: #ffe6a3;
  --gold-muted: #9e7f47;
  --violet-glow: #a66cff;
  --violet-soft: #c8a8ff;
  --text-main: #f8f3ff;
  --text-muted: #cbbbe5;
  --border-ornate: 1px solid rgba(230, 198, 124, 0.45);
  --shadow-sanctum: 0 14px 40px rgba(5, 2, 12, 0.78), 0 0 24px rgba(166, 108, 255, 0.16);
  --radius-card: 16px;
  --radius-btn: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(155, 92, 246, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 82% 24%, rgba(230, 198, 124, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(98, 44, 173, 0.25) 0%, transparent 55%),
    linear-gradient(180deg, #0b0516 0%, #150a2a 50%, #090412 100%);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Starfield Canvas */
#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Ornate Sanctum Frame helper */
.sanctum-panel {
  position: relative;
  background: linear-gradient(165deg, rgba(56, 31, 94, 0.9) 0%, rgba(29, 15, 54, 0.94) 100%);
  border: 1.5px solid rgba(230, 198, 124, 0.55);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sanctum), inset 0 1px 0 rgba(255, 230, 163, 0.25);
  backdrop-filter: blur(12px);
}

.sanctum-panel::before,
.sanctum-panel::after {
  content: "✦";
  position: absolute;
  color: var(--gold-primary);
  font-size: 0.75rem;
  line-height: 1;
  pointer-events: none;
  opacity: 0.85;
}

.sanctum-panel::before {
  top: 8px;
  left: 10px;
}

.sanctum-panel::after {
  bottom: 8px;
  right: 10px;
}

/* Header / Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 7, 29, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 198, 124, 0.3);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5e2ca5, #2b124c);
  border: 1.5px solid var(--gold-primary);
  display: grid;
  place-items: center;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--gold-bright);
  box-shadow: 0 0 15px rgba(230, 198, 124, 0.35);
}

.brand-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  display: block;
}

.brand-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.lang-switch {
  display: inline-flex;
  background: rgba(26, 13, 48, 0.9);
  border: 1px solid rgba(230, 198, 124, 0.45);
  border-radius: 8px;
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.38rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: linear-gradient(135deg, #6b34ba, #431e7a);
  color: var(--gold-bright);
}

/* Main Wrapper */
main {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  margin-bottom: 3.5rem;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(166, 108, 255, 0.18);
  border: 1px solid rgba(230, 198, 124, 0.5);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.hero-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.15;
  color: var(--gold-bright);
  text-shadow: 0 4px 24px rgba(166, 108, 255, 0.45);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-soft);
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.04rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
  max-width: 60ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.badge-tag {
  background: rgba(22, 11, 42, 0.85);
  border: 1px solid rgba(230, 198, 124, 0.38);
  color: var(--text-main);
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-size: 0.82rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-sanctum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.5rem;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  border: 1.5px solid var(--gold-primary);
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  color: var(--gold-bright);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 230, 163, 0.4);
}

.btn-secondary {
  background: rgba(29, 15, 54, 0.88);
  color: var(--text-main);
}

.btn-sanctum:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 10px 28px rgba(230, 198, 124, 0.28);
}

/* Hero Phone Showcase */
.hero-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-frame {
  width: min(300px, 100%);
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(145deg, #3b1f66, #180b2e);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(166, 108, 255, 0.3);
  overflow: hidden;
  position: relative;
}

.phone-frame img,
.phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(230, 198, 124, 0.25);
  padding-bottom: 0.9rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-primary);
  margin-bottom: 0.25rem;
}

.section-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--gold-bright);
}

/* Game Catalog Grid (Supports 1 or many future games) */
.games-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
  margin-bottom: 4rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85), 0 0 28px rgba(230, 198, 124, 0.22);
}

.game-card-banner {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #120824;
  border-bottom: 1px solid rgba(230, 198, 124, 0.35);
}

.game-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.4s ease;
}

.game-card:hover .game-card-banner img {
  transform: scale(1.05);
}

.game-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(22, 11, 42, 0.9);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
}

.game-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.35rem;
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
}

.game-card-genre {
  font-size: 0.82rem;
  color: var(--violet-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.game-card-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.game-card-footer {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Video & Feature Split */
.video-feature-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 2rem;
}

.video-player-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-player-box iframe {
  width: min(560px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.8);
  background: #090412;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 1.2rem;
}

.feature-item {
  background: rgba(20, 10, 38, 0.78);
  border: 1px solid rgba(230, 198, 124, 0.3);
  border-radius: 12px;
  padding: 1.1rem;
}

.feature-item h4 {
  font-family: 'Cinzel', Georgia, serif;
  color: var(--gold-bright);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Showcase Gallery Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: rgba(29, 15, 54, 0.85);
  color: var(--text-muted);
  border: 1px solid rgba(230, 198, 124, 0.35);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #6b34ba, #3b176b);
  color: var(--gold-bright);
  border-color: var(--gold-primary);
}

/* Showcase Image Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 1.35rem;
  margin-bottom: 4rem;
}

.showcase-card {
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.showcase-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-bright);
}

.showcase-img-wrap {
  aspect-ratio: 9 / 16;
  width: 100%;
  overflow: hidden;
  background: #100720;
  position: relative;
}

.showcase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.showcase-card:hover .showcase-img-wrap img {
  transform: scale(1.04);
}

.showcase-caption {
  padding: 0.9rem 1rem;
  background: rgba(22, 11, 42, 0.95);
  border-top: 1px solid rgba(230, 198, 124, 0.25);
}

.showcase-caption h5 {
  font-family: 'Cinzel', Georgia, serif;
  color: var(--gold-bright);
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.showcase-caption p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7, 3, 15, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  border-radius: 18px;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.lightbox-meta {
  margin-top: 0.9rem;
}

.lightbox-meta h4 {
  font-family: 'Cinzel', Georgia, serif;
  color: var(--gold-bright);
  font-size: 1.15rem;
}

.lightbox-meta p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(43, 23, 74, 0.92);
  color: var(--gold-bright);
  border: 1.5px solid var(--gold-primary);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-close {
  top: -14px;
  right: -14px;
}

.lightbox-prev {
  top: 45%;
  left: -54px;
}

.lightbox-next {
  top: 45%;
  right: -54px;
}

/* Developer Info / How to Add More Images Box */
.dev-guide-box {
  padding: 1.6rem 2rem;
  margin-bottom: 3rem;
}

.dev-guide-box h3 {
  font-family: 'Cinzel', Georgia, serif;
  color: var(--gold-bright);
  margin-bottom: 0.6rem;
}

.dev-guide-box code {
  background: rgba(12, 6, 24, 0.85);
  color: var(--gold-bright);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  font-size: 0.86rem;
  border: 1px solid rgba(230, 198, 124, 0.25);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(230, 198, 124, 0.3);
  background: rgba(10, 5, 20, 0.92);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer-inner a {
  color: var(--gold-primary);
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero-section,
  .video-feature-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .features-list {
    grid-template-columns: 1fr;
  }
  .lightbox-prev {
    left: 6px;
  }
  .lightbox-next {
    right: 6px;
  }
}
