/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink:       #E91E8C;
  --pink-light: #FCE4EC;
  --pink-mid:   #F8BBD9;
  --pink-dark:  #C2185B;
  --white:      #FFFFFF;
  --gray-50:    #FAFAFA;
  --gray-100:   #F5F5F5;
  --gray-200:   #EEEEEE;
  --gray-400:   #BDBDBD;
  --gray-600:   #757575;
  --gray-800:   #424242;
  --gray-900:   #212121;
  --radius:     10px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.05);
  --shadow-md:  0 4px 24px rgba(233,30,140,.12);
  --font:       'Inter', -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 26px;
  color: var(--pink);
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: -.3px;
}

.logo-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.header-search {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border: 1.5px solid transparent;
  border-radius: 50px;
  padding: 0 16px;
  gap: 8px;
  transition: border-color .2s, background .2s;
}

.header-search:focus-within {
  background: var(--white);
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(233,30,140,.1);
}

.search-icon { color: var(--gray-400); flex-shrink: 0; }

.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: var(--font);
  color: var(--gray-900);
  outline: none;
  padding: 10px 0;
}

.header-search input::placeholder { color: var(--gray-400); }

.header-search button {
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background .2s;
  white-space: nowrap;
}

.header-search button:hover { background: var(--pink-dark); }

/* ── Canlı Arama Dropdown ──────────────────────────────────────────────────── */
.header-search { position: relative; }
.hero-search   { position: relative; }

.live-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 200;
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
}

.live-search-dropdown.open { display: block; }

.lsd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  text-decoration: none;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  transition: background .12s;
}

.lsd-item:last-of-type { border-bottom: none; }

.lsd-item:hover,
.lsd-item.lsd-active {
  background: var(--pink-light);
  text-decoration: none;
}

.lsd-title {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
}

.lsd-title mark {
  background: none;
  color: var(--pink);
  font-weight: 700;
}

.lsd-cat {
  font-size: 11px;
  background: var(--pink-light);
  color: var(--pink-dark);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.lsd-empty {
  padding: 20px 16px;
  font-size: 13px;
  color: var(--gray-400);
  text-align: center;
}

.lsd-all {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--pink);
  background: var(--gray-50);
  text-align: center;
  border-top: 1px solid var(--gray-100);
  text-decoration: none;
}

.lsd-all:hover {
  background: var(--pink-light);
  text-decoration: none;
}

/* Hero dropdown genişliği tam form ile aynı */
.hero-dropdown {
  text-align: left;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}

/* ── Layout ────────────────────────────────────────────────────────────────── */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  gap: 32px;
  min-height: calc(100vh - 64px - 60px);
}

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gray-400);
  margin-bottom: 12px;
  padding-left: 10px;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }

.nav-group { display: flex; flex-direction: column; }

.nav-parent {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.nav-parent:hover {
  background: var(--pink-light);
  color: var(--pink-dark);
  text-decoration: none;
}

.nav-icon { font-size: 17px; flex-shrink: 0; }

.nav-children {
  display: flex;
  flex-direction: column;
  margin-left: 28px;
  gap: 1px;
  margin-bottom: 4px;
}

.nav-child {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.nav-child:hover {
  background: var(--pink-light);
  color: var(--pink);
  text-decoration: none;
}

.nav-dot { color: var(--gray-400); font-size: 15px; }

/* ── Main Content ──────────────────────────────────────────────────────────── */
.main-content { flex: 1; min-width: 0; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--pink) 0%, #d81b7a 100%);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  margin-bottom: 36px;
  color: white;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.5px;
}

.hero-sub {
  font-size: 15px;
  opacity: .85;
  margin-bottom: 28px;
}

.hero-search {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 50px;
  padding: 6px 8px 6px 20px;
  max-width: 480px;
  margin: 0 auto;
  gap: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
}

.hero-search svg { color: var(--gray-400); flex-shrink: 0; }

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font);
  color: var(--gray-900);
}

.hero-search button {
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background .2s;
}

.hero-search button:hover { background: var(--pink-dark); }

/* ── Category Cards ────────────────────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

.cat-card:hover {
  border-color: var(--pink);
  box-shadow: 0 6px 28px rgba(233,30,140,.13);
  transform: translateY(-3px);
  text-decoration: none;
}

/* Resim alanı — 16:9 oranı */
.cat-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pink-light);
  flex-shrink: 0;
}

.cat-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.cat-card:hover .cat-card-image img {
  transform: scale(1.04);
}

.cat-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink-light) 0%, #f8e6f3 100%);
  font-size: 40px;
}

/* İçerik alanı */
.cat-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cat-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cat-card-icon-sm { font-size: 18px; flex-shrink: 0; }

.cat-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

.cat-card-desc {
  font-size: 13px;
  color: var(--gray-600);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.5;
}

.cat-card-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--pink);
  font-weight: 600;
  margin-top: 4px;
}

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb span { color: var(--gray-400); }

