/* ═══════════════════════════════════════════════════════════════
   Landing Page — Graphics & Broadcast Engine Mock CSS
   Real TWA styles adapted for landing page simulation
   ═══════════════════════════════════════════════════════════════ */

/* ── GRAPHICS ENGINE (left card) ──────────────────────────────── */

.ln-graphics-app {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #0a1628;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.ln-gfx-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ln-gfx-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.ln-gfx-map-layer {
  opacity: 0.85;
  mix-blend-mode: screen;
}

/* Assets on map — fade-in + hareket */
.ln-gfx-asset {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
  opacity: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

#gfx-asset-arrow {
  animation: gfx-asset-arrow-move 8s ease-in-out 1.5s infinite;
}
#gfx-asset-high {
  animation: gfx-asset-high-move 8s ease-in-out 2.2s infinite;
}
#gfx-asset-low {
  animation: gfx-asset-low-move 8s ease-in-out 2.9s infinite;
}

@keyframes gfx-asset-arrow-move {
  0%, 12% { opacity: 0; transform: translate(-70%, -50%) scale(0.8); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  85% { opacity: 1; transform: translate(-30%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-10%, -50%) scale(1.1); }
}

@keyframes gfx-asset-high-move {
  0%, 12% { opacity: 0; transform: translate(-50%, -70%) scale(0.8); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  85% { opacity: 1; transform: translate(-50%, -35%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -20%) scale(1.1); }
}

@keyframes gfx-asset-low-move {
  0%, 12% { opacity: 0; transform: translate(-30%, -50%) scale(0.8); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  85% { opacity: 1; transform: translate(-70%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-90%, -50%) scale(1.1); }
}

/* Ghost cursor — REMOVED (no mouse movement) */
.ln-gfx-cursor {
  display: none;
}

.ln-gfx-ripple {
  display: none;
}

/* Animation Engine bar (bottom) — Floating, compact, rounded */
.ln-gfx-ae-bar {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  height: 95px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2), 0 4px 16px rgba(0,0,0,0.1);
  font-family: 'Figtree', system-ui;
}

.ln-gfx-ae-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.ln-gfx-ae-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: #1a6fd4;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,111,212,0.3);
}

.ln-gfx-ae-play:hover {
  background: #1355a6;
  transform: scale(1.05);
}

.ln-gfx-ae-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #1a6fd4;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.ln-gfx-ae-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Track headers (left side) */
.ln-gfx-ae-track-headers {
  width: 100px;
  flex-shrink: 0;
  border-right: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}

.ln-gfx-track-head {
  height: 22px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}

.ln-gfx-track-head:hover {
  background: rgba(0,0,0,0.04);
}

.ln-gfx-track-type {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.ae-track-type-weather {
  background: rgba(52,152,219,0.25);
  color: #1a5276;
}

.ae-track-type-symbol {
  background: rgba(155,89,182,0.25);
  color: #6c3483;
}

.ln-gfx-track-name {
  font-size: 11px;
  font-weight: 600;
  color: #333;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Timeline (right side) */
.ln-gfx-ae-timeline {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: rgba(0,0,0,0.02);
  overflow: hidden;
}

.ln-gfx-ae-ruler {
  height: 18px;
  background: rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: relative;
  flex-shrink: 0;
}

.ln-gfx-ruler-label {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  color: #8e99a8;
  font-variant-numeric: tabular-nums;
}

.ln-gfx-ae-tracks-timeline {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ln-gfx-track-row {
  height: 22px;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ln-gfx-track-clip {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  background: linear-gradient(135deg, rgba(26,111,212,0.18) 0%, rgba(26,111,212,0.10) 100%);
  border: 1px solid rgba(26,111,212,0.35);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(26,111,212,0.15);
}

.ln-gfx-track-keyframe {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: #f0932b;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(240,147,43,0.5), 0 0 12px rgba(240,147,43,0.3);
  z-index: 2;
}

.ln-gfx-ae-playhead {
  position: absolute;
  top: 18px;
  left: 0;
  bottom: 0;
  width: 2px;
  background: #1a6fd4;
  z-index: 5;
  box-shadow: 0 0 8px rgba(26,111,212,0.7);
  animation: gfx-playhead-move 8s linear 1s infinite;
}

@keyframes gfx-playhead-move {
  0%, 2% { left: 0; }
  93%, 100% { left: 100%; }
}

.ln-gfx-ae-playhead::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -4px;
  width: 10px;
  height: 10px;
  background: #1a6fd4;
  border: 2px solid #fff;
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(26,111,212,0.6);
}

/* ═══════════════════════════════════════════════════════════════
   BROADCAST ENGINE (right card)
   ═══════════════════════════════════════════════════════════════ */

/* Broadcast — IDENTICAL to Graphics, but with Stream button */
.ln-bcast-ae-bar-override .ln-gfx-ae-header {
  /* Add stream button to the right */
}

.ln-bcast-stream-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  background: #1a6fd4;
  color: #fff;
  border: 1px solid rgba(26,111,212,0.6);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Figtree', system-ui;
  box-shadow: 0 2px 8px rgba(26,111,212,0.3);
  margin-left: auto;
}

.ln-bcast-stream-btn:hover {
  background: #1355a6;
  border-color: rgba(26,111,212,0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,111,212,0.5);
}

/* Broadcast assets — same animations as Graphics */
.ln-bcast-asset {
  z-index: 5;
}

#bcast-asset-arrow {
  animation: gfx-asset-arrow-move 8s ease-in-out 1.5s infinite;
}
#bcast-asset-high {
  animation: gfx-asset-high-move 8s ease-in-out 2.2s infinite;
}
#bcast-asset-low {
  animation: gfx-asset-low-move 8s ease-in-out 2.9s infinite;
}

