:root {
  --astro-primary: #6366f1;
  --astro-primary-dark: #4338ca;
  --astro-accent: #f59e0b;
}

.astro-portal-main {
  background: #f8fafc !important;
  padding-top: var(--global-header-offset) !important;
  padding-bottom: 6rem !important;
  min-height: 100vh;
}

/* Layout */
.news-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.news-main-content {
  flex: 1;
  min-width: 0;
}

.news-sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

@media (max-width: 1024px) {
  .news-layout {
    flex-direction: column;
    align-items: stretch;
  }
  .news-main-content {
    width: 100%;
  }
  .news-sidebar {
    display: none !important;
  }
}

/* 🌟 ASTRO HERO (Pazar & Eczane Master Design System Harmonized) */
.astro-hero {
  margin-top: 0 !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%) !important;
  padding: 1.5rem 1.5rem 1.25rem !important;
  border-radius: 26px !important;
  margin-bottom: 1rem !important;
  color: #ffffff !important;
  box-shadow: 0 12px 32px rgba(49, 46, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  position: relative !important;
  overflow: visible !important;
}

.astro-hero h1 {
  font-size: 1.55rem !important;
  font-weight: 900 !important;
  margin: 0 0 0.35rem 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  letter-spacing: -0.01em !important;
  color: #ffffff !important;
}

/* Pazar Detail Top Bar Nav Styles */
.pazar-nav-menu {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.pazar-nav-link {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 50px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.pazar-nav-link:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px) !important;
}

.pazar-nav-link.active {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.astro-detail-header-body {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-top: 0.5rem !important;
}

.astro-card-emoji-large {
  font-size: 2.2rem !important;
  width: 60px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border-radius: 18px !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(199, 210, 254, 0.8) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
}

.astro-detail-header-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.astro-detail-meta-pills {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.astro-meta-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(15, 23, 42, 0.4) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  padding: 5px 12px !important;
  border-radius: 50px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

/* Detail Main Card */
.astro-content-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
}

/* Tabs Navigation */
.astro-tabs-nav {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 18px;
  margin-bottom: 1.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid #e2e8f0;
}

.astro-tabs-nav::-webkit-scrollbar {
  display: none;
}

.astro-tab-btn {
  flex: 1;
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.astro-tab-btn:hover {
  color: #0f172a;
}

.astro-tab-btn.active {
  background: #ffffff;
  color: #6366f1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Tab Contents */
.astro-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.astro-tab-content.active {
  display: block;
}

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

.astro-topic-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  margin-bottom: 1.25rem;
}

.astro-topic-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.astro-topic-icon {
  width: 42px;
  height: 42px;
  background: #eef2ff;
  color: #6366f1;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.astro-topic-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.astro-topic-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #475569;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 24px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}



/* Mobile Responsiveness */
@media (max-width: 680px) {
  .container {
    padding: 0 10px !important;
  }

  /* ─── Top Nav Bar (Pazar-style 2-Line Layout) ─── */
  .astro-topbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 0.65rem 0.85rem !important;
    border-radius: 16px !important;
    margin-bottom: 0.85rem !important;
  }

  .astro-topbar-row1 {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .astro-topbar-back {
    font-size: 0.76rem !important;
  }

  .pazar-nav-menu {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 3px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
  }

  .pazar-nav-link {
    font-size: 0.66rem !important;
    padding: 3px 6px !important;
    gap: 3px !important;
    white-space: nowrap !important;
  }

  .pazar-nav-link span {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 400px) {
  .astro-topbar {
    padding: 0.5rem 0.6rem !important;
  }
  .astro-topbar-back {
    font-size: 0.72rem !important;
  }
  .pazar-nav-link {
    font-size: 0.62rem !important;
    padding: 2px 4px !important;
    gap: 2px !important;
  }
}

  /* ─── Hero ─── */
  .astro-hero {
    padding: 1rem 1rem 0.85rem !important;
    border-radius: 20px !important;
    margin-bottom: 0.85rem !important;
  }
  .astro-detail-header-body {
    gap: 12px !important;
  }
  .astro-hero h1 {
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem !important;
  }
  .astro-card-emoji-large {
    width: 46px !important;
    height: 46px !important;
    font-size: 1.55rem !important;
    border-radius: 14px !important;
  }
  .astro-meta-pill {
    font-size: 0.74rem !important;
    padding: 3px 10px !important;
  }

  /* ─── Content ─── */
  .astro-content-card {
    padding: 1.25rem 1rem !important;
    border-radius: 20px !important;
  }
  .astro-tabs-nav {
    padding: 4px !important;
    border-radius: 14px !important;
    gap: 4px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .astro-tab-btn {
    flex: none !important;
    padding: 8px 13px !important;
    font-size: 0.77rem !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
  }
  .astro-topic-card {
    padding: 1rem !important;
    border-radius: 16px !important;
  }
  .sidebar-widget {
    border-radius: 18px !important;
    padding: 1rem !important;
  }

}

@media (max-width: 768px) {
  .astro-topbar, .astro-hero {
    display: none !important;
  }
  .news-layout {
    margin-top: 0.5rem !important;
  }
}

/* 🌟 MASAÜSTÜ PAYLAŞIM BUTONLARI */
.desktop-share-buttons {
  display: flex !important;
  gap: 6px !important;
  z-index: 25 !important;
  align-items: center !important;
}
.desktop-share-buttons button {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #64748b !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease !important;
}
.desktop-share-buttons button:hover {
  background: #ffffff !important;
  color: #0f172a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
.desktop-share-buttons button.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.35) !important;
}
.desktop-share-buttons button.instagram:hover {
  transform: translateY(-2px) scale(1.08) !important;
  box-shadow: 0 6px 16px rgba(220, 39, 67, 0.5) !important;
}
.desktop-share-buttons button.facebook:hover { color: #1877f2 !important; }
.desktop-share-buttons button.x:hover { color: #000000 !important; }
.desktop-share-buttons button.whatsapp:hover { color: #25d366 !important; }
.desktop-share-buttons button.copy:hover { color: #7c3aed !important; }

@media (max-width: 900px) {
  .desktop-share-buttons {
    display: none !important;
  }
}