/* WorldLive Cam v3 - Gezegen Canlı Arayüz Stilleri */
:root {
  --bg-main: #070d19;
  --bg-card: #0f172a;
  --bg-elevated: #1e293b;
  --bg-glass: rgba(15, 23, 42, 0.92);
  --border: rgba(148, 163, 184, 0.16);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #10b981;
  --amber: #f59e0b;
  --danger: #ef4444;
  --purple: #a855f7;
  --radius: 14px;
}

body.terra-body {
  background: var(--bg-main) !important;
  color: var(--text-main) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif !important;
  line-height: 1.45;
  padding-bottom: 76px;
  overflow-x: hidden;
  margin: 0;
}

/* 1. Gezegen Telemetri Üst Çubuğu */
.telemetry-bar {
  background: linear-gradient(90deg, #070e1d 0%, #0d1a30 50%, #070e1d 100%);
  border-bottom: 1px solid var(--border);
  padding: 6px 20px;
  font-size: 12px;
}
.telemetry-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.telemetry-bar::-webkit-scrollbar { display: none; }
.telemetry-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.telemetry-row::-webkit-scrollbar { display: none; }
.telemetry-lead {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 155px;
}
.telemetry-lead-spacer {
  display: none;
}
.telemetry-items {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}
@media (max-width: 768px) {
  .telemetry-bar { padding: 7px 12px; }
  .telemetry-lead { min-width: auto; }
}
.telemetry-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pill-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-main);
  font-weight: 500;
  text-decoration: none;
}
.pill-stat:hover, .pill-stat.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent);
  color: #fff;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

/* 2. Header & Komuta Çubuğu (2 Katmanlı Hizalı Yerleşim) */
.terra-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
}
.terra-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.terra-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
}
.terra-header-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  overflow-x: auto;
  scrollbar-width: none;
}
.terra-header-sub::-webkit-scrollbar { display: none; }
.terra-nav-sub-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.4px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.brand-orb {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 30%, #38bdf8, #2563eb 60%, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 15px rgba(56,189,248,0.35);
}
.terra-nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.terra-nav-tabs::-webkit-scrollbar { display: none; }
.terra-nav-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.terra-nav-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.terra-nav-btn.active {
  color: #070d19;
  background: var(--accent);
  border-color: var(--accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.terra-search-box {
  position: relative;
  flex: 1 1 260px;
  max-width: 440px;
  min-width: 170px;
}
.terra-search-box input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: #fff;
  padding: 8px 12px 8px 34px;
  border-radius: 10px;
  font-size: 13px;
  outline: none;
}
.terra-search-box input:focus { border-color: var(--accent); }
.terra-search-box .search-ico {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
}
/* Evrensel Ülke Bayrağı Bileşeni & Dil Açılır Menüsü */
.wlc-flag-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 1;
}
.wlc-flag-img {
  display: inline-block;
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.wlc-flag-fb {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 14px;
  padding: 0 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.32);
}
.lang-selector-dropdown {
  position: relative;
  display: inline-block;
}
.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  color: #fff;
  border: 1px solid var(--border);
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.lang-dropdown-btn:hover { border-color: var(--accent); }
.lang-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 6px);
  min-width: 170px;
  max-width: calc(100vw - 24px);
  max-height: 360px;
  overflow-y: auto;
  background: #0b1326;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.72);
  z-index: 1500;
}
html[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}
.lang-dropdown-menu.open { display: flex; flex-direction: column; gap: 3px; }
.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: 0;
  color: #e2e8f0;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.lang-dropdown-item:hover, .lang-dropdown-item.active {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
}
.ctrl-select, .ctrl-btn {
  background: var(--bg-elevated);
  color: #fff;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.ctrl-btn.primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  border: none;
}
.ctrl-btn.primary:hover { opacity: 0.9; }

/* 3. Filtre Şeridi (26 Tema + Kıta/Bölge) */
.terra-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 20px;
}
.filter-strip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.filter-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-chips-scroll {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  flex: 1 1 560px;
  min-width: 0;
  padding-bottom: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-chips-scroll::-webkit-scrollbar { display: none; }
.filter-sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.wlc-filter-extra {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.wlc-mob-filter-toggle {
  display: none;
}
.filter-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  text-decoration: none;
}
.filter-chip:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.filter-chip.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent);
  color: #fff;
}
.chip-count {
  font-size: 11px;
  opacity: 0.8;
  background: rgba(0,0,0,0.35);
  padding: 1px 6px;
  border-radius: 99px;
}

