/* ==========================================================================
   YAPIMDA - SPOTLIGHT VİTRİN & CANLI DİJİTAL MAGAZİN
   Konsept: Windows Spotlight & Apple Kilit Ekranı Sinematik Deneyimi
   ========================================================================== */

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Glassmorphism ve Renkler */
  --glass-bg: rgba(10, 15, 29, 0.62);
  --glass-bg-hover: rgba(15, 23, 42, 0.85);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-glow: rgba(255, 255, 255, 0.3);
  --text-pure: #ffffff;
  --text-soft: #e2e8f0;
  --text-muted: #94a3b8;
  
  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-blue: #38bdf8;

  --shadow-deep: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Temel Sıfırlama */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #030712;
  font-family: var(--font-body);
  color: var(--text-pure);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Sinematik Arka Plan & Cross-Fade Katmanları
   ========================================================================== */
.spotlight-bg-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #030712;
}

.spotlight-bg {
  position: absolute;
  inset: -15px; /* Ken Burns taşma payı */
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.0);
  transition: opacity 1.8s ease-in-out, transform 30s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.spotlight-bg.active {
  opacity: 1;
  transform: scale(1.05);
}

/* Sinematik Vinyet & Kontrast Filtresi */
.bg-vignette-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.45) 85%),
              linear-gradient(to bottom, rgba(3, 7, 18, 0.75) 0%, transparent 18%, transparent 70%, rgba(3, 7, 18, 0.88) 100%);
  pointer-events: none;
}

/* ==========================================================================
   Arayüz Katmanı (UI Container)
   ========================================================================== */
.app-interface {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100vh;
  padding: 1.25rem 1.75rem 1.15rem;
  box-sizing: border-box;
}

/* Glassmorphism Ortak Sınıfı */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--shadow-deep);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-glow);
}

/* ==========================================================================
   1. Üst Bar: Marka, Saat/Tarih (Tam Ortalanmış) ve Kontroller
   ========================================================================== */
.top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.bar-left {
  justify-self: start;
  display: flex;
  align-items: center;
}

/* Marka */
.brand-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
}

.brand-sparkle {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  animation: rotateSparkle 8s linear infinite;
}

@keyframes rotateSparkle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.brand-texts {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-pure);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Minimalist Saat & Tarih (Matematiksel Olarak Tam Merkezde) */
.bar-center {
  justify-self: center;
  text-align: center;
}

.live-time-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.clock {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.date {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
}

/* Sağ Alan: Radyo ve Slayt Kontrolleri */
.bar-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Canlı Ambiyans Radyosu Kontrol Butonu */
.radio-controller {
  display: flex;
  align-items: center;
}

.radio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.radio-btn:hover {
  background: rgba(20, 30, 55, 0.7);
  border-color: rgba(56, 189, 248, 0.35);
  color: #fff;
  transform: scale(1.02);
}

.radio-btn.playing {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.radio-icon {
  font-size: 0.9rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.radio-btn.playing .radio-icon {
  animation: pulseIcon 1.5s infinite alternate;
}

@keyframes pulseIcon {
  0% { transform: scale(1); }
  100% { transform: scale(1.2); color: var(--accent-cyan); }
}

/* Equalizer Bars Animasyonu */
.equalizer-bars {
  display: none;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
  margin-left: 0.2rem;
}

.radio-btn.playing .equalizer-bars {
  display: inline-flex;
}

.equalizer-bars span {
  width: 2px;
  background-color: var(--accent-cyan);
  border-radius: 1px;
  animation: bounceBar 1.2s infinite ease-in-out alternate;
}

.equalizer-bars span:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.equalizer-bars span:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.equalizer-bars span:nth-child(3) { height: 40%; animation-delay: 0.2s; }

@keyframes bounceBar {
  0% { height: 25%; }
  100% { height: 100%; }
}

/* Slayt Kontrol Düğmeleri */
.gallery-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-soft);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: var(--transition-smooth);
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: scale(1.08);
}

/* ==========================================================================
   2. Ana Sahne: Sol Sütun (Sosyal Medya + Keşif) ve Sağda Spotlight Pini
   ========================================================================== */
.main-stage {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.5rem;
  position: relative;
}

/* Sol Sütun Kapsayıcısı */
.left-panels-column {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 400px;
  width: 100%;
}

/* Yasal Sorumluluk Reddi (Disclaimer Bar - Zarif ve Küçük Hap) */
.social-disclaimer-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.35;
  width: fit-content;
  max-width: 100%;
}

