/* ==========================================================================
   LUMEZA CYBER-ARCADE // STYLESHEET
   Dedicated Gaming Portal for games.lumeza.in
   ========================================================================== */

:root {
  --bg-deep: #07090e;
  --bg-surface: #0e121b;
  --bg-card: rgba(18, 23, 34, 0.75);
  --bg-card-hover: rgba(26, 33, 49, 0.9);
  
  --vc-pink: #ff2a85;
  --vc-pink-glow: rgba(255, 42, 133, 0.45);
  --vc-cyan: #00f0ff;
  --vc-cyan-glow: rgba(0, 240, 255, 0.4);
  --cs-amber: #f59e0b;
  --cs-amber-glow: rgba(245, 158, 11, 0.4);
  --neon-emerald: #10b981;
  --neon-emerald-glow: rgba(16, 185, 129, 0.35);
  --neon-violet: #8b5cf6;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 42, 133, 0.5);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  
  --font-display: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 42, 133, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(0, 240, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

/* Subtle CRT Scanline overlay */
body::before {
  content: " ";
  display: block;
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 999;
  pointer-events: none;
  opacity: 0.35;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--vc-pink);
}

/* ==========================================================================
   TOP BAR & HIDDEN DUAL SWITCH
   ========================================================================== */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--vc-pink), var(--vc-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 20px var(--vc-pink-glow);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-title span {
  color: var(--vc-cyan);
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.nav-filter {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-filter:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-filter.active {
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.25), rgba(0, 240, 255, 0.25));
  color: #fff;
  border: 1px solid rgba(255, 42, 133, 0.4);
  box-shadow: 0 0 12px var(--vc-pink-glow);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.meta-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--neon-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   THE HIDDEN SWITCH TO MAIN WORKSPACE
   Discreet, subtle status glyph that unlocks on interaction
   ========================================================================== */
.secret-switch-wrapper {
  position: relative;
}

.secret-glyph-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.35;
}

.secret-glyph-btn:hover {
  opacity: 1;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
}

.secret-glyph-icon {
  font-size: 0.85rem;
}

.secret-dialog-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.secret-dialog-backdrop.open {
  display: flex;
}

.secret-dialog-card {
  background: #0f131d;
  border: 1px solid rgba(255, 42, 133, 0.3);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 0 0 30px var(--vc-pink-glow);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 2rem;
  text-align: center;
  animation: modalZoom 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalZoom {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.secret-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--vc-pink);
  background: rgba(255, 42, 133, 0.12);
  border: 1px solid rgba(255, 42, 133, 0.3);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.secret-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.secret-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.secret-btn-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.btn-secret-primary {
  background: linear-gradient(135deg, var(--vc-pink), #e11d48);
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 15px var(--vc-pink-glow);
  transition: transform 0.2s;
}

.btn-secret-primary:hover {
  transform: translateY(-2px);
}

.btn-secret-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secret-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   PORTAL VIEWPORT & SECTIONS
   ========================================================================== */
.portal-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

/* ==========================================================================
   HERO HIGHLIGHT: GTA VICE CITY
   ========================================================================== */
.hero-vicecity {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.12) 0%, rgba(30, 9, 43, 0.85) 50%, rgba(0, 240, 255, 0.08) 100%);
  border: 1px solid rgba(255, 42, 133, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 42, 133, 0.15);
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero-glow-vc {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 350px;
  height: 350px;
  background: var(--vc-pink);
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  pointer-events: none;
}

.vc-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 992px) {
  .vc-hero-content {
    grid-template-columns: 1fr;
  }
}

.vc-tag-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.tag-vc-flagship {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #fff;
  background: var(--vc-pink);
  padding: 3px 10px;
  border-radius: 4px;
}

.tag-vc-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--vc-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
}

.vc-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #ff80b3 50%, var(--vc-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(255, 42, 133, 0.4));
  margin-bottom: 0.85rem;
}

.vc-hero-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

.vc-action-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
}

.btn-vc-play {
  background: linear-gradient(135deg, var(--vc-pink) 0%, #e11d48 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 25px var(--vc-pink-glow);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-vc-play:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px var(--vc-pink-glow);
}

.btn-vc-popout {
  background: rgba(0, 240, 255, 0.12);
  color: var(--vc-cyan);
  border: 1px solid var(--vc-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-vc-popout:hover {
  background: var(--vc-cyan);
  color: #000;
  box-shadow: 0 0 20px var(--vc-cyan-glow);
}

.btn-vc-save {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-vc-save:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.vc-feature-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.vc-feat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.vc-feat strong {
  color: #fff;
}

/* Vice City Preview Canvas Card */
.vc-preview-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 42, 133, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.vc-screen-mockup {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vc-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.vc-screen-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 42, 133, 0.2) 0%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vc-screen-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px var(--vc-pink);
}

.vc-save-status-box {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vc-save-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-emerald);
}

/* ==========================================================================
   GAME TILES GRID
   ========================================================================== */
.section-title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--vc-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.35rem;
}

.section-h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.game-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.game-tile:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.tile-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.tile-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-tile:hover .tile-art {
  transform: scale(1.05);
}

.tile-tag-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.tile-tag-badge.cs { color: var(--cs-amber); border-color: rgba(245, 158, 11, 0.4); }
.tile-tag-badge.fps { color: #f43f5e; border-color: rgba(244, 63, 94, 0.4); }
.tile-tag-badge.retro { color: var(--neon-emerald); border-color: rgba(16, 185, 129, 0.4); }

.tile-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tile-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.tile-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.tile-play-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.tile-play-btn:hover {
  background: var(--vc-cyan);
  color: #000;
  border-color: var(--vc-cyan);
  box-shadow: 0 0 15px var(--vc-cyan-glow);
}

.tile-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ==========================================================================
   INTERACTIVE RETRO CANVAS GAMES (Snake, 2048, Minesweeper)
   ========================================================================== */
.retro-arcade-panel {
  background: #0a0d14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 4rem;
}

.arcade-nav-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.arcade-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.arcade-tab-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--vc-cyan);
  color: #fff;
  box-shadow: 0 0 12px var(--vc-cyan-glow);
}

.arcade-view-container {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050608;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

/* ==========================================================================
   IMMERSIVE MODAL VIEWPORT (For Vice City & CS 1.6 in-page full play)
   ========================================================================== */
.game-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  flex-direction: column;
}

.game-modal-overlay.active {
  display: flex;
}

.modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: #090c12;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-game-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.modal-game-iframe {
  flex-grow: 1;
  width: 100%;
  height: calc(100vh - 60px);
  border: none;
  background: #000;
}

.btn-modal-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-action:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-modal-close {
  background: rgba(225, 29, 72, 0.2);
  border: 1px solid #e11d48;
  color: #fff;
}

.btn-modal-close:hover {
  background: #e11d48;
}

/* Toast */
.portal-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  background: #0f131f;
  border: 1px solid var(--vc-pink);
  box-shadow: 0 0 20px var(--vc-pink-glow);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 8px;
  display: none;
  animation: slideToast 0.2s ease-out;
}

@keyframes slideToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