/* 4. Kamera Kartı Grid & Kart Tasarımı */
.cam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}
.cam-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.cam-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.cam-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
  overflow: hidden;
}
.cam-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cam-canvas-thumb {
  width: 100%;
  height: 100%;
  display: block;
}
.badge-top-left {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 2;
}
.live-badge {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
}
.solar-badge {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
}
.solar-badge.solar-sunrise { background: rgba(245, 158, 11, 0.3); border-color: #f59e0b; color: #fde68a; }
.solar-badge.solar-sunset { background: rgba(239, 68, 68, 0.3); border-color: #ef4444; color: #fca5a5; }
.solar-badge.solar-golden_hour { background: rgba(217, 119, 6, 0.35); border-color: #f59e0b; color: #fef08a; }
.solar-badge.solar-daylight { background: rgba(56, 189, 248, 0.25); border-color: #38bdf8; color: #bae6fd; }
.solar-badge.solar-night { background: rgba(30, 41, 59, 0.8); border-color: rgba(255,255,255,0.2); color: #cbd5e1; }

.card-actions-top-right {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.card-act-btn,
.fav-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.fav-btn {
  position: relative;
}
.card-act-btn:hover,
.fav-btn:hover {
  transform: scale(1.12);
  border-color: var(--accent);
}
.fav-btn.active { color: #f43f5e; border-color: #f43f5e; background: rgba(244,63,94,0.18); }

.cam-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 12px 8px;
  background: linear-gradient(to top, rgba(2,6,23,0.95), transparent);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
}
.cam-body {
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.cam-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cam-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cam-tags {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 5px;
  margin-top: auto;
  padding-top: 6px;
}
.tag-mini {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255,255,255,0.06);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 5. Çoklu Ekran Stüdyosu (Multiview 2x2 & 3x3) */
.multiview-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.multiview-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 820px) {
  .multiview-grid-2x2, .multiview-grid-3x3 { grid-template-columns: 1fr; }
  .terra-nav-tabs { display: none; }
  .mobile-bottom-nav { display: flex !important; }
}
.mv-slot {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mv-header {
  padding: 8px 12px;
  background: var(--bg-elevated);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

/* 6. Mobil Alt Navigasyon (Mobile Bottom Bar) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  z-index: 60;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
}
.mob-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.mob-tab.active { color: var(--accent); }

/* 7. Modal Oynatıcı */
.terra-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.terra-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.85);
}
.stat-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

/* 8. Sürekli Kayan Kamera Şeridi (Continuous Auto-Scroll Live Reel) */
.mv-scroll-reel-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 0;
}
.mv-scroll-reel-wrap:hover .mv-scroll-reel {
  animation-play-state: paused;
}
.mv-scroll-reel {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: reelScroll 45s linear infinite;
}
@keyframes reelScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.mv-reel-card {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.mv-reel-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.mv-reel-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #000;
  display: block;
}
.mv-reel-body {
  padding: 8px 10px;
}
.mv-reel-title {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 4px;
}
.mv-reel-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* 9. Gezegen Radarı Stüdyosu (Radar Layout & Side Panel) */
.radar-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  min-height: 560px;
}
@media (max-width: 1024px) {
  .radar-layout { grid-template-columns: 1fr; }
}
.radar-stage {
  background: #040914;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.radar-toolbar {
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}
#planetCanvas {
  width: 100%;
  height: 480px;
  display: block;
  cursor: grab;
}
.radar-side {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 580px;
  overflow-y: auto;
}
.stat-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  transition: transform 0.15s, border-color 0.15s;
}
.stat-box:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.mv-cam-select {
  background: var(--bg-main) !important;
  color: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  padding: 3px 8px !important;
  font-size: 11.5px !important;
  max-width: 200px;
  outline: none;
}
.mv-cam-select:focus {
  border-color: var(--accent) !important;
}
