/**
 * ====================================================================
 * TEMPLATE 04: STREETWEAR SQUAD / HYPE MAGAZINE - STYLESHEET
 * ====================================================================
 * Obsidian Black & Acid Lime, 3D Sneaker Shoebox Unboxing,
 * Draggable Sticker Bomb, Editorial Magazine Cover, Brutalist Card.
 */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-display: 'Impact', 'Arial Black', sans-serif;

  --bg-deep: #09090b;
  --bg-card: #18181b;
  
  --accent-lime: #a3e635;
  --accent-lime-glow: rgba(163, 230, 53, 0.4);
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --border-brutal: 2px solid #27272a;
  --border-lime: 2px solid #a3e635;

  --shadow-neon: 0 0 35px var(--accent-lime-glow);
  --shadow-box: 0 25px 60px rgba(0, 0, 0, 0.85);

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Cyber Grid */
.cyber-grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-size: 40px 40px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.site-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ====================================================================
   PASSCODE SCREEN (DROP SECURITY ACCESS)
   ==================================================================== */
.passcode-overlay {
  position: fixed;
  inset: 0;
  background: #09090b;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}

.passcode-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  pointer-events: none;
}

.passcode-card {
  background: #18181b;
  border: var(--border-lime);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-neon);
  text-align: center;
  max-width: 380px;
  width: 100%;
  position: relative;
}

.barcode-strip {
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--accent-lime);
  margin-bottom: 1rem;
}

.passcode-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.passcode-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.passcode-sub strong {
  color: var(--accent-lime);
}

.passcode-dots-wrapper {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.passcode-dot-box {
  width: 48px;
  height: 54px;
  border-radius: 8px;
  border: 2px solid #3f3f46;
  background: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-lime);
}

.passcode-dot-box.filled {
  border-color: var(--accent-lime);
  background: rgba(163, 230, 53, 0.15);
  box-shadow: 0 0 15px var(--accent-lime-glow);
}

.passcode-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 270px;
  margin: 0 auto;
}

.keypad-btn {
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  padding: 0.8rem 0;
  cursor: pointer;
  transition: all 0.18s ease;
}

.keypad-btn:hover {
  background: var(--accent-lime);
  color: #000000;
  border-color: var(--accent-lime);
}

.passcode-error-msg {
  color: var(--accent-red);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.85rem;
  min-height: 1.2rem;
  opacity: 0;
}

.passcode-error-msg.visible {
  opacity: 1;
}

/* ====================================================================
   3D SHOEBOX UNBOXING OVERLAY
   ==================================================================== */
.shoebox-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #18181b 0%, #09090b 85%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
}

.shoebox-overlay.unboxed {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08);
  pointer-events: none;
}

.shoebox-container {
  perspective: 1000px;
  cursor: pointer;
  margin-bottom: 2rem;
}

.shoebox-3d {
  position: relative;
  width: 240px;
  height: 140px;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}

.shoebox-container:hover .shoebox-3d {
  transform: scale(1.05) rotateY(5deg);
}

.shoebox-lid {
  position: absolute;
  width: 248px;
  height: 48px;
  top: -8px;
  left: -4px;
  background: #18181b;
  border: 2px solid var(--accent-lime);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  z-index: 5;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-lime);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.shoebox-overlay.opening .shoebox-lid {
  transform: translateY(-90px) rotate(-20deg) scale(0.9);
}

.shoebox-body {
  position: absolute;
  width: 240px;
  height: 110px;
  bottom: 0;
  left: 0;
  background: #27272a;
  border-radius: 8px;
  border: 2px solid #3f3f46;
  box-shadow: var(--shadow-box);
}

.btn-open-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--accent-lime);
  color: #000000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-neon);
  transition: var(--transition-smooth);
}

.btn-open-box:hover {
  transform: translateY(-2px);
  background: #bef264;
}

/* ====================================================================
   MAGAZINE HERO SECTION
   ==================================================================== */
.hero-section {
  padding: 6.5rem 0 3.5rem;
  text-align: center;
  border-bottom: var(--border-brutal);
}

.magazine-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero-giant-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 7.5rem);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -2px;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-giant-name .highlight {
  color: var(--accent-lime);
  text-shadow: 0 0 35px var(--accent-lime-glow);
}

