/**
 * Samozashtita Pro — Capsule / Ellipse & Video Stage Layout & Animations
 * Version: 2.1.0
 * Stacking context:
 * - Outline & Accents: z-index: 1-4
 * - Central Focal Area & Logo: z-index: 5-10
 * - Ellipse Track Items: z-index: 20
 * - Ellipse Items Active/Hover: z-index: 60
 * - Floating Hover Tooltip Panel: z-index: 80 (OUTSIDE ellipse)
 * - Video Panel & Replay: z-index: 50
 */

/* EDITORIAL MAIN STAGE */
.sz-editorial-stage {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6.5rem 2rem 4rem;
  overflow: hidden;
}

/* HORIZONTAL 3-PART COMPOSITION: [ STORE ] [ ELLIPSE ] [ VIDEO ] */
.sz-stage-composition {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  gap: clamp(1.5rem, 2.5vw, 3rem);
  position: relative;
  z-index: 10;
}

/* 1. LEFT WING: DIGITAL STORE CARD / BUTTON */
.sz-stage-wing-left {
  flex: 0 0 240px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  z-index: 25;
}

.sz-store-card {
  width: 100%;
  background: rgba(18, 22, 31, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.5rem 1.3rem;
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(14, 165, 233, 0.08);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sz-store-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 
    0 26px 55px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(14, 165, 233, 0.22);
}

.sz-store-eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sz-accent, #0ea5e9);
}

.sz-store-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(2, 132, 199, 0.28));
  border: 1.5px solid rgba(14, 165, 233, 0.45);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25);
}

.sz-store-action-btn:hover,
.sz-store-action-btn:focus-visible {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-color: #38bdf8;
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.5);
  transform: scale(1.02);
}

.sz-store-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sz-store-icon svg {
  width: 100%;
  height: 100%;
}

.sz-store-arrow {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.sz-store-action-btn:hover .sz-store-arrow {
  transform: translateX(4px);
}

.sz-store-hint {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--sz-text-muted, #94a3b8);
}

/* 2. CENTER STAGE: CAPSULE / ELLIPSE SYSTEM */
.sz-stage-center {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sz-capsule-wrapper {
  position: relative;
  width: var(--ellipse-width, 620px);
  height: var(--ellipse-height, 920px);
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* THE BOUNDARY TRACK OUTLINE */
.sz-capsule-outline {
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--ellipse-width, 620px) / 2);
  pointer-events: none;
  transition: var(--trans-smooth, all 0.35s ease);
  z-index: 2;
}

.sz-capsule-outline::before {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(14, 165, 233, 0.08);
  border-radius: inherit;
}

/* ACCENT LABELS ALONG TRACK */
.sz-editorial-accents {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.sz-accent-tag {
  position: absolute;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sz-text-dim, #64748b);
  background: var(--sz-bg, #090a0d);
  padding: 0.2rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.sz-accent-top-left  { top: 7%; left: 5%; }
.sz-accent-top-right { top: 7%; right: 5%; }
.sz-accent-bot-left  { bottom: 28%; left: 3%; }
.sz-accent-bot-right { bottom: 28%; right: 3%; }

/* ==========================================================================
   CENTRAL FOCAL AREA (Center of Stadium) - Open, Minimal, Editorial
   ========================================================================== */
.sz-central-focal-area {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  max-width: 80%;
  text-align: center;
  z-index: 8;
  pointer-events: none;
  user-select: none;
}

.sz-focal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sz-focal-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sz-accent, #0ea5e9);
  margin-bottom: 0.6rem;
}

.sz-focal-title {
  font-family: var(--font-display, 'Cinzel', serif);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 0.7rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.sz-focal-main {
  color: #fff;
}

.sz-focal-accent {
  color: #38bdf8;
  background: linear-gradient(135deg, #fff, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sz-focal-pro {
  font-size: 0.85rem;
  vertical-align: super;
  font-family: var(--font-sans, sans-serif);
  font-weight: 800;
  background: #0ea5e9;
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  -webkit-text-fill-color: #fff;
}

.sz-focal-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 140px;
  margin-bottom: 0.7rem;
}

.sz-focal-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(14, 165, 233, 0.4), transparent);
}

.sz-focal-cross {
  font-size: 0.75rem;
  color: var(--sz-accent, #0ea5e9);
}

.sz-focal-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sz-text-dim, #64748b);
}

/* ==========================================================================
   ELLIPSE TRACK ITEMS (LAYER 20)
   ========================================================================== */
.sz-ellipse-track-items {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

/* INDIVIDUAL ELLIPSE ITEM BUTTON / LINK */
.sz-ellipse-item-btn {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--item-tilt, 0deg));
  width: var(--item-size, 100px);
  height: var(--item-size, 100px);
  border-radius: 14px;
  background: #141720;
  padding: 3.5px;
  box-shadow: 
    0 12px 28px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  outline: none;
  user-select: none;
  overflow: hidden;
  will-change: transform, opacity;
  z-index: 20;
  text-decoration: none;
  display: block;
}

/* Atomic hit target: children cannot intercept pointer events */
.sz-ellipse-item-btn * {
  pointer-events: none !important;
}

.sz-item-img-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.sz-item-inner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(9, 10, 13, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

.sz-ellipse-item-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.1) brightness(0.95);
  transition: var(--trans-smooth, all 0.35s ease);
  display: block;
}

