/* ============================================================
   SATOSHI REALM TCG — HOMEPAGE CINEMATIC OVERRIDES
   Game menu screen, not a website landing page
   ============================================================ */

/* ── HEADER REBUILD ─────────────────────────────────────────
   Black glass/dark metal, gold bevel, 86px tall              */
.site-header {
  height: 86px;
  background: linear-gradient(180deg, #0a0c0a 0%, #050805 100%);
  border-bottom: 1px solid #c9a227;
  box-shadow: 0 2px 0 rgba(0,255,136,0.15), 0 0 40px rgba(0,0,0,0.8);
}
.header-frame {
  background: transparent;
  border-bottom: none;
}
.header-bg-img {
  opacity: 0.55;
  mix-blend-mode: screen;
}
/* Gold bottom bevel line */
.header-frame::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,162,39,0.4) 10%,
    #c9a227 40%,
    #f0c040 50%,
    #c9a227 60%,
    rgba(201,162,39,0.4) 90%,
    transparent 100%
  );
}
/* Green glow line below gold */
.header-frame::before {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.6), transparent);
  z-index: 3;
}
.header-inner { height: 86px; }

/* Nav tabs — dark cyber, not grey */
.nav-link {
  background: linear-gradient(180deg, rgba(10,16,10,0.9), rgba(4,8,4,0.95));
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 2px;
  font-family: var(--font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: rgba(200,190,160,0.7);
  padding: 0.45rem 1rem;
  clip-path: polygon(4px 0%, calc(100% - 4px) 0%, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0% calc(100% - 4px), 0% 4px);
}
.nav-link:hover {
  background: linear-gradient(180deg, rgba(0,60,20,0.8), rgba(0,30,10,0.9));
  border-color: rgba(0,255,136,0.5);
  color: #00ff88;
  box-shadow: 0 0 12px rgba(0,255,136,0.25), inset 0 0 8px rgba(0,255,136,0.08);
  text-shadow: 0 0 8px rgba(0,255,136,0.8);
}
.nav-link.active {
  background: linear-gradient(180deg, rgba(0,80,25,0.9), rgba(0,40,12,0.95));
  border-color: #00cc66;
  color: #00ff88;
  box-shadow: 0 0 16px rgba(0,255,136,0.3), inset 0 0 12px rgba(0,255,136,0.1);
  text-shadow: 0 0 10px rgba(0,255,136,1);
}
.nav-link.active::after { display: none; }

/* Cart button */
.header-cart {
  background: linear-gradient(180deg, rgba(10,16,10,0.9), rgba(4,8,4,0.95));
  border: 1px solid rgba(201,162,39,0.35);
  clip-path: polygon(4px 0%, calc(100% - 4px) 0%, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0% calc(100% - 4px), 0% 4px);
}

/* ── HERO: CINEMATIC LAYER STACK ─────────────────────────── */
.hero {
  min-height: calc(100vh - 0px);
  padding: 86px 0 0;
  position: relative;
  overflow: hidden;
  display: block;
}

/* Layer 1: bg-hero.png — full dark cyber background */
.hero-bg-img {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  opacity: 0.6;
  z-index: 1;
}

/* Layer 2: green radial glow behind title + card */
.hero-glow-layer {
  position: absolute;
  inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse 60% 70% at 25% 50%, rgba(0,80,25,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 75% 45%, rgba(0,60,20,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 100% 50% at 50% 100%, rgba(0,0,0,0.9) 0%, transparent 70%),
    linear-gradient(180deg, rgba(4,4,4,0.25) 0%, rgba(4,4,4,0.5) 60%, rgba(4,4,4,0.98) 100%);
}

/* Layer 3: animated circuit particles */
.hero-particles-layer {
  position: absolute;
  inset: 0; z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  width: 2px; height: 2px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 6px #00ff88, 0 0 12px rgba(0,255,136,0.5);
  animation: particleRise linear infinite;
  opacity: 0;
}
@keyframes particleRise {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  5%   { opacity: 0.8; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-5vh) scale(1.5); opacity: 0; }
}
/* Gold light streaks */
.hero-streak {
  position: absolute;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201,162,39,0.6), transparent);
  animation: streakFall linear infinite;
  opacity: 0;
}
@keyframes streakFall {
  0%   { transform: translateY(-100px); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.1; }
  100% { transform: translateY(110vh); opacity: 0; }
}

