@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --tr-red: #e30a17; /* Türk Bayrağı Kırmızısı */
  --tr-red-dark: #b90610;
  --bg-light: #f8fafc; /* Göz yormayan kirli beyaz zemin */
  --text-dark: #1e293b; /* Simsiyah değil, koyu antrasit */
}

/* Genel Ayarlar */
body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: "Outfit", sans-serif;
}

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--tr-red);
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--tr-red-dark);
}

/* Swiper Pagination (Slider Noktaları) */
.swiper-pagination-bullet {
  background: #ccc !important;
  opacity: 1 !important;
}
.swiper-pagination-bullet-active {
  background: var(--tr-red) !important;
  width: 20px !important;
  border-radius: 10px !important;
  transition: all 0.3s ease;
}

/* Input Autofill Arka Planını Beyaz Yapma (Chrome) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: #1e293b !important;
}
/* Navigasyon sayfa kaydırıldığında hafif bir gölge eklemek için (Opsiyonel) */
nav.scrolled {
  @apply shadow-lg border-transparent bg-white/95;
}

/* Logo resminin içinde bulunduğu kutunun hafif parlaması */
.nav-logo-box {
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Linklerin altına aydınlık temada şık bir hover çizgisi ekleyelim */
.nav-link-hover {
  position: relative;
  padding-bottom: 4px;
}
.nav-link-hover::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2.5px;
  bottom: 0;
  left: 0;
  background-color: #e30a17;
  transition: width 0.3s ease-in-out;
  border-radius: 99px;
}
.nav-link-hover:hover::after {
  width: 100%;
}

.group div img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

/* Navigasyon linkleri için hover efekti */

/* Haber içeriğindeki tüm metinleri zorla koyu renk yap */
.news-container {
  max-width: 1100px !important; /* Sayfanın yarısından fazlasını kaplaması için genişlettik */
}

.news-hero-image {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.news-hero-image:hover {
  filter: brightness(0.9);
}
/* Lightbox (Popup) Tasarımı */
#imageLightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.95); /* Koyu Slate Arka Plan */
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
#lightboxImg {
  max-width: 95%;
  max-height: 95vh;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.news-content-wrapper {
  text-align: justify; /* Metni iki yana yasla */
  text-justify: inter-word;
}

.news-content-wrapper > p:first-of-type::first-letter {
  float: left;
  font-size: 4rem;
  line-height: 1;
  font-weight: 700;
  margin-right: 0.5rem;
  color: #e30a17; /* Merkez rengi */
  font-family: "Playfair Display", serif;
}

.news-content-wrapper p {
  margin-bottom: 1.8rem !important;
  line-height: 1.85 !important;
  font-size: 1.1rem;
}

/* Kalın (Strong) yazıları belirginleştir */
.news-content-wrapper strong,
.news-content-wrapper b {
  color: #0f172a !important;
  display: block; /* Başlık gibi davranması için */
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
}
/* Son kısımdaki check işaretli listeyi daha şık yap */
.news-content-wrapper p:contains("✅") {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 1rem;
  border-left: 4px solid #e30a17;
}

/* İçerideki paragraflar, spanlar ve başlıklar için de geçerli olsun */
.news-content-wrapper p,
.news-content-wrapper span,
.news-content-wrapper li,
.news-content-wrapper h1,
.news-content-wrapper h2,
.news-content-wrapper h3 {
  color: #1e293b !important;
  background-color: transparent !important; /* Arka plan varsa temizle */
}

/* Linklerin rengini koru (Kırmızı) */
.news-content-wrapper a {
  color: #e30a17 !important;
}
