/* ==========================================================================
   NSU PODIUM 2026 - OFFICIAL RETRO-ARCADE DESIGN SYSTEM (WEBSITE 2 - ENGLISH)
   Faithful Pixel-Conscious Reproduction of Reference Images 1 & 2
   Organizer: NSUDC — North South University Debate Club
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Chakra+Petch:wght@500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Core Arcade Palette */
  --arcade-bg-dark: #030611;
  --arcade-screen-bg: #050a1f;
  --arcade-card-bg: rgba(7, 13, 33, 0.94);
  --arcade-input-bg: #070e24;
  
  /* Neon Colors */
  --neon-blue: #1e40ff;
  --neon-blue-bright: #3b82f6;
  --neon-cyan: #00f0ff;
  --neon-cyan-soft: #38bdf8;
  --neon-yellow: #facc15;
  --neon-yellow-hover: #fde047;
  --neon-red: #ef4444;
  --neon-pink: #f472b6;
  --neon-purple: #a855f7;
  
  /* Text Colors */
  --text-white: #ffffff;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #000000;
  
  /* Typography */
  --font-pixel: 'Press Start 2P', monospace, cursive;
  --font-display: 'Chakra Petch', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Radii */
  --radius-screen: 24px;
  --radius-card: 18px;
  --radius-input: 10px;
  --radius-btn: 12px;
  --radius-pill: 9999px;
  
  /* Glow Shadows */
  --glow-screen: 0 0 25px rgba(30, 64, 255, 0.75), inset 0 0 20px rgba(30, 64, 255, 0.35);
  --glow-card: 0 0 20px rgba(30, 64, 255, 0.5), inset 0 0 15px rgba(30, 64, 255, 0.2);
  --glow-yellow: 0 0 18px rgba(250, 204, 21, 0.65);
  --glow-cyan: 0 0 15px rgba(0, 240, 255, 0.6);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  background-color: var(--arcade-bg-dark);
  color: var(--text-white);
  font-family: var(--font-pixel);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Full Page Wrapper with Dot Matrix Grid */
.arcade-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
  background-color: var(--arcade-bg-dark);
}

/* Background Retro Grid & Dot Pattern */
.retro-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(rgba(0, 160, 255, 0.28) 1.5px, transparent 1.5px),
    linear-gradient(to right, rgba(0, 80, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 80, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px, 112px 112px, 112px 112px;
}

/* Main Arcade Cabinet Screen Bezel */
.arcade-screen-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  background-color: var(--arcade-screen-bg);
  border: 3px solid var(--neon-blue);
  border-radius: var(--radius-screen);
  box-shadow: var(--glow-screen);
  padding: 32px 36px 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

/* CRT Screen Scanline effect (Very Subtle) */
.arcade-screen-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  opacity: 0.35;
  z-index: 2;
}

/* Brand Bar Above Arcade Screen */
.brand-marquee-header {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 8px;
}

.brand-marquee-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand-marquee-logo-link:hover {
  opacity: 0.9;
}

.brand-marquee-logo-img {
  height: 38px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.brand-marquee-badge {
  font-size: 9px;
  color: var(--neon-cyan);
  letter-spacing: 0.1em;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   PAGE 1 SPECIFIC STYLES (MATCHING REFERENCE IMAGE 1)
   ========================================================================== */

/* Top Arcade Status Bar: 1UP | HIGH SCORE | CREDIT 01 */
.arcade-status-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 32px;
  position: relative;
  z-index: 3;
}

.status-item {
  letter-spacing: 0.08em;
}

.status-item.one-up {
  color: var(--text-white);
}

.status-item.high-score {
  color: var(--neon-red);
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.status-item.credit {
  color: var(--text-white);
}

/* Big 3D Pixel Arcade Title */
.arcade-title-box {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 3;
}

.arcade-main-title {
  font-family: var(--font-pixel);
  font-size: 42px;
  font-weight: 700;
  color: var(--neon-cyan-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 
    3px 3px 0 #1e40af,
    6px 6px 0 #0f172a,
    0 0 20px rgba(56, 189, 248, 0.8),
    0 0 35px rgba(56, 189, 248, 0.4);
  line-height: 1.25;
  margin-bottom: 16px;
}

.arcade-tagline {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--neon-cyan);
  letter-spacing: 0.16em;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tagline-dot {
  color: var(--neon-cyan);
}

/* The Winners' Podium Visual (Reference Image 1) */
.arcade-podium-section {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  margin: 36px 0 32px 0;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 440px;
}

/* Individual Podium Pillar */
.podium-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* Characters on top of podium */
.podium-character-wrap {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

/* Golden Orb / Character on Step 1 */
.gold-orb {
  width: 42px;
  height: 42px;
  background-color: var(--neon-yellow);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.85);
  animation: pulseOrb 2.5s infinite ease-in-out;
}

@keyframes pulseOrb {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.85);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 26px rgba(250, 204, 21, 1);
  }
}

/* Ghost SVG Character */
.arcade-ghost-svg {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 8px currentColor);
  animation: floatGhost 3s infinite ease-in-out;
}