.hero-edition-tag {
  display: inline-block;
  padding: 0.35rem 1.2rem;
  background: #27272a;
  border: 1px solid var(--accent-lime);
  border-radius: 4px;
  color: var(--accent-lime);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

/* ====================================================================
   DRAGGABLE STICKER BOMB BOARD
   ==================================================================== */
.sticker-board-section {
  padding: 4rem 0;
  position: relative;
}

.sticker-board {
  min-height: 200px;
  position: relative;
  background: rgba(24, 24, 27, 0.6);
  border: 2px dashed #3f3f46;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.drag-sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  cursor: grab;
  user-select: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.drag-sticker:active {
  cursor: grabbing;
  transform: scale(1.08) !important;
}

/* ====================================================================
   LATE DROP ADVISORY BANNER
   ==================================================================== */
.late-apology-banner {
  max-width: 820px;
  margin: 1.5rem auto 4.5rem;
  background: #18181b;
  border: 2px solid var(--accent-lime);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-neon);
}

.late-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.late-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-lime);
  margin-bottom: 0.25rem;
}

/* ====================================================================
   BRUTALIST MANIFESTO LETTER
   ==================================================================== */
.manifesto-card {
  background: #18181b;
  border: 2px solid #ffffff;
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-box);
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.manifesto-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #27272a;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.hologram-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  background: linear-gradient(135deg, #a3e635, #38bdf8);
  color: #000;
  font-weight: 900;
  font-size: 0.75rem;
  border-radius: 4px;
}

.manifesto-body {
  font-size: 1.15rem;
  line-height: 1.85;
  color: #d4d4d8;
}

.manifesto-body p {
  margin-bottom: 1.4rem;
}

.manifesto-footer {
  margin-top: 2.5rem;
  border-top: 2px dashed #27272a;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ====================================================================
   NEON STROBE CANDLE
   ==================================================================== */
.candle-stage {
  text-align: center;
  margin: 3rem auto;
  max-width: 200px;
  cursor: pointer;
}

.neon-candle {
  width: 14px;
  height: 55px;
  background: var(--accent-lime);
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 0 20px var(--accent-lime);
  position: relative;
}

.neon-flame {
  position: absolute;
  top: -24px;
  left: calc(50% - 9px);
  width: 18px;
  height: 24px;
  background: #ffffff;
  border-radius: 50% 50% 35% 35%;
  box-shadow: 0 0 25px #ffffff, 0 0 45px var(--accent-lime);
  animation: strobeFlicker 0.8s infinite alternate;
}

@keyframes strobeFlicker {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.1); opacity: 0.85; }
}

.candle-stage.blown .neon-flame {
  display: none;
}

.candle-stage.blown .neon-candle {
  box-shadow: none;
  background: #52525b;
}

/* ====================================================================
   CTA & FOOTER
   ==================================================================== */
.cta-box {
  background: #18181b;
  border: var(--border-lime);
  border-radius: 20px;
  padding: 3rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-neon);
  max-width: 780px;
  margin: 0 auto;
}

.reply-buttons-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: #25d366;
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
}

.btn-ig {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: #ffffff;
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
}

.site-footer {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: var(--border-brutal);
  margin-top: 4rem;
}

/* ====================================================================
   MOBILE & TABLET VIEWPORT RESPONSIVENESS
   ==================================================================== */
@media (max-width: 768px) {
  .stage-content, .container, .hero-section {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .hero-heading, .hero-title, .hero-giant-name {
    font-size: clamp(1.8rem, 6vw, 2.8rem) !important;
    line-height: 1.2 !important;
  }
  .hero-desc, .hero-sub {
    font-size: 1rem !important;
    padding: 0 0.5rem !important;
  }
  .letter-paper, .letter-card, .scroll-letter, .letter-parchment, .notebook-card, .boarding-pass, .manifesto-card, .mixtape-card {
    padding: 1.75rem 1.25rem !important;
  }
  .timeline-grid, .memories-grid, .grid-2 {
    grid-template-columns: 1fr !important;
  }
  .cta-row, .btn-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
  }
  .btn-cta, .btn-wa, .btn-ig {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .hero-heading, .hero-title, .hero-giant-name {
    font-size: 1.75rem !important;
  }
  .heart-card, .passcode-card, .pin-card {
    padding: 1.75rem 1.25rem !important;
  }
  .cake-tier {
    width: 160px !important;
    height: 65px !important;
    font-size: 1rem !important;
  }
}