#bcast-playhead {
  animation: gfx-playhead-move 8s linear 1s infinite;
}

/* ── Broadcast app container ──────────────────────────────────── */
.ln-bcast-app {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #0a1628;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.ln-bcast-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ln-bcast-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.ln-bcast-map-layer {
  opacity: 0.85;
  mix-blend-mode: screen;
  animation: ln-map-pulse 3s ease-in-out infinite;
}
@keyframes ln-map-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.75; }
}

/* ── Stream modal overlay ──────────────────────────────────── */
.ln-bcast-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,22,40,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: ln-modal-fade-in 0.3s ease-out;
}

.ln-bcast-modal-overlay.is-open {
  display: flex;
}

@keyframes ln-modal-fade-in {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(12px);
  }
}

.ln-bcast-modal {
  width: 90%;
  max-width: 280px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(28px) saturate(1.9);
  -webkit-backdrop-filter: blur(28px) saturate(1.9);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.1);
  animation: ln-modal-scale-in 0.3s cubic-bezier(0.16,1,0.3,1);
}

@keyframes ln-modal-scale-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.ln-bcast-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.ln-bcast-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(26,111,212,0.08);
  color: #1a6fd4;
  flex-shrink: 0;
}

.ln-bcast-modal-title {
  flex: 1;
}

.ln-bcast-modal-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8e99a8;
  margin-bottom: 2px;
}

.ln-bcast-modal-subtitle {
  font-size: 10.5px;
  color: #8e99a8;
}

.ln-bcast-modal-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.ln-bcast-modal-section-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8e99a8;
  margin-bottom: 8px;
}

/* Resolution chips */
.ln-bcast-res-chips {
  display: flex;
  gap: 6px;
}

.ln-bcast-res-chip {
  flex: 1;
  padding: 10px 8px;
  border: 1.5px solid rgba(0,0,0,0.09);
  border-radius: 8px;
  background: rgba(255,255,255,0.6);
  font-size: 11px;
  font-weight: 700;
  color: #5a6777;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
  text-align: center;
  font-family: 'Figtree', system-ui;
}