.sz-item-badge-pill {
  position: absolute;
  top: 7px;
  left: 7px;
  background: rgba(9, 10, 13, 0.88);
  color: #38bdf8;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  line-height: 1;
  border: 1px solid rgba(14, 165, 233, 0.3);
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* ACTIVE AND HOVER STATES - PRESERVE ROTATION TILT */
.sz-ellipse-item-btn:hover,
.sz-ellipse-item-btn:focus-visible,
.sz-ellipse-item-btn.is-active {
  transform: translate(-50%, -50%) rotate(var(--item-tilt, 0deg)) scale(1.14) !important;
  box-shadow: 
    0 22px 48px rgba(0, 0, 0, 0.7),
    0 0 0 2.5px var(--sz-accent, #0ea5e9),
    0 0 25px rgba(14, 165, 233, 0.45);
  border-color: var(--sz-accent, #0ea5e9);
  z-index: 60 !important;
}

.sz-ellipse-item-btn:hover img,
.sz-ellipse-item-btn:focus-visible img,
.sz-ellipse-item-btn.is-active img {
  filter: saturate(1.15) contrast(1.15) brightness(1.05);
}

.sz-ellipse-item-btn.is-active .sz-item-badge-pill {
  background: var(--sz-accent, #0ea5e9);
  color: #fff;
  border-color: #38bdf8;
}

/* DIMMING OTHER ITEMS WHEN HOVERED */
.sz-capsule-wrapper.has-hover .sz-ellipse-item-btn:not(:hover):not(.is-active) {
  opacity: var(--inactive-opacity, 0.45);
  filter: grayscale(35%) blur(0.3px);
  transform: translate(-50%, -50%) rotate(var(--item-tilt, 0deg)) scale(0.96);
}

/* ==========================================================================
   FLOATING HOVER INFO PANEL (LAYER 70) - Strictly OUTSIDE the Ellipse
   ========================================================================== */
.sz-hover-info-panel {
  position: fixed;
  width: 280px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.4) transparent;
  background: rgba(18, 22, 31, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.2rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: 
    0 24px 55px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(14, 165, 233, 0.2);
  z-index: 1000;
  pointer-events: none !important; /* CRITICAL: Never steal mouse cursor or block clicks on modules */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.94);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.sz-hover-info-panel.is-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.sz-panel-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sz-accent, #0ea5e9);
  margin-bottom: 0.35rem;
}

.sz-panel-title {
  font-family: var(--font-display, 'Cinzel', serif);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--sz-text, #f8fafc);
}

.sz-panel-subtitle {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--sz-text-muted, #94a3b8);
  margin-bottom: 0.85rem;
}

.sz-panel-cta-wrap {
  margin-top: 0.4rem;
}

.sz-panel-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
  transition: all 0.25s ease;
}

.sz-panel-cta-btn:hover {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  transform: translateX(2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.55);
}

.sz-panel-arrow {
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   3. RIGHT WING: CINEMATIC VIDEO PANEL (Vertically Centered with Ellipse)
   ========================================================================== */
.sz-stage-wing-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  z-index: 25;
}

.sz-stage-video-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

/* Editorial Header directly above Video in natural document flow */
.sz-video-editorial-header {
  width: 100%;
  max-width: 360px;
  margin-bottom: 14px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: auto;
}

.sz-video-editorial-header .sz-slogan-title {
  font-family: var(--font-display, 'Cinzel', serif);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 6px 0;
  color: var(--sz-text, #f8fafc);
  line-height: 1.35;
}

.sz-video-editorial-header .sz-slogan-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--sz-text-muted, #94a3b8);
  margin: 0;
}

.sz-video-editorial-header .sz-video-lang-indicator {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
}

.sz-video-card {
  position: relative;
  height: clamp(420px, calc(100vh - 350px), 580px);
  max-height: calc(100vh - 300px);
  width: auto;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 
    0 28px 65px rgba(0, 0, 0, 0.85),
    0 4px 16px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #040608;
  transition: var(--trans-smooth, all 0.35s ease);
}

.sz-video-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 
    0 36px 80px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(14, 165, 233, 0.25);
}

.sz-video-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
  z-index: 2;
}

.sz-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 9 / 16;
  display: block;
}

/* REPLAY OVERLAY (Appears after 3 plays) */
.sz-video-replay-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
  z-index: 10;
}

.sz-video-replay-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.sz-video-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 2.2rem;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 
    0 10px 30px rgba(14, 165, 233, 0.45),
    0 0 20px rgba(14, 165, 233, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.sz-video-play-btn:hover,
.sz-video-play-btn:focus-visible {
  transform: scale(1.06);
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: 
    0 14px 40px rgba(14, 165, 233, 0.65),
    0 0 35px rgba(14, 165, 233, 0.5);
}

.sz-play-icon-wrap {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sz-play-icon {
  width: 100%;
  height: 100%;
}
