/* GeekMuhabbeti — app.css'in EN SONUNA EKLE */

/* ── YAZMA SAYFASI ─────────────────────────────────────────── */
.write-page { padding: 28px 0; }
.write-page__title { font-size: 1.5rem; font-weight: 700; }
.write-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 0; padding: 20px;
}
.write-title-input {
  width: 100%; background: transparent; border: none; outline: none;
  font-size: 1.75rem; font-weight: 700; color: var(--text);
  font-family: inherit; line-height: 1.3; resize: none;
}
.write-title-input::placeholder { color: var(--text-3); }
.slug-preview {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border);
  font-size: .8rem; font-family: 'JetBrains Mono', monospace;
  color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── POST CONTENT ──────────────────────────────────────────── */
.post-content { line-height: 1.8; font-size: 1rem; color: var(--text); margin-bottom: 32px; }
.post-content h2 { font-size: 1.5rem; font-weight: 700; margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.post-content h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 12px; }
.post-content p  { margin-bottom: 18px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 18px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote { border-left: 4px solid var(--accent); padding: 12px 20px; background: var(--bg-3); border-radius: 0; margin: 20px 0; color: var(--text-2); }
.post-content pre { background: #0d1117; border: 1px solid var(--border); border-radius: 0; padding: 20px; overflow-x: auto; margin: 20px 0; font-family: 'JetBrains Mono', monospace; font-size: .875rem; line-height: 1.6; }
.post-content code { background: var(--bg-3); padding: 2px 7px; border-radius: 0; font-family: 'JetBrains Mono', monospace; font-size: .875em; color: var(--accent); }
.post-content pre code { background: none; padding: 0; color: #e6edf3; }
.post-content img { border-radius: 0; margin: 20px 0; max-width: 100%; }
.post-content a { color: var(--accent); }
.post-content a:hover { text-decoration: underline; }
.post-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.post-content th, .post-content td { padding: 10px 14px; border: 1px solid var(--border); font-size: .9rem; }
.post-content th { background: var(--bg-3); font-weight: 700; }

/* ── POST HEADER ───────────────────────────────────────────── */
.post-header { margin-bottom: 24px; }
.post-header__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.post-header__title { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
.post-header__excerpt { font-size: 1.0625rem; color: var(--text-2); line-height: 1.65; margin-bottom: 16px; }
.post-header__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.post-header__stats { display: flex; gap: 14px; color: var(--text-3); font-size: .8125rem; flex-wrap: wrap; }
.post-author { display: flex; align-items: center; gap: 8px; }
.post-author__name  { font-weight: 600; font-size: .9rem; }
.post-author__level { font-size: .75rem; color: var(--text-3); }
.post-cover { border-radius: 0; overflow: hidden; margin-bottom: 28px; aspect-ratio: 16/9; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ── AFFILIATE ─────────────────────────────────────────────── */
.affiliate-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 0; padding: 16px 20px; margin: 24px 0; }
.affiliate-box__label { color: var(--text-3); font-size: .8rem; }
.affiliate-box__price { font-size: 1.5rem; font-weight: 700; color: var(--accent); }

/* ── POST TAGS ─────────────────────────────────────────────── */
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.post-tag { padding: 5px 12px; border-radius: 0; font-size: .8125rem; background: var(--bg-3); border: 1px solid var(--border); color: var(--text-3); transition: var(--transition); }
.post-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── BEĞEN ─────────────────────────────────────────────────── */
.post-like-wrap { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.post-like-btn { display: flex; align-items: center; gap: 8px; padding: 10px 24px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 0; font-size: 1rem; font-weight: 600; transition: var(--transition); }
.post-like-btn:hover { border-color: #ff6b6b; color: #ff6b6b; background: rgba(255,107,107,.08); }
.post-like-count { font-size: 1.5rem; font-weight: 700; color: var(--text-2); }

/* ── PAYLAŞIM ──────────────────────────────────────────────── */
.share-bar { display: flex; align-items: center; gap: 10px; margin: 20px 0; flex-wrap: wrap; }
.share-bar__label { font-size: .875rem; color: var(--text-3); }
.share-btn { padding: 8px 16px; border-radius: 0; font-size: .875rem; font-weight: 600; background: var(--bg-3); border: 1px solid var(--border); transition: var(--transition); cursor: pointer; }
.share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── YAZAR KUTUSU ──────────────────────────────────────────── */
.author-box { display: flex; gap: 16px; padding: 20px; margin: 28px 0; background: #fff; border: 1px solid var(--border); border-radius: 0; align-items: flex-start; }
.author-box__name  { font-size: 1rem; font-weight: 700; }
.author-box__name:hover { color: var(--accent); }
.author-box__level { font-size: .8rem; color: var(--text-3); margin-top: 2px; }
.author-box__bio   { color: var(--text-2); font-size: .875rem; margin-top: 8px; line-height: 1.5; }

/* ── YORUM FORMU ───────────────────────────────────────────── */
.comment-form { background: var(--bg-3); border: 1px solid var(--border); border-radius: 0; padding: 14px; margin-bottom: 20px; }
.comment-form__header { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .875rem; margin-bottom: 10px; }
.comment-login-prompt { text-align: center; padding: 24px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 0; margin-bottom: 20px; color: var(--text-3); }
.comment__best-label { background: rgba(0,230,118,.1); color: var(--success); font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 0; margin-bottom: 10px; display: inline-block; }
.reply-link { background: none; border: none; color: var(--text-3); font-size: .8125rem; cursor: pointer; transition: var(--transition); }
.reply-link:hover { color: var(--accent); }

/* ── FİLTRE TABLARI ────────────────────────────────────────── */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab { padding: 8px 16px; border-radius: 0; background: #fff; border: 1px solid var(--border); font-size: .875rem; font-weight: 500; color: var(--text-2); transition: var(--transition); }
.filter-tab:hover { border-color: var(--accent); color: var(--accent); }
.filter-tab.active {
  background: #e5e7eb;
  border-color: #e5e7eb;
  color: #000;
  font-weight: 700;
}

/* ── FORUM POST ─────────────────────────────────────────────── */
.forum-post-header { margin-bottom: 20px; }
.forum-post-header__title { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; line-height: 1.35; }
.forum-post-body { background: #fff; border: 1px solid var(--border); border-radius: 0; padding: 24px; margin-bottom: 24px; }
.reply-form-wrap { background: #fff; border: 1px solid var(--border); border-radius: 0; padding: 20px; margin: 24px 0; }

/* ── PROFİL ─────────────────────────────────────────────────── */
.profile-cover { height: 200px; background: linear-gradient(135deg,var(--bg-3),var(--bg-2)); position: relative; overflow: hidden; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-header { background: #fff; border: 1px solid var(--border); border-top: none; padding: 0 24px 24px; border-radius: 0; }
.profile-avatar { margin-top: -52px; position: relative; display: inline-block; }
.profile-avatar .avatar--xxl { border: 4px solid var(--bg-2); }
.profile-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 16px; }
.profile-stat { text-align: center; }
.profile-stat__num  { font-size: 1.25rem; font-weight: 700; }
.profile-stat__label{ font-size: .75rem; color: var(--text-3); }

/* ── ROZET KART ─────────────────────────────────────────────── */
.badge-card { background: #fff; border: 1px solid var(--border); border-radius: 0; padding: 16px; text-align: center; transition: var(--transition); }
.badge-card:hover { border-color: var(--accent); }
.badge-card__icon { font-size: 2rem; margin-bottom: 8px; }
.badge-card__name { font-weight: 600; font-size: .9rem; }
.badge-card__desc { color: var(--text-3); font-size: .8rem; margin-top: 4px; }

/* ── SEARCH LIVE ───────────────────────────────────────────── */
.search-live__section { padding: 4px 0; }
.search-live__label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3); padding: 4px 10px; }
.search-live__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 0; transition: var(--transition); }
.search-live__item:hover { background: var(--bg-3); }
.search-live__thumb { width: 48px; height: 36px; border-radius: 0; object-fit: cover; flex-shrink: 0; background: var(--bg-3); }
.search-live__thumb--round { border-radius: 0; width: 32px; height: 32px; }
.search-live__title { font-size: .875rem; font-weight: 500; color: var(--text); }
.search-live__cat   { font-size: .75rem; color: var(--text-3); margin-top: 2px; }
.search-live__empty { padding: 16px; text-align: center; color: var(--text-3); font-size: .875rem; }

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--text-3); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--border-2); }

/* ── TOC STICKY ─────────────────────────────────────────────── */
.toc-sticky { position: sticky; top: calc(112px + 16px); }

/* ── TOAST ──────────────────────────────────────────────────── */
.toast { position: fixed; bottom: calc(60px + 16px); left: 50%; transform: translateX(-50%); z-index: 9999; background: #fff; border: 1px solid var(--border); border-radius: 0; padding: 12px 20px; font-size: .875rem; white-space: nowrap; box-shadow: var(--shadow-lg); animation: toastIn .3s ease; }
@keyframes toastIn { from { opacity:0; transform:translateX(-50%) translateY(12px); } }
@media (min-width:768px) { .toast { bottom: 24px; } }

/* ── AD WRAP ─────────────────────────────────────────────────── */
.ad-wrap { margin: 28px 0; text-align: center; }

/* ── RESPONSIVE YAZMA ───────────────────────────────────────── */
@media (max-width:900px) {
  .write-title-input { font-size: 1.25rem; }
  #write-form > div, #edit-form > div { grid-template-columns: 1fr !important; }
}