@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ── LAYOUT ── */
.container    { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
/* main-content KALDIR, yerine sadece şu kalsın: */
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAVBAR ── */
.navbar {
  height: 56px;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  z-index: 50;
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -.2px;
}
.logo-icon {
  width: 28px; height: 28px;
  background: #1a1a1a;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.logo-text { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #555;
  transition: background .12s, color .12s;
}
.nav-links a:hover { background: #f5f5f5; color: #1a1a1a; }
.btn-primary {
  background: #1a1a1a !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
}
.btn-primary:hover { opacity: .85 !important; }
.btn-outline {
  border: 1px solid #e0e0e0 !important;
  color: #444 !important;
  background: transparent !important;
}
.btn-outline:hover { background: #f5f5f5 !important; }
.btn-admin {
  background: #fafaf0 !important;
  color: #6b5c00 !important;
  border: 1px solid #e8e0a0 !important;
  font-weight: 600 !important;
}

/* ── FOOTER ── */
footer, .footer {
  border-top: 1px solid #eaeaea;
  padding: 24px 0;
  font-size: 13px;
  color: #999;
  margin-top: auto;
}

/* ── ALERTS ── */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 500; margin-bottom: 18px; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: #333; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0070f3;
  box-shadow: 0 0 0 3px rgba(0,112,243,.08);
}
.form-group input::placeholder { color: #bbb; }
.form-submit {
  width: 100%;
  padding: 10px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .12s;
}
.form-submit:hover { opacity: .8; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── AUTH ── */
.auth-wrap { max-width: 400px; margin: 64px auto; padding: 0 24px; }
.auth-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.auth-title { font-size: 22px; font-weight: 600; letter-spacing: -.4px; margin-bottom: 4px; }
.auth-sub   { font-size: 13.5px; color: #888; margin-bottom: 24px; }

/* ── ADMIN ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px;
  background: #111;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.admin-logo {
  padding: 20px 18px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 8px;
  font-family: ui-monospace, monospace;
}
.admin-nav { padding: 6px 8px; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 6px;
  color: rgba(255,255,255,.45);
  font-size: 13px;
  font-weight: 500;
  transition: all .12s;
}
.admin-nav a:hover  { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active { background: #0070f3; color: #fff; }
.admin-nav a:last-child { margin-top: auto; }
.admin-main  { flex: 1; background: #f9f9f9; padding: 36px 40px; overflow-y: auto; }
.admin-title { font-size: 20px; font-weight: 600; letter-spacing: -.4px; margin-bottom: 28px; color: #1a1a1a; }

/* Admin stats */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 32px; }
.stat-card  { background: #fff; border: 1px solid #eaeaea; border-radius: 10px; padding: 20px; }
.stat-value { font-size: 28px; font-weight: 700; letter-spacing: -1px; color: #1a1a1a; line-height: 1; margin-bottom: 5px; }
.stat-label { font-size: 12.5px; color: #999; font-weight: 400; }

/* Admin table */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #eaeaea; border-radius: 10px; overflow: hidden; }
.data-table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: .5px; background: #fafafa; border-bottom: 1px solid #eaeaea; }
.data-table td { padding: 12px 14px; font-size: 13px; border-bottom: 1px solid #f0f0f0; color: #1a1a1a; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafafa; }

/* Admin buttons */
.btn     { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border-radius: 7px; font-size: 12.5px; font-weight: 500; cursor: pointer; border: none; transition: all .12s; text-decoration: none; font-family: inherit; }
.btn-sm  { padding: 4px 10px; font-size: 12px; }
.btn-danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.btn-danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-edit   { background: #f0f7ff; color: #0070f3; border: 1px solid #d0e4ff; }
.btn-edit:hover { background: #0070f3; color: #fff; border-color: #0070f3; }

/* File drop */
.file-drop {
  border: 1.5px dashed #e0e0e0;
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.file-drop:hover { border-color: #0070f3; background: #f0f7ff; }

/* Upload */
.upload-wrap { max-width: 720px; margin: 0 auto; padding: 48px 0; }
.page-title  { font-size: 24px; font-weight: 600; letter-spacing: -.5px; margin-bottom: 6px; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 40px 0; }
.page-btn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  font-size: 13px; font-weight: 500;
  color: #666; transition: all .12s;
  text-decoration: none;
}
.page-btn:hover { background: #f5f5f5; color: #1a1a1a; }
.page-btn.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* Empty */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: #555; margin-bottom: 6px; }
.empty-state p  { font-size: 13.5px; color: #aaa; }

/* Tags */
.tag {
  display: inline-block; padding: 2px 9px; border-radius: 99px;
  background: #f5f5f5; border: 1px solid #eaeaea;
  font-size: 12px; font-weight: 500; color: #666; margin: 2px;
  transition: all .12s;
}
.tag:hover { background: #f0f7ff; color: #0070f3; border-color: #d0e4ff; }

/* Like btn */
.like-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border: 1px solid #e0e0e0;
  border-radius: 99px; background: #fff; font-size: 13.5px;
  font-weight: 500; color: #666; transition: all .12s; cursor: pointer;
  font-family: inherit;
}
.like-btn:hover, .like-btn.liked { border-color: #fda4af; background: #fff1f2; color: #e11d48; }

/* Comments */
.comments-section { margin-top: 48px; padding-top: 36px; border-top: 1px solid #eaeaea; }
.comments-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 24px; letter-spacing: -.2px; }
.comment-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid #e0e0e0; border-radius: 8px;
  font-family: inherit; font-size: 13.5px; color: #1a1a1a;
  resize: vertical; min-height: 88px; outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.comment-form textarea:focus { border-color: #0070f3; box-shadow: 0 0 0 3px rgba(0,112,243,.08); }
.comment-form button {
  margin-top: 8px; padding: 8px 20px;
  background: #1a1a1a; color: #fff; border: none;
  border-radius: 7px; font-size: 13.5px; font-weight: 500;
  transition: opacity .12s;
}
.comment-form button:hover { opacity: .8; }
.comment-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { width:34px; height:34px; border-radius:50%; background:#1a1a1a; color:#fff; display:grid; place-items:center; font-size:12px; font-weight:600; flex-shrink:0; }
.comment-meta { font-size: 12.5px; color: #aaa; margin-bottom: 4px; }
.comment-meta strong { color: #333; font-weight: 600; }
.comment-body { font-size: 13.5px; color: #333; line-height: 1.6; }

/* HLJS */
.hljs { background: transparent !important; padding: 0 !important; }

/* Responsive */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 24px 16px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .form-grid  { grid-template-columns: 1fr; }
}