/* Layer 4+5+6+7: main content grid */
.hero-main {
  position: relative;
  z-index: 10;
  max-width: 1360px;
  margin: 0 auto;
  padding: 4rem 2.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 86px);
}

/* LEFT COLUMN */
.hero-left { display: flex; flex-direction: column; }

/* Title — huge stacked gold */
.hero-title-stack {
  display: flex;
  flex-direction: column;
  line-height: 0.85;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 40px rgba(201,162,39,0.4));
}
.hero-title-line {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(4.5rem, 8.5vw, 9.5rem);
  letter-spacing: 0.04em;
  color: transparent;
  background: linear-gradient(180deg,
    #fff5c0 0%,
    #f5d060 15%,
    #c9a227 45%,
    #a07a10 70%,
    #6a4e08 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  animation: titleIn 0.9s cubic-bezier(0.2,0,0.1,1) both;
  position: relative;
}
.hero-title-line:nth-child(1) { animation-delay: 0.05s; }
.hero-title-line:nth-child(2) { animation-delay: 0.18s; }
.hero-title-line.tcg {
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  letter-spacing: 0.28em;
  background: linear-gradient(180deg, #80ffb0 0%, #00ff88 40%, #00aa55 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 25px rgba(0,255,136,0.7));
  animation-delay: 0.32s;
}
@keyframes titleIn {
  from { opacity: 0; transform: translateY(30px) skewY(1deg); }
  to   { opacity: 1; transform: translateY(0) skewY(0deg); }
}

/* Gold rule divider */
.hero-rule {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f0c040, rgba(201,162,39,0.2));
  margin: 1rem 0;
  animation: ruleExpand 0.8s ease 0.5s both;
}
@keyframes ruleExpand {
  from { width: 0; }
  to   { width: 280px; }
}

/* Tagline */
.hero-tagline {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(200,190,160,0.65);
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease 0.55s both;
}

/* CTA Buttons — glowing game UI style */
.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s ease 0.65s both;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  height: 52px;
  padding: 0 2.4rem;
  background: linear-gradient(180deg, #0f5528 0%, #072d15 50%, #041a0c 100%);
  color: #00ff88;
  border: 1px solid #00cc66;
  border-bottom: 2px solid #00ff88;
  clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px);
  text-shadow: 0 0 10px rgba(0,255,136,0.8);
  box-shadow:
    0 0 20px rgba(0,255,136,0.2),
    0 0 40px rgba(0,255,136,0.08),
    inset 0 1px 0 rgba(0,255,136,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-hero-primary:hover {
  background: linear-gradient(180deg, #146b32 0%, #0a3d1c 50%, #062010 100%);
  box-shadow:
    0 0 35px rgba(0,255,136,0.4),
    0 0 70px rgba(0,255,136,0.15),
    inset 0 1px 0 rgba(0,255,136,0.25);
  transform: translateY(-2px);
  color: #80ffb0;
}
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  height: 52px;
  padding: 0 2.4rem;
  background: linear-gradient(180deg, #2a1e00 0%, #160f00 50%, #0a0800 100%);
  color: #f0c040;
  border: 1px solid #8a6a10;
  border-bottom: 2px solid #c9a227;
  clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px);
  text-shadow: 0 0 10px rgba(201,162,39,0.6);
  box-shadow:
    0 0 20px rgba(201,162,39,0.15),
    inset 0 1px 0 rgba(201,162,39,0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-hero-secondary:hover {
  background: linear-gradient(180deg, #3d2c00 0%, #221800 50%, #100c00 100%);
  box-shadow: 0 0 30px rgba(201,162,39,0.3), inset 0 1px 0 rgba(201,162,39,0.2);
  transform: translateY(-2px);
}

/* Feature HUD strip — framed sci-fi chips */
.hero-hud-strip {
  display: flex;
  gap: 0;
  animation: fadeUp 0.8s ease 0.8s both;
  position: relative;
}
/* Outer frame of the strip */
.hero-hud-strip::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg,
    #c9a227, rgba(201,162,39,0.3) 20%,
    rgba(0,255,136,0.4) 50%,
    rgba(201,162,39,0.3) 80%, #c9a227
  );
  clip-path: polygon(6px 0%, calc(100% - 6px) 0%, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0% calc(100% - 6px), 0% 6px);
  z-index: -1;
}
.hud-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  background: linear-gradient(180deg, rgba(8,14,8,0.95), rgba(4,8,4,0.98));
  border-right: 1px solid rgba(201,162,39,0.2);
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease;
}
.hud-chip:last-child { border-right: none; }
.hud-chip:hover {
  background: linear-gradient(180deg, rgba(0,30,10,0.95), rgba(0,15,5,0.98));
}
/* Green scan line on hover */
.hud-chip::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.8), transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.hud-chip:hover::after { transform: scaleX(1); }
.hud-chip-icon {
  width: 28px; height: 28px;
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.3);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0,255,136,0.15);
}
.hud-chip-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200,190,160,0.75);
  line-height: 1.3;
}