/* ── Page Header ───────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 32px;
}

.page-header-icon { font-size: 40px; flex-shrink: 0; }

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -.3px;
}

.page-desc {
  font-size: 14px;
  color: var(--gray-600);
  margin-top: 4px;
}

/* ── Section ───────────────────────────────────────────────────────────────── */
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pink-light);
}

/* ── Subcategory Grid ──────────────────────────────────────────────────────── */
.subcategories { margin-bottom: 36px; }

.subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.subcat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--gray-800);
  font-size: 13px;
  font-weight: 500;
  transition: all .2s;
}

.subcat-card:hover {
  background: var(--pink-light);
  border-color: var(--pink);
  color: var(--pink-dark);
  text-decoration: none;
}

.subcat-icon { font-size: 20px; }
.subcat-name { flex: 1; }

.subcat-count {
  background: var(--pink-light);
  color: var(--pink);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

/* ── Article List ──────────────────────────────────────────────────────────── */
.articles-section { margin-bottom: 24px; }

.article-list { display: flex; flex-direction: column; }

.article-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: var(--gray-800);
  transition: background .15s;
  border-radius: 6px;
}

.article-item:hover {
  background: var(--pink-light);
  color: var(--pink-dark);
  text-decoration: none;
}

.article-item svg { color: var(--pink); flex-shrink: 0; margin-top: 2px; }

.article-title { font-size: 14px; font-weight: 500; }

.article-excerpt {
  display: block;
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 2px;
}

/* ── Article Page ──────────────────────────────────────────────────────────── */
.article-page {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 36px 40px;
  margin-bottom: 24px;
}

.article-heading {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.4px;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.article-lead {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.article-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--pink-light);
  color: var(--pink-dark);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.article-views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--gray-400);
}

/* ── Article Body (Quill content) ──────────────────────────────────────────── */
.article-body { line-height: 1.75; }
.ql-content h1, .ql-content h2, .ql-content h3 {
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--gray-900);
}
.ql-content h1 { font-size: 22px; }
.ql-content h2 { font-size: 18px; }
.ql-content h3 { font-size: 16px; }
.ql-content p { margin-bottom: 14px; }
.ql-content ul, .ql-content ol { padding-left: 24px; margin-bottom: 14px; }
.ql-content li { margin-bottom: 6px; }
.ql-content blockquote {
  border-left: 3px solid var(--pink);
  padding-left: 16px;
  color: var(--gray-600);
  margin: 16px 0;
  font-style: italic;
}
.ql-content pre, .ql-content code {
  background: var(--gray-100);
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}
.ql-content pre { padding: 16px; overflow-x: auto; margin: 16px 0; }
.ql-content code { padding: 2px 6px; }
.ql-content img { max-width: 100%; border-radius: 8px; margin: 12px 0; }
.ql-content a { color: var(--pink); }

/* ── Article Footer ────────────────────────────────────────────────────────── */
.article-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.article-helpful p {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.helpful-btns { display: flex; gap: 10px; }

.helpful-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  background: white;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font);
  transition: all .2s;
}

.helpful-btn:hover, .helpful-btn.active {
  border-color: var(--pink);
  background: var(--pink-light);
  color: var(--pink-dark);
}

/* ── Related Articles ──────────────────────────────────────────────────────── */
.related-articles {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.related-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.related-list { display: flex; flex-direction: column; gap: 4px; }

.related-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--gray-700);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.related-item svg { color: var(--pink); flex-shrink: 0; }

.related-item:hover {
  background: var(--pink-light);
  color: var(--pink-dark);
  text-decoration: none;
}

/* ── Search Page ───────────────────────────────────────────────────────────── */
.search-heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.search-count {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.search-results { display: flex; flex-direction: column; gap: 12px; }

.search-result-item {
  display: block;
  padding: 18px 20px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all .2s;
}

.search-result-item:hover {
  border-color: var(--pink);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.search-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 12px;
}

.search-result-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

.search-result-cat {
  font-size: 11px;
  background: var(--pink-light);
  color: var(--pink-dark);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.search-result-excerpt {
  font-size: 13px;
  color: var(--gray-600);
}

/* ── Empty / 404 ───────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray-600);
}

.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state p { font-size: 15px; margin-bottom: 4px; }
.empty-hint { font-size: 13px; color: var(--gray-400); }

.not-found {
  text-align: center;
  padding: 80px 24px;
}

.not-found-icon { font-size: 64px; margin-bottom: 20px; }
.not-found h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.not-found p { font-size: 15px; color: var(--gray-600); margin-bottom: 24px; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pink);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}

.btn-primary:hover {
  background: var(--pink-dark);
  text-decoration: none;
  color: white;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--pink);
}

.footer-copy {
  font-size: 12px;
  color: var(--gray-400);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-wrap { flex-direction: column; gap: 24px; padding: 20px 16px; }
  .sidebar { width: 100%; }
  .hero { padding: 32px 20px; }
  .hero-title { font-size: 22px; }
  .article-page { padding: 24px 20px; }
  .categories-grid { grid-template-columns: 1fr; }
  .header-search button { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