.ln-bcast-res-chip:hover {
  border-color: rgba(26,111,212,0.35);
  background: rgba(26,111,212,0.05);
  color: #1a6fd4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ln-bcast-res-chip.is-active {
  border-color: #1a6fd4;
  background: rgba(26,111,212,0.08);
  color: #1a6fd4;
  box-shadow: 0 0 0 3px rgba(26,111,212,0.12);
}

/* Access toggle */
.ln-bcast-access-opts {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.ln-bcast-access-opt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border: 1.5px solid rgba(0,0,0,0.09);
  border-radius: 8px;
  background: rgba(255,255,255,0.6);
  font-size: 11px;
  font-weight: 700;
  color: #5a6777;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
  font-family: 'Figtree', system-ui;
}

.ln-bcast-access-opt:hover {
  border-color: rgba(26,111,212,0.35);
  background: rgba(26,111,212,0.05);
  color: #1a6fd4;
  transform: translateY(-1px);
}

.ln-bcast-access-opt.is-active {
  border-color: #1a6fd4;
  background: rgba(26,111,212,0.08);
  color: #1a6fd4;
  box-shadow: 0 0 0 3px rgba(26,111,212,0.12);
}

.ln-bcast-access-hint {
  font-size: 10px;
  color: #8e99a8;
  line-height: 1.4;
}

/* Publish button */
.ln-bcast-publish-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  background: #1a6fd4;
  color: #fff;
  border: 1px solid rgba(26,111,212,0.6);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Figtree', system-ui;
  box-shadow: 0 2px 10px rgba(26,111,212,0.3);
}

.ln-bcast-publish-btn:hover {
  background: #1355a6;
  border-color: rgba(26,111,212,0.9);
  box-shadow: 0 4px 20px rgba(26,111,212,0.5);
  transform: translateY(-2px);
}

/* ── Loading screen ──────────────────────────────────────── */
.ln-bcast-loading {
  position: absolute;
  inset: 0;
  background: rgba(10,22,40,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 101;
}

.ln-bcast-loading.is-open {
  display: flex;
  animation: ln-loading-fade-in 0.3s ease-out;
}

@keyframes ln-loading-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ln-bcast-loading-inner {
  text-align: center;
  animation: ln-loading-float 2s ease-in-out infinite;
}

@keyframes ln-loading-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.ln-bcast-loading-icon {
  margin: 0 auto 20px;
}

.ln-bcast-loading-spinner {
  stroke-dasharray: 88;
  stroke-dashoffset: 66;
  animation: ln-loading-spin 1.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes ln-loading-spin {
  0% { stroke-dashoffset: 66; transform: rotate(0deg); }
  50% { stroke-dashoffset: 22; }
  100% { stroke-dashoffset: 66; transform: rotate(360deg); }
}

.ln-bcast-loading-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  font-family: 'Figtree', system-ui;
}

.ln-bcast-loading-bar {
  width: 240px;
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto 10px;
}

.ln-bcast-loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #1a6fd4 0%, #4a9eff 100%);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease-out;
}

.ln-bcast-loading-percent {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', monospace;
}

/* ── LIVE badge ──────────────────────────────────────── */
.ln-bcast-live-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(34,197,94,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 8px;
  z-index: 50;
  animation: ln-live-pulse 2s ease-in-out infinite;
}

.ln-bcast-live-badge.is-visible {
  display: flex;
}

@keyframes ln-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.ln-bcast-live-dot {
  width: 8px;
  height: 8px;
  background: #16a34a;
  border-radius: 50%;
  animation: ln-live-dot-pulse 1.5s ease-in-out infinite;
}

@keyframes ln-live-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ln-bcast-live-text {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #16a34a;
  font-family: 'Figtree', system-ui;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .ln-bcast-ae-bar {
    height: 48px;
    padding: 0 12px;
  }

  .ln-bcast-ae-logo span {
    display: none;
  }

  .ln-bcast-ae-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .ln-bcast-modal {
    max-width: 260px;
  }
}
