/* ==========================================
   RESET + TEMEL STİLLER
========================================== */

/* Genel ayarlar */

/* ==========================================
   HEADER (Site Başlığı, Menü, Arama)
========================================== */

.site-header {
  background: #121212;
  padding: 15px 20px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.site-title a {
  color: white;
  font-size: 24px;
  text-decoration: none;
  font-weight: bold;
}

.site-title span {
  color: orange;
}

.kategori-menu {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 5px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.kategori-menu::-webkit-scrollbar {
  display: none;
}

.kategori-menu a {
  flex: 0 0 auto;
  white-space: nowrap;
  background: #2a2a2a;
  padding: 8px 12px;
  border-radius: 20px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.kategori-menu a:hover {
  background: orange;
  color: black;
}

.arama-formu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.arama-formu input[type="text"] {
  padding: 8px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  background: #2b2b2b;
  color: white;
}

.arama-formu button {
  padding: 8px 10px;
  background: orange;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
}

/* ==========================================
   ANASAYFA (Kartlar, Grid Yapısı)
========================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: #121212;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  height: 450px;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}



.card-content {
  min-height: 120px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}


.card-content h2 {
  font-size: 20px;
  margin: 0 0 4px;/* 🔥 Boşluk azaltıldı */
  color: #fff;
}

.card-content p {
  font-size: 15px;
  margin: 0; /* 🔥 Üst boşluk sıfırlandı */
  color: #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}

.card-categories-top {
  position: absolute;
  top: 10px;
  left: 10px;
  background: none;
  color: orange;
  padding: 0;
  font-size: 13px;
  font-weight: bold;
  z-index: 2;
}

.card-categories-top .kategori-etiket {
  background: linear-gradient(to right, #ff4500, #ffa500);
  color: #000;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: 0.3s;
}

.card-categories-top .kategori-etiket:hover {
  background: linear-gradient(to right, #ffa500, #ff4500);
  color: white;
}

/* ==========================================
   MAKALE DETAY (Makale Body, Başlık, Kategori)
========================================== */

.makale-header {
  text-align: center;
  margin-bottom: 30px;
}

.makale-title {
  font-size: 2.8rem;
  color: #ffffff;
}

.makale-body {
  margin-top: 30px;
  font-size: 18px;
  line-height: 1.8;
  color: #ddd;
}

.makale-kategori-link {
  display: inline-block;
  background: orange;
  color: black;
  padding: 7px 20px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s;
}

.makale-kategori-link:hover {
  background: #ff9900;
  color: black;
}

/* Makale içindeki resimler */
.makale-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 12px;
}

/* ==========================================
   YORUM SİSTEMİ
========================================== */

.yorumlar {
  margin-top: 60px;
  background: #1a1a1a;
  padding: 30px;
  border-radius: 12px;
}

.yorumlar h2 {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 20px;
}

.yorum-formu {
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #333;
  background: #292929;
  color: white;
  border-radius: 8px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.btn {
  background: orange;
  color: black;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
}

.btn:hover {
  background: #ff9900;
}

.yorumlar-listesi {
  margin-top: 30px;
}

.yorum {
  background: #292929;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  color: white;
}

.yorum strong {
  color: orange;
  font-size: 16px;
}

/* ==========================================
   ALERT MESAJLAR
========================================== */

.alert-success {
  background: #28a745;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
}

.alert-danger {
  background: #dc3545;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
}

/* ==========================================
   MOBİL DÜZENLEMELER (768px Altı)
========================================== */

@media (max-width: 768px) {

  .container {
    padding: 10px;
  }

  .card-grid {
    grid-template-columns: 1fr !important;
  }

  .card {
    height: auto;
  }

  .card img {
    height: 180px;
  }

  .card-content h2 {
    font-size: 18px;
  }

  .card-content p {
    font-size: 14px;
  }

  .kategori-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .kategori-menu a {
    font-size: 13px;
    padding: 6px 10px;
  }

  .arama-formu {
    flex-direction: column;
    gap: 8px;
  }

  .arama-formu input[type="text"],
  .arama-formu select,
  .arama-formu button {
    width: 100%;
    font-size: 14px;
  }

  .yorumlar {
    padding: 20px;
  }

  .yorum-formu .form-group input,
  .yorum-formu .form-group textarea {
    font-size: 14px;
  }

  .yorumlar-listesi .yorum {
    font-size: 14px;
  }

  .page-title, .makale-title {
    font-size: 32px;
  }

  .makale-header {
    padding: 20px 0;
  }

  .makale-body {
    padding: 10px;
    font-size: 17px;
  }

  .sidebar {
    display: none;
  }

}

/* ==========================================
   REKLAM ALANLARI
========================================== */

.reklam-kutusu {
  background: #2b2b2b;
  color: #aaa;
  text-align: center;
  padding: 30px;
  margin: 20px 0;
  border-radius: 12px;
  font-size: 16px;
  font-style: italic;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Ana sayfa kartlarıyla hizalanması için */
.card-grid .reklam-kutusu {
  grid-column: span 1;
}

/* Makale Layout Yapısı */
.makale-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.makale-icerik {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  height: fit-content;
}
.arama-formu-header {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 300px; /* ✅ Arama çubuğu genişliği kısıtlı */
  margin-left: auto; /* ✅ Sağa doğru yapışır */
}

.arama-formu-header input[type="text"] {
  flex: 1;
  padding: 8px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  background: #2b2b2b;
  color: white;
}

.arama-formu-header button {
  padding: 8px 10px;
  background: orange;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

/* Mobil için düzenleme */
@media (max-width: 768px) {
  .arama-formu-header {
    flex-direction: row;
    max-width: 100%;
    padding: 10px 0;
    margin-left: 0;
    justify-content: center;
  }

  .arama-formu-header input[type="text"] {
    width: 70%;
    font-size: 14px;
  }

  .arama-formu-header button {
    width: auto;
    font-size: 14px;
    padding: 8px 10px;
  }
}

