:root {
  --astro-primary: #6366f1;
  --astro-primary-dark: #4338ca;
  --astro-accent: #f59e0b;
  --astro-accent-hover: #d97706;
  --astro-card-bg: rgba(255, 255, 255, 0.9);
}

.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: 1rem;
}

.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 {
    width: 100% !important;
    position: static;
  }
  .desktop-only {
    display: none !important;
  }
}

/* 🌟 ASTRO HERO (Eczane & Kuran 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: 0.75rem !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-bottom: 0.35rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  letter-spacing: -0.01em !important;
  color: #ffffff !important;
}

.astro-hero h1 i {
  color: #f59e0b !important;
  font-size: 1.45rem !important;
}

.astro-hero p {
  opacity: 0.92 !important;
  font-size: 0.92rem !important;
  margin: 0 0 0.85rem 0 !important;
  font-weight: 500 !important;
  color: #ffffff !important;
}

.astro-hero-body {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 0.5rem !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
}

/* ARAMA ÇUBUĞU (Masaüstü ve Mobil Görünür) */
.astro-search-bar {
  display: flex !important;
  gap: 8px !important;
  margin-top: 0.85rem !important;
  position: relative !important;
  width: 100% !important;
}

.astro-search-bar input {
  flex: 1 !important;
  min-width: 0 !important;
  padding: 0.75rem 1.25rem !important;
  border: none !important;
  border-radius: 50px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  outline: none !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
  box-sizing: border-box !important;
}

.astro-search-bar input::placeholder {
  color: #94a3b8 !important;
}

.astro-search-bar button {
  padding: 0.7rem 1.15rem !important;
  border: none !important;
  border-radius: 14px !important;
  background: rgba(0, 0, 0, 0.22) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  flex-shrink: 0 !important;
}

.astro-search-bar button:hover {
  background: rgba(0, 0, 0, 0.35) !important;
}

.astro-search-results {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
  max-height: 350px !important;
  overflow-y: auto !important;
  z-index: 9999 !important;
  display: none;
  border: 1px solid #e2e8f0 !important;
}

.astro-search-result-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: #1e293b;
  gap: 12px;
  transition: background 0.2s;
}

.astro-search-result-item:hover {
  background: #f8fafc;
}

.astro-search-result-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  border-radius: 12px;
  flex-shrink: 0;
}

.astro-search-result-info strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
}

.astro-search-result-info small {
  color: #64748b;
  font-size: 0.78rem;
}

/* 🌟 MİNİMALİST SEGMENTED ELEMENT SEKMELERİ (ECZANELER MASTER STİLİ) */
.astro-element-tabs {
  display: flex !important;
  gap: 6px !important;
  width: 100% !important;
  background: rgba(15, 23, 42, 0.4) !important;
  padding: 4px !important;
  border-radius: 50px !important;
  margin-top: 0.65rem !important;
  box-sizing: border-box !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.astro-element-tab {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 10px !important;
  border-radius: 50px !important;
  border: none !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.astro-element-tab:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.astro-element-tab.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.astro-element-tab.active span {
  color: #0f172a !important;
}

@media (max-width: 768px) {
  .astro-hero h1 {
    font-size: 1.25rem !important;
    gap: 8px !important;
  }
  .astro-hero h1 i {
    font-size: 1.15rem !important;
  }
  .astro-hero p {
    font-size: 0.82rem !important;
    margin-bottom: 0.4rem !important;
  }
}

@media (max-width: 480px) {
  .astro-hero h1 {
    font-size: 1.15rem !important;
    white-space: nowrap !important;
    gap: 6px !important;
  }
  .astro-hero h1 i {
    font-size: 1.05rem !important;
  }
  .astro-element-tabs {
    padding: 3px !important;
    gap: 3px !important;
    margin-top: 0.5rem !important;
  }
  .astro-element-tab {
    padding: 7px 2px !important;
    gap: 3px !important;
    font-size: 0.76rem !important;
  }
  .astro-element-tab i {
    font-size: 0.75rem !important;
  }
}

/* Toolbar View Switcher Active */
.pazar-view-switcher .view-btn.active {
  background: #ffffff !important;
  color: #6366f1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Zodiac Cards Grid (Desktop & Mobile) */
.astro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.astro-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 20px !important;
  padding: 1.15rem 1.25rem !important;
  text-decoration: none !important;
  color: inherit !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  display: flex;
  align-items: center !important;
  gap: 12px !important;
  position: relative !important;
  overflow: hidden !important;
}

.astro-card[style*="display: none"] {
  display: none !important;
}

.astro-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: all 0.3s ease;
}

.astro-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 28px rgba(31, 38, 135, 0.08) !important;
}

