/* ============================================================================
   DESI ARCADE - GAMES PORTAL STYLESHEET
   Sleek glassmorphism, glowing neons, and harmonized responsive game grids
   ============================================================================ */

:root {
  --bg-primary: #020617;
  --bg-secondary: #0b0f19;
  --color-violet: #8b5cf6;
  --color-pink: #ec4899;
  --color-gold: #fbbf24;
  --color-cyan: #06b6d4;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.12) 0%, transparent 40%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Header & Logo */
header {
  padding: 2.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(8px);
}

.logo-container {
  display: inline-block;
  position: relative;
  margin-bottom: 0.5rem;
}

.press-start {
  font-family: 'Press Start 2P', cursive;
  font-size: 2rem;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--color-violet), var(--color-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
  animation: pulseLogo 3s infinite ease-in-out;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--color-cyan);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 0.5rem;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

/* Main Container */
main {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  flex-grow: 1;
}

/* Hero Section */
.hero-section {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-violet), var(--color-pink), transparent);
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Game Grid */
.game-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

/* Game Cards */
.game-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Featured Card styling */
.game-card.featured {
  flex-direction: row;
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.15);
  max-width: 900px;
  width: 100%;
}

@media (max-width: 768px) {
  .game-card.featured {
    grid-column: span 1;
    flex-direction: column;
  }
}

.game-card.featured:hover {
  border-color: var(--color-violet);
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.3);
}

/* Card Visual Header */
.card-banner {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-card.featured .card-banner {
  width: 45%;
  height: auto;
  min-height: 280px;
}

@media (max-width: 768px) {
  .game-card.featured .card-banner {
    width: 100%;
    height: 200px;
  }
}

/* Vector Preview Graphics */
.banner-graphic-mock {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4c1d95, #1e1b4b);
  position: relative;
}

.banner-graphic-mock.cockroach-theme {
  background: linear-gradient(135deg, #1e1b4b, #030712);
}

.banner-graphic-mock.locked-theme {
  background: linear-gradient(135deg, #111827, #1f2937);
  opacity: 0.6;
}

.emoji-showcase {
  font-size: 5rem;
  filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.4));
  animation: floatEmoji 4s infinite ease-in-out;
}

.locked-theme .emoji-showcase {
  font-size: 4rem;
  filter: grayscale(1.0);
  animation: none;
}

/* Glowing Card Labels */
.card-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.card-label.featured-lbl {
  background: var(--color-violet);
  color: white;
  animation: pulseGlow 2s infinite ease-in-out;
}

.card-label.locked-lbl {
  background: #374151;
  color: #9ca3af;
}

/* Card Content Details */
.card-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-card.featured .card-details {
  width: 55%;
}

@media (max-width: 768px) {
  .game-card.featured .card-details {
    width: 100%;
  }
}

.game-title-h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: white;
}

.game-card.featured .game-title-h3 {
  font-size: 1.8rem;
}

.game-meta-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--color-cyan);
  font-weight: 600;
  text-transform: uppercase;
}

.game-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-violet), var(--color-pink));
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-locked {
  background: #1f2937;
  color: #4b5563;
  cursor: not-allowed;
  border: 1px solid #374151;
}

/* Supporter Box (Masala Chai Support Widget) */
.support-widget {
  background: var(--glass-bg);
  border: 1px solid rgba(251, 191, 36, 0.25);
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.05);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 5rem auto 1rem;
  max-width: 800px;
  text-align: center;
  position: relative;
}

.support-widget h3 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.support-widget p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.btn-gold {
  background: var(--color-gold);
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.6);
}

/* Footer Section */
footer {
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid var(--glass-border);
  color: #475569;
  font-size: 0.85rem;
  background: rgba(2, 6, 23, 0.6);
  margin-top: auto;
}

footer p {
  margin-bottom: 0.5rem;
}

/* Animations */
@keyframes pulseLogo {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.3)); }
  50% { filter: drop-shadow(0 0 25px rgba(236, 72, 153, 0.55)); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.9; box-shadow: 0 0 10px rgba(139, 92, 246, 0.4); }
  50% { opacity: 1; box-shadow: 0 0 20px rgba(139, 92, 246, 0.7); }
}

@keyframes floatEmoji {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}