.podium-pillar.step-2 .arcade-ghost-svg {
  color: var(--neon-cyan);
  animation-delay: 0.2s;
}

.podium-pillar.step-3 .arcade-ghost-svg {
  color: var(--neon-pink);
  animation-delay: 0.5s;
}

@keyframes floatGhost {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* Podium Pedestal Box */
.podium-block {
  width: 100%;
  background: rgba(10, 16, 40, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 8px 0 0;
  font-family: var(--font-pixel);
  transition: transform 0.2s ease;
}

/* Step 2 (Left): Blue Border, '2' */
.podium-pillar.step-2 .podium-block {
  height: 80px;
  border: 2.5px solid var(--neon-blue);
  box-shadow: 0 0 14px rgba(30, 64, 255, 0.6), inset 0 0 10px rgba(30, 64, 255, 0.25);
  color: var(--text-white);
  font-size: 20px;
}

/* Step 1 (Center): Yellow Border, '1' */
.podium-pillar.step-1 .podium-block {
  height: 118px;
  border: 2.5px solid var(--neon-yellow);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.7), inset 0 0 12px rgba(250, 204, 21, 0.3);
  color: var(--neon-yellow);
  font-size: 24px;
}

/* Step 3 (Right): Purple/Pink Border, '3' */
.podium-pillar.step-3 .podium-block {
  height: 64px;
  border: 2.5px solid var(--neon-purple);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.6), inset 0 0 10px rgba(168, 85, 247, 0.25);
  color: var(--text-white);
  font-size: 20px;
}

/* Big Bright Yellow Arcade Button (Register now) */
.arcade-btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--neon-yellow);
  color: var(--text-dark);
  font-family: var(--font-pixel);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 15px 36px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  letter-spacing: 0.05em;
  box-shadow: var(--glow-yellow);
  transition: all 0.2s ease;
  position: relative;
  z-index: 3;
}

.arcade-btn-yellow:hover,
.arcade-btn-yellow:focus-visible {
  background-color: var(--neon-yellow-hover);
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.9);
  transform: translateY(-2px);
  outline: none;
}

.arcade-btn-yellow:active {
  transform: translateY(1px);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
}

/* ==========================================================================
   PAGE 2 SPECIFIC STYLES (MATCHING REFERENCE IMAGE 2)
   ========================================================================== */

/* Top Heading Area on Page 2 */
.p2-header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 3;
  width: 100%;
}

/* Logo placement at top of Page 2 */
.p2-logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  margin-bottom: 18px;
  border: 1.5px dashed rgba(0, 150, 255, 0.5);
  border-radius: 14px;
  background: rgba(5, 12, 32, 0.6);
  max-width: 380px;
  width: 100%;
}

.p2-logo-img {
  max-height: 44px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.5));
}

/* Exact Headings requested by user (Integrated Blue Theme) */
.p2-main-title {
  font-family: var(--font-pixel);
  font-size: 22px;
  color: var(--neon-cyan-soft);
  text-shadow: 2px 2px 0 #1e40af, 0 0 14px rgba(56, 189, 248, 0.65);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.p2-sub-title {
  font-family: var(--font-pixel);
  font-size: 15px;
  color: var(--neon-cyan-soft);
  text-shadow: 2px 2px 0 #1e40af, 0 0 12px rgba(56, 189, 248, 0.55);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  opacity: 0.95;
}

.p2-caption {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* Centered Form Card (Reference Image 2) */
.arcade-form-card {
  width: 100%;
  max-width: 580px;
  background-color: var(--arcade-card-bg);
  border: 2px solid var(--neon-blue);
  border-radius: var(--radius-card);
  box-shadow: var(--glow-card);
  padding: 30px 32px 34px 32px;
  position: relative;
  z-index: 3;
}

/* Card Header inside form card */
.form-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.form-card-title {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--text-white);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.form-card-subtitle {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--neon-cyan);
  letter-spacing: 0.05em;
}

/* Form Layout Grid */
.p2-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--neon-cyan);
  letter-spacing: 0.05em;
}

.field-input,
.field-select {
  width: 100%;
  background-color: var(--arcade-input-bg);
  border: 1.5px solid var(--neon-blue);
  border-radius: var(--radius-input);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 11px 14px;
  outline: none;
  transition: all 0.2s ease;
}

