/* 🌟 HABER DETAY MASTER DESIGN SYSTEM */

/* 🌟 MASTER DETAIL TOPBAR (Pazar & Burçlar Style) */
.news-detail-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 10px;
}

.news-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
}

.news-back-btn:hover {
  background: #0f172a;
  color: #ffffff;
  transform: translateX(-3px);
}

.news-topbar-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.news-topbar-pill.category {
  background: #fff0f3;
  color: #e11d48;
  border-color: #fecdd3;
}

.news-topbar-pill.date {
  color: #0284c7;
  background: #f0f9ff;
  border-color: #bae6fd;
}

.news-topbar-pill.views {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}


/* 🌟 ARTICLE DETAIL CARD & TYPOGRAPHY REFINEMENTS */
.haber-detay-main {
  padding-top: calc(var(--global-header-offset) + 0.25rem) !important;
}

.haber-detay-main .container {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.haber-detay-main .news-layout {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.article-detail {
  background: #ffffff !important;
  border-radius: 24px !important;
  padding: 1.25rem 2rem 2rem 2rem !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 6px 30px rgba(15, 23, 42, 0.04) !important;
  margin-top: 0 !important;
}

.desktop-breadcrumbs {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.desktop-title,
.article-h1 {
  font-size: 1.85rem !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 1rem !important;
}

.desktop-article-img,
.article-img {
  border-radius: 20px !important;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08) !important;
}

/* 🌟 REACTION BUTTONS */
.news-reactions {
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  background: #f8fafc !important;
  padding: 14px 20px !important;
  border-radius: 20px !important;
  margin: 25px 0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03) !important;
  border: 1px solid #e2e8f0 !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.reaction-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  padding: 8px 14px !important;
  border-radius: 16px !important;
  border: 1px solid transparent !important;
}

.reaction-item:hover {
  background: #ffffff !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}

.reaction-item.active {
  background: #fff0f3 !important;
  border: 1px solid #f43f5e !important;
  transform: scale(1.05) !important;
}

/* 🌟 SHARE BUTTONS */
.desktop-share-buttons {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  display: flex !important;
  gap: 6px !important;
}

.desktop-share-buttons button {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  border: none !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.12) !important;
  transition: all 0.2s ease !important;
}

.desktop-share-buttons button:hover {
  background: #ffffff !important;
  color: #0f172a !important;
  transform: translateY(-2px) !important;
}

.desktop-share-buttons button.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  color: #ffffff !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;
}

@media (max-width: 768px) {
  .haber-detay-main {
    padding-top: var(--global-header-offset) !important;
  }


  .article-detail {
    padding: 0.25rem 0.75rem 1.25rem 0.75rem !important;
    border-radius: 20px !important;
    margin-top: 0 !important;
  }

  .mobile-article-header {
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    text-align: center !important;
  }

  .mobile-article-header .article-h1 {
    margin-top: 0 !important;
    margin-bottom: 0.25rem !important;
    text-align: center !important;
  }

  .desktop-title,
  .article-h1 {
    font-size: 1.22rem !important;
    font-weight: 800 !important;
    line-height: 1.38 !important;
    color: #0f172a !important;
    text-align: center !important;
    letter-spacing: -0.015em !important;
    text-transform: none !important;
  }

  /* Hide desktop share buttons on mobile to prevent floating overlap over text */
  .desktop-share-buttons {
    display: none !important;
  }

  /* Mobil Kapak Görseli ve Üst Bant Hizalaması */
  .article-img-wrapper.mobile-only {
    display: block !important;
    position: relative !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin: 0.25rem 0 0.5rem 0 !important;
    width: 100% !important;
    height: 220px !important;
    background: #f1f5f9 !important;
  }

  .article-img-wrapper.mobile-only .article-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 30% !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
  }

  .article-img-top-bar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.2) 100%) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    padding: 0.4rem 0.75rem !important;
    display: flex !important;
    gap: 0.75rem !important;
    align-items: center !important;
    z-index: 10 !important;
    font-size: 0.72rem !important;
    color: #ffffff !important;
  }

  .article-img-top-bar .top-bar-source {
    margin-right: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    font-weight: 700 !important;
    max-width: 50% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .article-img-top-bar .top-bar-source i {
    font-size: 0.7rem !important;
    flex-shrink: 0 !important;
  }

  .article-img-top-bar .top-bar-date,
  .article-img-top-bar .top-bar-time {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
    font-weight: 600 !important;
  }

  .article-img-meta.mobile-only {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0.4rem 0 0.85rem 0 !important;
    padding: 0 0.25rem !important;
    font-size: 0.78rem !important;
  }

  /* Mobil Fotoğraf İçi Paylaşım Butonları */
  .mobile-share-buttons {
    display: none !important;
  }

  .mobile-share-buttons button {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.2s ease !important;
  }

  .mobile-share-buttons button:hover,
  .mobile-share-buttons button:active {
    background: rgba(15, 23, 42, 0.95) !important;
    transform: scale(1.1) !important;
    border-color: #ffffff !important;
  }

  footer {
    display: none !important;
  }

  /* Alt navigasyon çubuğu temizleme */
  .haber-detay-main {
    padding-bottom: 6rem !important;
  }
}