.disclaimer-icon {
  font-size: 0.75rem;
  opacity: 0.8;
  line-height: 1;
}

.disclaimer-text {
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Sosyal Medya & Trend Paylaşım Kartı */
.social-feed-card {
  padding: 1.15rem 1.4rem;
  position: relative;
  border-left: 3px solid var(--accent-blue);
  animation: cardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.social-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-network-icon {
  font-size: 0.95rem;
  color: var(--accent-blue);
  font-weight: 800;
}

.social-topic-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.social-live-pulse {
  position: relative;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-core {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-blue);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(56, 189, 248, 0.4);
  animation: socialPulseRing 2s infinite ease-out;
}

@keyframes socialPulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.social-post-content {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: opacity 0.35s ease;
}

.post-user-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.avatar-ph {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(99, 102, 241, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.user-handle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.post-text {
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.45;
  font-style: italic;
}

.post-metrics {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.metric-tag {
  margin-left: auto;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Günün Keşfi Kartı ("Bu Neymiş!") */
.discovery-card {
  padding: 1.15rem 1.4rem;
  transform-origin: bottom left;
  animation: cardFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.topic-label {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: #e0f2fe;
}

.discovery-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.discovery-text {
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.discovery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 0.6rem;
}

.discovery-tag {
  color: var(--accent-gold);
  font-weight: 600;
}

.today-notice {
  color: var(--text-muted);
}

/* Windows Spotlight Konum Rozeti ("📍 Nerede Çekildi?") */
.spotlight-pin-container {
  position: relative;
  align-self: flex-end;
}

.pin-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-pure);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
}

.pin-icon {
  font-size: 1.05rem;
}

.pin-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  font-style: italic;
  font-weight: bold;
}

/* Açılır Hikaye Popover */
.story-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 330px;
  padding: 1.3rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  animation: popoverSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.story-popover.active {
  display: flex;
}

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

.story-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.story-category {
  color: var(--accent-cyan);
}

.story-country {
  color: var(--text-muted);
}

.story-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.story-desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.story-credit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.story-credit strong {
  color: #fff;
}

.res-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--accent-emerald);
}

/* ==========================================================================
   3. Alt Çubuk: Canlı Gündem & Haber Ticker
   ========================================================================== */
.bottom-news-bar {
  width: 100%;
}

.news-ticker-container {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  gap: 1.25rem;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f87171;
  white-space: nowrap;
}

.live-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: beaconPulse 1.5s infinite;
}

@keyframes beaconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.4); }
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.news-item {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

.news-item:hover {
  color: #ffffff;
  text-decoration: underline;
}

.ticker-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ticker-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-soft);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.ticker-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.news-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  min-width: 32px;
  text-align: center;
}

/* ==========================================================================
   Mobil ve Küçük Ekran Uyumluluğu (Responsive)
   ========================================================================== */
@media (max-width: 900px) {
  .app-interface {
    padding: 1.15rem 1rem 1rem;
    overflow-y: auto;
    height: 100vh;
  }

  .top-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .bar-left, .bar-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .main-stage {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 1.15rem;
    padding: 0.75rem 0;
  }

  .left-panels-column {
    max-width: 100%;
  }

  .spotlight-pin-container {
    align-self: flex-start;
    width: 100%;
  }

  .pin-pill {
    width: 100%;
    justify-content: center;
  }

  .story-popover {
    width: 100%;
    right: 0;
  }

  .news-ticker-container {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .ticker-content {
    width: 100%;
    order: 3;
    white-space: normal;
    font-size: 0.85rem;
  }
}
