/* ===================
   Genel Ayarlar
=================== */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

/* Görsellerin taşmasını engelle */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  /* Masaüstünde 2cm içeriden başlat */
  padding: 0 2cm;
  box-sizing: border-box;
}

/* ===================
   Navbar
=================== */
.navbar {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  min-height: 70px;
}

.logo img {
  width: 200px;
  height: auto;
  max-width: 100%;
}

.main-menu {
  flex: 1;
}

.main-menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.main-menu ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 18px;
  transition: color 0.3s;
}

.main-menu ul li a:hover {
  color: #0056b3;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Sol ve Sağ Menü */
.main-menu.left { order: 1; justify-content: flex-end; }
.main-menu.right { order: 3; justify-content: flex-start; }

/* ===================
   Reklam Banner Genel
=================== */
.ad-banner {
  text-align: center;
  margin: 10px auto;
  background: none;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* ===================
   Hero
=================== */
.hero {
  background: url("../img/hero.jpg") no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  position: relative;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  padding: 60px 20px;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
}

/* ===================
   İçerik
=================== */
.main-content {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 25px;
  margin: 20px 0;
}

.category-block {
  margin-bottom: 40px;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* -------------------
   Haber Kartları
------------------- */
.report-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.report-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.report-card img {
  width: 100%;
  border-radius: 5px;
  height: auto;
  object-fit: cover;
}

.report-card h2,
.report-card h3 {
  font-size: 18px;
  margin: 10px 0;
  color: #0056b3;
}

.report-card a {
  text-decoration: none;
  color: #0056b3;
}

.report-card a:hover {
  text-decoration: underline;
}

/* Haber kartları için küçük önizleme */
.report-card.full-article img {
  width: 100%;
  border-radius: 5px;
  height: auto;
  object-fit: cover;
}

/* ===================
   Haber Detay
=================== */
.haber-gorsel,
.haber-detay img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  object-fit: contain;
}

.haber-detay p {
  font-size: 20px;
  line-height: 1.8;
  color: #222;
  margin-bottom: 18px;
}

.haber-detay h2 {
  font-size: 26px;
  margin: 25px 0 15px;
  color: #0a1f44;
  font-weight: 600;
}

/* ===================
   Sidebar
=================== */
.ad-box {
  background: #ddd;
  text-align: center;
  padding: 20px;
  margin-bottom: 20px;
  font-weight: bold;
  min-height: 250px;
}

.ad-box img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===================
   WhatsApp Button
=================== */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.whatsapp-button img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.whatsapp-button img:hover {
  transform: scale(1.1);
}

/* ===================
   Footer
=================== */
.footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  margin-top: 20px;
}

.footer a {
  color: #ffcc00;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===================
   Responsive
=================== */
@media (max-width: 1200px) {
  .category-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  .category-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Hamburger Menü */
  .main-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    padding: 15px 0;
    border-top: 1px solid #ddd;
  }

  .main-menu.show {
    display: flex !important;
  }

  .main-menu.show ul {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    gap: 15px;
    text-align: center;
  }

  .menu-toggle {
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto; /* sağa hizala */
  }

  .logo img {
    width: 140px;
  }

  .container {
    padding: 0 1cm !important;
  }

  .category-cards {
    grid-template-columns: 1fr;
  }

  .hero {
    background-size: cover !important;
    background-position: center !important;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 16px;
  }

  .report-card img,
  .category-cards img,
  .sidebar img {
    max-height: 250px;
    object-fit: contain;
  }

  .whatsapp-button img {
    width: 50px;
    height: 50px;
  }

  .ad-banner.top-banner {
    padding: 0;
    margin: 0;
  }
  .ad-banner.top-banner img {
    width: 100% !important;
    height: auto !important;
    max-height: 1.5cm;
    object-fit: contain;
  }

  .haber-detay p {
    font-size: 18px;
    line-height: 1.7;
  }
  .haber-detay h2 {
    font-size: 22px;
  }
}

/* ===================
   Künye Sayfası
=================== */
.kunye-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.kunye-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.kunye-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0056b3;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.kunye-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.kunye-card a {
  color: #0056b3;
  text-decoration: none;
  font-weight: bold;
}

.kunye-card a:hover {
  text-decoration: underline;
}

/* ===================
   Reklam Banner (728x90)
=================== */
.ad-banner.top-banner {
  text-align: center;
  margin: 20px auto;
  max-width: 100%;
}

.ad-banner.top-banner img {
  width: 100%;
  height: auto;
  max-height: 3cm;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}

.ad-banner.top-banner img:hover {
  transform: scale(1.02);
}

/* ===================
   Hukuki Bilgi Kutusu
=================== */
.legal-info {
  background: #f4f4f4;
  padding: 20px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  border-top: 1px solid #ddd;
}
.legal-info h3 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #222;
}

/* ===================
   Haber Detay Görseli
=================== */
.news-detail .featured-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

@media (min-width: 992px) {
  .news-detail .featured-image {
    max-width: 80%;
    margin: 20px auto;
  }
}
/* Haber detay görselini tam orantılı yap */
.full-article img,
.haber-gorsel,
.news-detail .featured-image {
  width: 100%;
  max-width: 1200px;  /* masaüstünde çok genişlemesin */
  height: auto;
  margin: 20px auto;
  display: block;
  border-radius: 8px;
  object-fit: contain; /* orantıyı bozmadan sığdırır */
}
#canli-kurlar {
  text-align: center;
  margin: 40px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
#canli-kurlar h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #222;
}
#kurlar {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}
.kur-card {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px 25px;
  min-width: 150px;
  font-size: 18px;
  transition: all 0.3s ease;
}
.kur-card:hover {
  background: #e8f0ff;
  border-color: #0077cc;
  transform: translateY(-3px);
}


/* 🔹 Mobil uyumluluk (max 768px) */
@media (max-width: 768px) {
  #canli-kurlar h2 {
    font-size: 1.4em;
  }
  .kur-card {
    font-size: 16px;
    padding: 12px 20px;
    min-width: 120px;
  }
  #kurlar {
    gap: 15px;
  }
}


/* Mobil uyum */
@media (max-width: 768px) {
  #kurlar {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .kur-card {
    width: 80%;
  }
}
/* ================
   SIDEBAR FIX
================ */
.sidebar {
  display: block;
  width: 100%;
}

@media (min-width: 1024px) {
  .sidebar {
    width: 350px;
  }
}

.sidebar .ad-box {
  background: transparent;
  padding: 0;
  margin-bottom: 30px;
  min-height: unset;
  box-shadow: none;
  border: none;
}

.sidebar img {
  width: 100%;
  height: auto;
  display: block;
}
