:root {
  --bg: #0b1220;
  --card: #121a2a;
  --surface: #0e1626;
  --border: #1f2a3f;
  --text: #e5e7eb;
  --muted: #9aa4b2;
  --primary: #58c4dc;
  --primary-dark: #3aa6bf;
  --accent: #7c8cff;
  --shadow: rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 10% -20%, #0f1830 10%, #0b1220 60%);
  color: var(--text);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(12,18,30,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 700; font-size: 20px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-right: 10px; box-shadow: 0 6px 16px var(--shadow);
}
.logo-text { font-size: 20px; font-weight: 700; color: #f3f4f6; }
.logo-text span { color: var(--primary); margin-left: 4px; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav a, .dropdown > a {
  display: inline-flex; align-items: center;
  text-decoration: none; color: var(--text);
  font-weight: 500; padding: 6px 10px; border-radius: 6px;
}
.nav a:hover, .dropdown > a:hover { background: #0f172a; color: #cfe8f0; }
.menu-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--text); cursor: pointer; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown > a i { margin-left: 6px; } /* ok işareti boşluklu */
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: 0 8px 20px var(--shadow);
  min-width: 180px; padding: 8px 0; z-index: 1000;
}
.dropdown-menu a {
  display: block; padding: 8px 14px;
  text-decoration: none; color: var(--text); font-size: 14px;
}
.dropdown-menu a:hover { background: #0f172a; color: var(--primary); }
.dropdown:hover .dropdown-menu { display: block; }

/* Hero */
.hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 0;
  background: radial-gradient(1000px 500px at 10% -20%, #0f1830 10%, #0b1220 60%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; box-shadow: 0 4px 14px var(--shadow); }
.hero-name { font-size: 26px; color: #f3f4f6; margin-bottom: 6px; }
.hero-bio { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.hero-socials { display: flex; gap: 14px; justify-content: center; margin-bottom: 20px; }
.hero-socials a { font-size: 20px; color: var(--primary); transition: transform .2s ease; }
.hero-socials a:hover { color: var(--accent); transform: scale(1.1); }

/* Hero search */
.hero-search {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; max-width: 400px; margin: 0 auto;
}
.hero-search input {
  flex: 1; padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
}
.hero-search button {
  padding: 10px 16px;
  background: var(--primary);
  color: #0b1220;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
}
.hero-search button:hover { background: var(--primary-dark); }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; padding: 32px 0; }

/* Section */
.section-title h2 { margin: 12px 0 16px; font-size: 22px; color: #e5e7eb; text-align: center; font-weight: 700; border-bottom: 2px solid var(--border); padding-bottom: 6px; }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 28px; }
.post-card { background: linear-gradient(180deg, #0e1626, #101a2d); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; box-shadow: 0 12px 40px var(--shadow); }
.post-card:hover { transform: translateY(-4px); border-color: #2a3a58; box-shadow: 0 16px 48px rgba(0,0,0,0.45); }
.post-image img { width: 100%; height: 220px; object-fit: cover; }
.post-content { padding: 16px; }
.post-meta { font-size: 14px; color: var(--muted); display: flex; gap: 12px; margin-bottom: 8px; align-items: center; flex-wrap: wrap; }
.post-meta .category { font-weight: 700; color: var(--accent); }
.post-title { font-size: 20px; margin: 0 0 10px; color: #f3f4f6; }
.post-title a { text-decoration: none; color: inherit; }
.post-excerpt { font-size: 15px; color: #d1d5db; margin-bottom: 14px; }
.read-more { display: inline-block; padding: 8px 14px; background: var(--primary); color: #0b1220; border-radius: 8px; text-decoration: none; font-weight: 700; }
.read-more:hover { background: var(--primary-dark); }

/* Sidebar */
.sidebar .widget { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 18px; box-shadow: 0 8px 24px var(--shadow); }
.sidebar .widget h3 { margin: 0 0 12px; font-size: 18px; color: #f3f4f6; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-left: 4px solid var(--primary); padding-left: 8px; }
/* Sidebar devam */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 6px 0; }
.list a { text-decoration: none; color: #e5e7eb; }
.list a:hover { color: var(--primary); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: #cbd5e1;
  font-size: 13px;
  text-decoration: none;
}
.tag:hover { border-color: var(--primary); color: var(--primary); }

/* Breadcrumbs & Post detail */
.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs a { text-decoration: none; color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }

.post-header h1 { margin: 6px 0; font-size: 28px; color: #f3f4f6; }
.post-cover img { width: 100%; height: 320px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.post-content { margin-top: 16px; line-height: 1.85; color: #e5e7eb; }
.post-content p { margin: 0 0 16px; }
.post-tags { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Comments */
.comments { margin-top: 32px; }
.comments h3 { font-size: 20px; margin-bottom: 14px; color: #f3f4f6; border-bottom: 2px solid var(--border); padding-bottom: 6px; }
.comment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px var(--shadow);
}
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary);
  color: #0b1220;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.comment-info { display: flex; flex-direction: column; }
.comment-author { font-weight: 600; color: #f3f4f6; }
.comment-date { font-size: 12px; color: var(--muted); }
.comment-body { font-size: 15px; color: #e5e7eb; line-height: 1.6; }

.comment-form { display: grid; gap: 12px; margin-top: 18px; }
.comment-form input, .comment-form textarea {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
}
.comment-form textarea { min-height: 100px; }
.comment-form button {
  padding: 12px;
  background: var(--primary);
  color: #0b1220;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}
.comment-form button:hover { background: var(--primary-dark); }

/* Related/Popular posts (post sayfasında küçük kartlar) */
.related { margin-top: 32px; }
.related h3 { font-size: 18px; margin-bottom: 12px; color: #f3f4f6; border-left: 4px solid var(--primary); padding-left: 8px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card.small {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 6px 20px var(--shadow);
  overflow: hidden;
}
.card.small .card-image img { width: 100%; height: 160px; object-fit: cover; }
.card.small .card-body { padding: 12px; }
.card.small h4 { font-size: 16px; margin: 0 0 8px; }
.card.small p.excerpt { font-size: 14px; color: var(--muted); }

/* Pagination */
.pagination { display: flex; gap: 8px; margin: 18px 0; }
.page {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
}
.page.active, .page:hover { border-color: var(--primary); color: var(--primary); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: rgba(12,18,30,0.7); margin-top: 40px; }
.footer-inner { padding: 18px 0; color: var(--muted); text-align: center; font-size: 14px; }

/* Responsive - tablet */
@media (max-width: 1024px) {
  .hero { padding: 50px 0; }
  .hero-avatar { width: 100px; height: 100px; }
  .hero-name { font-size: 24px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { margin-top: 24px; }
  .blog-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
  .post-cover img { height: 260px; }
}

/* Responsive - mobile */
@media (max-width: 768px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    right: 16px;
    top: 56px;
    flex-direction: column;
    align-items: flex-start; /* yazılar sola hizalı */
    gap: 12px;
    background: var(--surface);
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 28px var(--shadow);
    min-width: 200px;
  }
  .nav a { padding: 10px; border-radius: 8px; width: 100%; }
  .nav a:hover { background: #0f172a; }
  .nav.active { display: flex; }
}

/* Responsive - small mobile */
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.65; }
  .container { padding: 0 16px; }

  /* Header düzeni */
  .header-inner { justify-content: center; padding: 18px 0; }
  .logo { margin: 0 auto; }
  .logo-mark { width: 34px; height: 34px; font-size: 18px; margin-right: 8px; }
  .logo-text { font-size: 18px; }

  .hero-avatar { width: 90px; height: 90px; }
  .hero-name { font-size: 22px; }
  .hero-bio { font-size: 14px; }
  .hero-socials a { font-size: 18px; }

  .hero-search {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 12px;   /* kenarlardan boşluk ekle */
  }
  .hero-search input,
  .hero-search button {
    width: 100%;
    font-size: 15px;
    padding: 10px 12px;
    box-sizing: border-box; /* padding genişliği bozmasın */
  }

  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .post-image img { height: 180px; }
  .post-title { font-size: 18px; }
  .post-excerpt { font-size: 14px; }
  .read-more { font-size: 14px; padding: 8px 12px; }
  .post-cover img { height: 200px; }
  .sidebar { margin-top: 28px; }

  .comment-avatar { width: 32px; height: 32px; font-size: 14px; }
  .comment-form input, .comment-form textarea { font-size: 14px; }
  .comment-form button { font-size: 14px; padding: 8px 12px; }

  .card.small .card-image img { height: 140px; }
/* Sidebar devam */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 6px 0; }
.list a { text-decoration: none; color: #e5e7eb; }
.list a:hover { color: var(--primary); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: #cbd5e1;
  font-size: 13px;
  text-decoration: none;
}
.tag:hover { border-color: var(--primary); color: var(--primary); }

/* Breadcrumbs & Post detail */
.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs a { text-decoration: none; color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }

.post-header h1 { margin: 6px 0; font-size: 28px; color: #f3f4f6; }
.post-cover img { width: 100%; height: 320px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.post-content { margin-top: 16px; line-height: 1.85; color: #e5e7eb; }
.post-content p { margin: 0 0 16px; }
.post-tags { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Comments */
.comments { margin-top: 32px; }
.comments h3 { font-size: 20px; margin-bottom: 14px; color: #f3f4f6; border-bottom: 2px solid var(--border); padding-bottom: 6px; }
.comment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px var(--shadow);
}
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary);
  color: #0b1220;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.comment-info { display: flex; flex-direction: column; }
.comment-author { font-weight: 600; color: #f3f4f6; }
.comment-date { font-size: 12px; color: var(--muted); }
.comment-body { font-size: 15px; color: #e5e7eb; line-height: 1.6; }

.comment-form { display: grid; gap: 12px; margin-top: 18px; }
.comment-form input, .comment-form textarea {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
}
.comment-form textarea { min-height: 100px; }
.comment-form button {
  padding: 12px;
  background: var(--primary);
  color: #0b1220;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}
.comment-form button:hover { background: var(--primary-dark); }

/* Related/Popular posts (post sayfasında küçük kartlar) */
.related { margin-top: 32px; }
.related h3 { font-size: 18px; margin-bottom: 12px; color: #f3f4f6; border-left: 4px solid var(--primary); padding-left: 8px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card.small {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 6px 20px var(--shadow);
  overflow: hidden;
}
.card.small .card-image img { width: 100%; height: 160px; object-fit: cover; }
.card.small .card-body { padding: 12px; }
.card.small h4 { font-size: 16px; margin: 0 0 8px; }
.card.small p.excerpt { font-size: 14px; color: var(--muted); }

/* Pagination */
.pagination { display: flex; gap: 8px; margin: 18px 0; }
.page {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
}
.page.active, .page:hover { border-color: var(--primary); color: var(--primary); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: rgba(12,18,30,0.7); margin-top: 40px; }
.footer-inner { padding: 18px 0; color: var(--muted); text-align: center; font-size: 14px; }

/* Responsive - tablet */
@media (max-width: 1024px) {
  .hero { padding: 50px 0; }
  .hero-avatar { width: 100px; height: 100px; }
  .hero-name { font-size: 24px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { margin-top: 24px; }
  .blog-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
  .post-cover img { height: 260px; }
}

/* Responsive - mobile */
@media (max-width: 768px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    right: 16px;
    top: 56px;
    flex-direction: column;
    align-items: flex-start; /* yazılar sola hizalı */
    gap: 12px;
    background: var(--surface);
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 28px var(--shadow);
    min-width: 200px;
  }
  .nav a { padding: 10px; border-radius: 8px; width: 100%; }
  .nav a:hover { background: #0f172a; }
  .nav.active { display: flex; }
}

/* Responsive - small mobile */
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.65; }
  .container { padding: 0 16px; }

  /* Header düzeni */
  .header-inner { justify-content: center; padding: 18px 0; }
  .logo { margin: 0 auto; }
  .logo-mark { width: 34px; height: 34px; font-size: 18px; margin-right: 8px; }
  .logo-text { font-size: 18px; }

  .hero-avatar { width: 90px; height: 90px; }
  .hero-name { font-size: 22px; }
  .hero-bio { font-size: 14px; }
  .hero-socials a { font-size: 18px; }

  .hero-search { flex-direction: column; gap: 10px; width: 100%; }
  .hero-search input, .hero-search button { width: 100%; font-size: 15px; padding: 10px 12px; }

  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .post-image img { height: 180px; }
  .post-title { font-size: 18px; }
  .post-excerpt { font-size: 14px; }
  .read-more { font-size: 14px; padding: 8px 12px; }
  .post-cover img { height: 200px; }
  .sidebar { margin-top: 28px; }

  .comment-avatar { width: 32px; height: 32px; font-size: 14px; }
  .comment-form input, .comment-form textarea { font-size: 14px; }
  .comment-form button { font-size: 14px; padding: 8px 12px; }

  .card.small .card-image img { height: 140px; }
.card.small h4 { font-size: 15px; }
.card.small p.excerpt { font-size: 13px; }

.footer-inner { font-size: 13px; }
}