.field-input::placeholder {
  color: var(--text-muted);
  font-size: 12px;
}

.field-input:focus,
.field-select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
  background-color: #0b1432;
}

/* Dropdown styling */
.field-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 36px;
  cursor: pointer;
}

.field-select option {
  background-color: #080f24;
  color: var(--text-white);
  padding: 8px;
}

/* Error States (Matching Reference Image 2: Red border & text) */
.field-input.has-error,
.field-select.has-error {
  border-color: var(--neon-red) !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4) !important;
}

.field-error-text {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--neon-red);
  letter-spacing: 0.04em;
  display: none;
  margin-top: 2px;
}

.field-error-text.active {
  display: block;
}

/* Full Width Yellow Register Button */
.p2-submit-btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 13px;
}

/* Success Confirmation Card (When Submitted) */
.p2-success-card {
  display: none;
  text-align: center;
  padding: 10px 0;
}

.p2-success-card.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.p2-success-badge {
  font-size: 28px;
  color: var(--neon-yellow);
  margin-bottom: 12px;
}

.p2-success-title {
  font-family: var(--font-pixel);
  font-size: 15px;
  color: var(--neon-yellow);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.p2-success-subtitle {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.p2-ref-box {
  background: #060d26;
  border: 1px dashed var(--neon-cyan);
  border-radius: var(--radius-input);
  padding: 14px;
  margin-bottom: 20px;
}

.p2-ref-label {
  font-size: 8px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.p2-ref-code {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.12em;
}

.p2-receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: left;
}

.p2-receipt-table th {
  color: var(--neon-cyan-soft);
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0, 150, 255, 0.2);
  font-weight: 600;
  width: 40%;
}

.p2-receipt-table td {
  color: var(--text-white);
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0, 150, 255, 0.2);
}

.p2-actions-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.p2-btn-secondary {
  background: transparent;
  color: var(--neon-cyan);
  border: 1.5px solid var(--neon-cyan);
  border-radius: var(--radius-btn);
  padding: 10px 18px;
  font-family: var(--font-pixel);
  font-size: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.p2-btn-secondary:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* Return / Back to Arena Link */
.return-nav-bar {
  margin-top: 18px;
  text-align: center;
  position: relative;
  z-index: 3;
}

.return-nav-link {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--neon-cyan-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.return-nav-link:hover {
  color: var(--text-white);
  text-shadow: 0 0 8px var(--neon-cyan);
  background: rgba(0, 150, 255, 0.12);
}

/* Bottom Event Footer */
.arcade-page-footer {
  margin-top: 24px;
  text-align: center;
  position: relative;
  z-index: 3;
}

.arcade-footer-text {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE, TABLET, DESKTOP)
   ========================================================================== */

@media (max-width: 768px) {
  .arcade-page-wrapper {
    padding: 16px 12px;
  }

  .arcade-screen-container {
    padding: 24px 20px 30px 20px;
    border-radius: 18px;
  }

  .arcade-status-bar {
    font-size: 9px;
    margin-bottom: 24px;
  }

  .arcade-main-title {
    font-size: 28px;
    letter-spacing: 0.04em;
  }

  .arcade-tagline {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .arcade-podium-section {
    max-width: 340px;
    gap: 10px;
    margin: 28px 0 26px 0;
  }

  .podium-pillar.step-1 .podium-block {
    height: 95px;
    font-size: 20px;
  }

  .podium-pillar.step-2 .podium-block {
    height: 65px;
    font-size: 16px;
  }

  .podium-pillar.step-3 .podium-block {
    height: 52px;
    font-size: 16px;
  }

  .gold-orb {
    width: 34px;
    height: 34px;
  }

  .arcade-ghost-svg {
    width: 34px;
    height: 34px;
  }

  .arcade-btn-yellow {
    font-size: 11px;
    padding: 13px 26px;
  }

  /* Page 2 on Mobile */
  .p2-main-title {
    font-size: 18px;
  }

  .p2-sub-title {
    font-size: 13px;
  }

  .arcade-form-card {
    padding: 22px 18px 26px 18px;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .arcade-screen-container {
    padding: 18px 14px 24px 14px;
  }

  .arcade-status-bar {
    font-size: 8px;
  }

  .arcade-main-title {
    font-size: 22px;
  }

  .arcade-tagline {
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  .arcade-podium-section {
    max-width: 290px;
    gap: 8px;
  }

  .podium-pillar.step-1 .podium-block {
    height: 80px;
  }

  .podium-pillar.step-2 .podium-block {
    height: 54px;
  }

  .podium-pillar.step-3 .podium-block {
    height: 44px;
  }

  .arcade-btn-yellow {
    width: 100%;
    padding: 12px 16px;
    font-size: 10px;
  }
}