/* RIGHT COLUMN — featured card in cyber frame */
.hero-card-display {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cardAppear 1s cubic-bezier(0.2,0,0.1,1) 0.3s both;
}
@keyframes cardAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Green backlight glow behind the card */
.card-glow-bg {
  position: absolute;
  width: 320px; height: 520px;
  background: radial-gradient(ellipse at center,
    rgba(0,255,136,0.25) 0%,
    rgba(0,180,80,0.1) 40%,
    transparent 70%
  );
  filter: blur(20px);
  z-index: 0;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

/* Gold cyber frame overlay — ui-card-frame.png */
.card-frame-overlay {
  position: absolute;
  inset: -22px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 0 15px rgba(201,162,39,0.5));
}

/* The card image itself */
.hero-card-img {
  position: relative;
  z-index: 2;
  width: 340px;
  height: auto;
  border-radius: 8px;
  filter:
    drop-shadow(0 0 30px rgba(0,255,136,0.2))
    drop-shadow(0 20px 60px rgba(0,0,0,0.8));
  animation: cardHover 4s ease-in-out infinite;
}
@keyframes cardHover {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-10px) rotate(-1deg); }
}

/* Corner highlights on the frame */
.card-corner {
  position: absolute;
  width: 20px; height: 20px;
  border-color: #c9a227;
  border-style: solid;
  z-index: 4;
}
.card-corner.tl { top: -4px; left: -4px; border-width: 2px 0 0 2px; }
.card-corner.tr { top: -4px; right: -4px; border-width: 2px 2px 0 0; }
.card-corner.bl { bottom: -4px; left: -4px; border-width: 0 0 2px 2px; }
.card-corner.br { bottom: -4px; right: -4px; border-width: 0 2px 2px 0; }

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

/* ── DISCOVER SECTION ─────────────────────────────────────── */
.discover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.discover-panel {
  background: linear-gradient(135deg, rgba(6,12,6,0.92), rgba(2,6,2,0.96));
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 6px;
  padding: 2rem 2.5rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(12px 0%, 100% 0%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0% 100%, 0% 12px);
}
.discover-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #c9a227 30%, #f0c040 50%, #c9a227 70%, transparent);
}
.discover-panel h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.4rem,2.2vw,2rem);
  color: #f0c040;
  text-shadow: 0 0 20px rgba(201,162,39,0.5);
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
}
.discover-panel p { color: rgba(200,190,160,0.75); line-height: 1.85; font-size: 0.92rem; margin-bottom: 0.75rem; }

/* ── LATEST DROP ──────────────────────────────────────────── */
.latest-drop-inner {
  position: relative;
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 6px;
  overflow: hidden;
  clip-path: polygon(12px 0%, 100% 0%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0% 100%, 0% 12px);
  box-shadow: 0 0 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,255,136,0.08) inset;
}
.latest-drop-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #c9a227 30%, #f0c040 50%, #c9a227 70%, transparent);
  z-index: 2;
}
.drop-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem,3vw,3rem);
  background: linear-gradient(180deg, #fff5c0, #f0c040 40%, #c9a227 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-main { grid-template-columns: 1fr 400px; gap: 2rem; }
  .hero-card-img { width: 280px; }
}
@media (max-width: 900px) {
  .hero-main { grid-template-columns: 1fr; padding: 3rem 1.5rem 2rem; }
  .hero-card-display { display: none; }
  .hero-title-line { font-size: clamp(3.5rem, 12vw, 7rem); }
}
@media (max-width: 600px) {
  .hero-hud-strip { flex-wrap: wrap; }
  .hud-chip { flex: 1 1 45%; }
  .hero-ctas { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .discover-grid { grid-template-columns: 1fr; }
}