.astro-card.element-ates:hover {
  border-color: rgba(239, 68, 68, 0.4) !important;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.12) !important;
}
.astro-card.element-toprak:hover {
  border-color: rgba(34, 197, 94, 0.4) !important;
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.12) !important;
}
.astro-card.element-hava:hover {
  border-color: rgba(14, 165, 233, 0.4) !important;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.12) !important;
}
.astro-card.element-su:hover {
  border-color: rgba(59, 130, 246, 0.4) !important;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.12) !important;
}

.astro-card-emoji {
  font-size: 2.1rem !important;
  width: 52px !important;
  height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%) !important;
  border-radius: 16px !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(199, 210, 254, 0.6) !important;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.05) !important;
  transition: all 0.3s ease !important;
}

.astro-card:hover .astro-card-emoji {
  transform: scale(1.1) rotate(6deg) !important;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%) !important;
}

.astro-card-info {
  flex: 1;
  min-width: 0;
}

.astro-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.astro-card-title {
  font-size: 0.90rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.astro-card-dates {
  font-size: 0.70rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

/* Element Icon Badges */
.astro-element-badge {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.72rem !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.25s ease !important;
}

.element-ates .astro-element-badge, .astro-element-badge.element-ates { background: #fef2f2 !important; color: #ef4444 !important; border: 1px solid #fca5a5 !important; }
.element-toprak .astro-element-badge, .astro-element-badge.element-toprak { background: #f0fdf4 !important; color: #16a34a !important; border: 1px solid #86efac !important; }
.element-hava .astro-element-badge, .astro-element-badge.element-hava { background: #f0f9ff !important; color: #0284c7 !important; border: 1px solid #7dd3fc !important; }
.element-su .astro-element-badge, .astro-element-badge.element-su { background: #eef2ff !important; color: #3b82f6 !important; border: 1px solid #93c5fd !important; }

/* Chevron indicator */
.astro-card::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.72rem;
  color: #cbd5e1;
  margin-left: 2px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.astro-card:hover::after {
  color: #6366f1;
  transform: translateX(3px);
}

/* List View Mode */
.astro-grid.list-view {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

.astro-grid.list-view .astro-card {
  padding: 1rem 1.25rem !important;
  border-radius: 16px !important;
}

/* Sidebar Widgets Styling */
.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);
}

.element-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s;
}

.element-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Mobile Responsiveness (max-width: 680px) */
@media (max-width: 680px) {
  .container {
    padding: 0 10px !important;
  }
  .astro-hero {
    padding: 1rem 1rem 0.85rem !important;
    border-radius: 20px !important;
    margin-bottom: 0.65rem !important;
  }
  .astro-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .astro-card {
    padding: 0.75rem !important;
    border-radius: 16px !important;
    gap: 8px !important;
  }
  .astro-card-emoji {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.5rem !important;
    border-radius: 12px !important;
  }
  .astro-card-title {
    font-size: 0.81rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .astro-grid:not(.list-view) .astro-card-title .burc-suffix {
    display: none !important;
  }
  .astro-card-dates {
    font-size: 0.65rem !important;
    white-space: nowrap !important;
    letter-spacing: -0.3px !important;
  }
  .astro-element-badge {
    width: 20px !important;
    height: 20px !important;
    font-size: 0.65rem !important;
    border-radius: 50% !important;
    padding: 0 !important;
  }
  .astro-card::after {
    display: none !important;
  }
  .sidebar-widget {
    border-radius: 18px !important;
    padding: 1rem !important;
  }
}

.astro-mobile-element-tabs {
  display: none;
}

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