/* HEADER SABİT */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Blog linki aktif durumda */
.blog-link.active {
  color: #00F7A3 !important;
  text-shadow: 0 0 8px rgba(0,247,163,0.6);
}

/* Ana içerik header'ın altına gelsin */
.main-content { margin-top: 80px; } /* header yüksekliğine göre */

/* HERO */
.blog-hero {
  background: linear-gradient(135deg, #00F7A3 0%, #00C4B8 100%);
  padding: 100px 20px 80px;
  text-align: center;
  color: #0F172A;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 900;
  margin: 0 0 16px;
}
.hero-content p {
  font-size: 19px;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.95;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: #0F172A;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.btn-ghost {
  background: transparent;
  color: #0F172A;
  border: 2px solid #0F172A;
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* TAB */
.tab-container {
  display: flex;
  justify-content: center;
  background: white;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 70px;
  z-index: 900;
  backdrop-filter: blur(10px);
}
.tab-btn {
  padding: 12px 32px;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
}
.tab-btn.active {
  background: #00F7A3;
  color: #0F172A;
}

/* İÇERİK */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-header h2 { font-size: 28px; font-weight: 800; color: #0F172A; }

.sort-select, .search-small {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* BLOG GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
}
.blog-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,247,163,0.22); }
.blog-thumb { width: 100%; height: 200px; object-fit: cover; }
.blog-info { padding: 20px; }
.blog-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #0F172A; }
.blog-excerpt { font-size: 14px; color: #64748B; margin-bottom: 12px; }
.blog-meta { font-size: 13px; color: #94A3B8; display: flex; justify-content: space-between; }

/* QA */
.qa-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.qa-card {
  background: white;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.qa-card h3 { font-size: 17px; margin: 0 0 10px; color: #0F172A; }
.qa-stats { font-size: 14px; color: #64748B; display: flex; gap: 20px; }

/* BUTONLAR */
.load-more, .ask-btn {
  display: block;
  margin: 40px auto;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
}
.load-more {
  background: transparent;
  border: 2px solid #00F7A3;
  color: #00F7A3;
}
.load-more:hover { background: #00F7A3; color: #0F172A; }
.ask-center { text-align: center; }

/* FOOTER */
.site-footer {
  background: #0A1128;
  color: white;
  padding: 60px 20px 40px;
  margin-top: 100px;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-links a { color: #94A3B8; margin-left: 24px; text-decoration: none; }
.footer-links a:hover { color: #00F7A3; }

/* MOBİL */
@media (max-width: 768px) {
  .blog-hero { padding: 80px 20px 60px; }
  .hero-content h1 { font-size: 32px; }
  .tab-btn { padding: 10px 20px; font-size: 15px; }
  .blog-grid { grid-template-columns: 1fr; }
}
/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}
.modal-overlay.active { display: flex; }

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.close-modal {
  position: absolute;
  top: 12px; right: 18px;
  font-size: 32px;
  cursor: pointer;
  color: #999;
}
.close-modal:hover { color: #000; }

.modal-content h2 {
  margin: 0 0 20px;
  color: #0F172A;
  font-size: 24px;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
}
.modal-content textarea { min-height: 120px; resize: vertical; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7fc; /* Sayfa arka planını hafif gri yaptık, blog-detay ile uyumlu */
}

/* --- HEADER (Sabit) --- */
header {
  background: #0A1128;
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Sabit Header Class */
.fixed-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Header İçi Logo ve Linkler */
.logo-area { display: flex; flex-direction: column; }
.logo-row { display: flex; align-items: center; gap: 32px; }
.logo {
  font-size: 20px; font-weight: 900;
  background: linear-gradient(135deg, #00F7A3, #40E0FF);
  color: transparent; -webkit-background-clip: text; background-clip: text;
  text-shadow: 0 0 14px rgba(0, 247, 163, 0.8);
  text-decoration: none;
}
.subtitle { font-size: 12px; color: #A9B4C9; margin-top: -4px; }
.blog-link {
  font-size: 17px; font-weight: 800; color: #ffffff; text-decoration: none;
  margin-left: 16px; letter-spacing: 0.3px; transition: 0.15s;
}
.blog-link:hover, .blog-link.active {
  color: #00F7A3; text-shadow: 0 0 6px rgba(0, 247, 163, 0.6);
}

/* Arama Kutusu */
.search-box {
  display: flex; align-items: center; background: #ffffff;
  padding: 6px 12px; border-radius: 20px; width: 260px; transition: 0.25s ease;
}
.search-input { border: none; outline: none; width: 100%; font-size: 14px; color: #0A1128; }
.search-btn { background: none; border: none; font-size: 17px; color: #00F7A3; cursor: pointer; }
.search-box:focus-within { width: 320px; box-shadow: 0 0 10px rgba(0, 247, 163, 0.3); border: 1px solid #00F7A3; }

/* Header Butonları */
.header-buttons { display: flex; align-items: center; gap: 8px; }
.header-btn {
  border: none; background: #ffffff; color: #0A1128; padding: 6px 10px;
  border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: bold;
}
.header-btn:hover { background: #00F7A3; }

/* Profil & Dropdown */
.dropdown-wrapper, .profile-wrapper { position: relative; display: flex; align-items: center; }
.header-profile-photo {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid #00F7A3; cursor: pointer; display: none;
}
.header-username { font-size: 11px; color: #ffffff; margin-top: 4px; display: none; }
.menu-dropdown {
  background: #ffffff; border-radius: 12px; padding: 10px; display: none;
  flex-direction: column; gap: 6px; width: 150px; position: absolute;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18); z-index: 2000;
}
.menu-dropdown a { text-decoration: none; color: #0A1128; padding: 6px 8px; border-radius: 8px; font-size: 13px; }
.menu-dropdown a:hover { background: #00F7A3; }

/* HERO */
.blog-hero {
  background: linear-gradient(135deg, #00F7A3 0%, #00C4B8 100%);
  padding: 100px 20px 80px; text-align: center; color: #0F172A;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.btn-primary { background: #0F172A; color: white; border: none; padding: 14px 28px; border-radius: 12px; font-weight: 700; cursor: pointer; }
.btn-ghost { background: transparent; color: #0F172A; border: 2px solid #0F172A; padding: 12px 26px; border-radius: 12px; font-weight: 700; cursor: pointer; }

/* TAB & MAIN CONTENT */
.main-content { margin-top: 80px; padding: 20px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.tab-container {
  display: flex; justify-content: center; background: rgba(255,255,255,0.9);
  padding: 12px; border-radius: 12px; max-width: 400px; margin: 30px auto;
  backdrop-filter: blur(10px); box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.tab-btn { padding: 10px 25px; border: none; background: transparent; font-weight: 700; cursor: pointer; border-radius: 8px; color: #64748B; transition: 0.2s; }
.tab-btn.active { background: #0A1128; color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* BLOG GRID */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.blog-card {
  background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: 0.3s; cursor: pointer;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,247,163,0.2); }
.blog-thumb { width: 100%; height: 200px; object-fit: cover; }
.blog-info { padding: 20px; }
.blog-title { font-size: 18px; font-weight: 700; color: #0A1128; margin-bottom: 10px; }
.blog-excerpt { font-size: 14px; color: #64748B; margin-bottom: 15px; }
.blog-meta { display: flex; justify-content: space-between; font-size: 13px; color: #94A3B8; }

/* QA LIST */
.qa-list { display: flex; flex-direction: column; gap: 16px; }
.qa-card {
  background: white; padding: 20px; border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  cursor: pointer; transition: 0.2s;
}
.qa-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,247,163,0.15); }

/* --- SORU DETAY SAYFASI ÖZEL TASARIMI --- */

/* Soru Detay Wrapper */
.question-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

/* Yazar Alanı */
.author-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}
.author-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.author-info strong { color: #0A1128; font-size: 16px; display: block; }
.author-info small { color: #64748B; font-size: 13px; }

/* Soru İstatistikleri */
.stats-bar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.stat-item { font-size: 14px; color: #64748B; display: flex; align-items: center; gap: 6px; }
.like-btn {
  background: #f0fdf9;
  border: 1px solid #00F7A3;
  color: #00F7A3;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.like-btn:hover { background: #00F7A3; color: #0A1128; }
.like-btn.liked { background: #00F7A3; color: #0A1128; }

/* Soru İçeriği */
.question-content {
  font-size: 18px;
  line-height: 1.8;
  color: #1e293b;
  margin-bottom: 40px;
}

/* Cevap Kartları */
.answer-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #f1f5f9;
  position: relative;
}

/* En İyi Cevap Vurgusu */
.answer-card.best {
  border: 2px solid #00F7A3;
  background: #fafffd;
  box-shadow: 0 8px 25px rgba(0, 247, 163, 0.15);
}
.best-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #00F7A3;
  color: #0A1128;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0,247,163,0.4);
}

/* Cevap Aksiyonları */
.answer-footer {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}
.action-btn {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: 0.2s;
}
.action-btn:hover { color: #00F7A3; }
.action-btn.best-select { color: #0A1128; background: #00F7A3; padding: 5px 12px; border-radius: 8px; }

/* İç İçe Yanıtlar (Nesting) */
.nested-replies {
  margin-top: 15px;
  padding-left: 20px;
  border-left: 2px solid #e2e8f0;
  margin-left: 10px;
}
.reply-item {
  background: #f8fafc;
  padding: 15px;
  border-radius: 12px;
  margin-top: 10px;
  font-size: 14px;
}

/* Cevap Yazma Alanı */
.new-answer-area {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-top: 40px;
}
.new-answer-area textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  min-height: 120px;
  font-family: inherit;
  margin-bottom: 15px;
  outline: none;
  transition: 0.2s;
}
.new-answer-area textarea:focus { border-color: #00F7A3; }

/* Mention Rengi */
.mention { color: #00F7A3; font-weight: bold; }

/* FOOTER */
.site-footer {
  background: #0A1128; color: white; padding: 60px 20px 40px; margin-top: 80px;
}
.footer-content {
  max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px;
}
.footer-links a { color: #94A3B8; margin-left: 24px; text-decoration: none; }
.footer-links a:hover { color: #00F7A3; }

/* MOBİL */
@media(max-width:768px){
  .header-buttons span { display: none; }
  .blog-hero h1 { font-size: 32px; }
  .question-wrapper { padding: 20px; }
}
.back-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:#fff;
  text-decoration:none;
  font-weight:600;
  transition:.2s ease;
}
.back-link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}
.back-link .icon{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.10);
}
/* --- İÇ İÇE YORUM STİLLERİ (Instagram Tarzı) --- */

/* Yanıtlar ana yorumun altına sağa kayarak gelir */
.replies {
    margin-left: 50px; /* Sağa kaydırma miktarı */
    border-left: 2px solid #e2e8f0; /* Sol tarafa ince çizgi */
    padding-left: 15px;
    margin-top: 10px;
}

/* Yanıt kartı biraz daha kompakt olsun */
.comment.reply {
    padding: 10px 0;
    border-bottom: none; /* Yanıtlar arası çizgi olmasın */
}

.comment.reply .comment-avatar {
    width: 32px; /* Yanıt avatarı biraz küçük */
    height: 32px;
}

.comment.reply .comment-text {
    font-size: 14px;
}

/* @Mention Rengi (Kullanıcı Adı) */
.mention {
    color: #00F7A3;
    font-weight: 800;
    cursor: pointer;
}

/* Yanıta Yanıt Verme Butonu */
.reply-toggle {
    font-size: 13px;
    color: #64748B;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 0;
    margin-top: 4px;
}
.reply-toggle:hover {
    color: #00F7A3;
    text-decoration: underline;
}

/* Gizli Yanıt Formu */
.reply-form textarea, .nested-reply-form input {
    border: 2px solid #e2e8f0;
    transition: 0.2s;
}
.reply-form textarea:focus, .nested-reply-form input:focus {
    border-color: #00F7A3;
    outline: none;
}
.modal-content input, .modal-content select, .modal-content textarea {
    box-sizing: border-box; /* Padding'i genişliğe dahil et, dışarı taşırma */
    width: 100% !important;
}