/* DefineBul - Ana CSS */
/* ================================
   CSS Değişkenler
================================ */
:root {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --primary-light: #fef3c7;
  --secondary: #0f172a;
  --accent: #1e40af;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.08);
  --transition: 0.2s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --container: 1200px;
  --header-h: 64px;
}

/* ================================
   Reset & Base
================================ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-nav {
  position: absolute; top: -100%; left: 8px;
  background: var(--primary); color: #000;
  padding: 8px 16px; border-radius: var(--radius);
  font-weight: 700; z-index: 9999;
}
.skip-nav:focus { top: 8px; }

/* ================================
   Konteyner
================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ================================
   Butonlar
================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; transition: var(--transition);
  border: 2px solid transparent; line-height: 1.3;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #0f172a;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #0f172a; }
.btn-outline {
  background: transparent; color: var(--secondary);
  border-color: var(--border-dark);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Hero içindeki outline butonu beyaz metin */
.hero .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.hero .btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ================================
   Header
================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}
.site-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.site-logo img { height: 44px; width: auto; }
.text-logo {
  font-size: 1.6rem; font-weight: 800;
  letter-spacing: -1px; line-height: 1;
}
.logo-define { color: var(--primary); }
.logo-bul { color: #fff; }

.main-nav ul {
  display: flex; align-items: center; gap: 4px;
}
.main-nav a {
  color: #cbd5e1; padding: 8px 12px; border-radius: 6px;
  font-size: 0.9rem; font-weight: 500; transition: var(--transition);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active { color: var(--primary); background: rgba(245,158,11,.1); }
.nav-search-btn a { padding: 8px; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: #cbd5e1; border-radius: 2px; transition: var(--transition);
}

/* ================================
   Hero
================================ */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff; padding: 80px 0;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-title {
  font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 20px;
}
.text-accent { color: var(--primary); }
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem); color: #94a3b8;
  max-width: 600px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-pill {
  background: rgba(255,255,255,.1); color: #e2e8f0;
  padding: 5px 12px; border-radius: 20px; font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,.15); transition: var(--transition);
}
.tag-pill:hover { background: rgba(245,158,11,.2); color: var(--primary); border-color: var(--primary); }

/* ================================
   Sections
================================ */
.section { padding: 64px 0; }
.section-header {
  text-align: center; margin-bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.section-header h2 {
  font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; color: var(--secondary);
}
.section-header p { color: var(--text-muted); max-width: 500px; }
.section-header.flex-row {
  flex-direction: row; justify-content: space-between; text-align: left; align-items: center;
}
.see-all { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* ================================
   Kategoriler Grid
================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 16px;
  text-align: center; transition: var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text);
}
.category-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow-lg);
  transform: translateY(-2px); color: var(--text);
}
.cat-icon { font-size: 2.5rem; line-height: 1; }
.category-card h3 { font-size: 1rem; font-weight: 700; }
.category-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.cat-count {
  font-size: 0.8rem; background: var(--primary-light); color: #92400e;
  padding: 2px 10px; border-radius: 20px; font-weight: 600;
}

/* ================================
   Post Cards
================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.posts-grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.featured-grid .post-card--large {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.featured-grid .post-card--large .post-card__img { height: 320px; }

.post-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--border-dark); }

.post-card__img-wrap { display: block; overflow: hidden; flex-shrink: 0; }
.post-card__img {
  width: 100%; height: 200px; object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card__img { transform: scale(1.04); }
.post-card__body {
  padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.post-card__cat {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  background: var(--primary-light); color: #92400e;
  padding: 2px 10px; border-radius: 20px; text-transform: uppercase;
  align-self: flex-start;
}
.post-card__title {
  font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--secondary);
}
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--primary); }
.post-card__excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.post-card__meta {
  display: flex; gap: 12px; font-size: 0.8rem; color: var(--text-light);
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.post-card--small .post-card__img { height: 140px; }
.post-card--small .post-card__body { padding: 14px; }
.post-card--small .post-card__title { font-size: 0.9rem; }

/* ================================
   Sayfa Container
================================ */
.page-container { padding: 32px 0 64px; }
.page-header {
  margin-bottom: 32px; padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
}
.page-header h1 {
  font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: var(--secondary); margin-bottom: 8px;
}
.page-header p { color: var(--text-muted); }
.empty-state { padding: 48px; text-align: center; color: var(--text-muted); }

/* ================================
   Tekil Yazı
================================ */
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.single-post {}
.post-header { margin-bottom: 28px; }
.post-cat-badge {
  display: inline-block; background: var(--primary); color: #0f172a;
  padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; margin-bottom: 16px;
}
.post-title {
  font-family: var(--font-heading); font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700; line-height: 1.25; color: var(--secondary); margin-bottom: 16px;
}
.post-lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.post-meta {
  display: flex; gap: 16px; font-size: 0.85rem; color: var(--text-light);
  flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--border);
}
.post-featured-img { margin-bottom: 28px; border-radius: var(--radius-lg); overflow: hidden; }
.post-featured-img .featured-img { width: 100%; height: auto; max-height: 500px; object-fit: cover; }
.post-featured-img figcaption { font-size: 0.85rem; color: var(--text-muted); padding: 8px 0; text-align: center; }

.amp-notice {
  background: #fef3c7; border: 1px solid var(--primary);
  padding: 10px 16px; border-radius: var(--radius); margin-bottom: 24px; font-size: 0.9rem;
}
.amp-notice a { color: #92400e; font-weight: 600; }

.post-content {
  font-size: 1.05rem; line-height: 1.8; color: var(--text);
}
.post-content h2 {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  margin: 36px 0 14px; color: var(--secondary);
}
.post-content h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 12px; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 0 0 16px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content img { border-radius: var(--radius); margin: 20px 0; }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content blockquote {
  border-left: 4px solid var(--primary); margin: 24px 0;
  padding: 16px 20px; background: var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content strong { font-weight: 700; }
.post-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.post-content th, .post-content td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.post-content th { background: var(--bg); font-weight: 700; }

.post-tags { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.post-tags strong { color: var(--text-muted); }
.post-tags .tag-pill { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.post-tags .tag-pill:hover { border-color: var(--primary); color: var(--primary); }

.post-share { margin-top: 24px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.post-share strong { color: var(--text-muted); }
.share-btn { padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; color: #fff; }
.share-fb { background: #1877f2; }
.share-fb:hover { background: #1557b0; color: #fff; }
.share-tw { background: #1da1f2; }
.share-tw:hover { background: #0c85d0; color: #fff; }
.share-wa { background: #25d366; }
.share-wa:hover { background: #1da851; color: #fff; }

/* ================================
   Sidebar
================================ */
.post-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px;
}
.sidebar-widget h3 { font-weight: 700; margin-bottom: 14px; font-size: 1rem; }
.sidebar-cats li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.sidebar-cats li:last-child { border: none; }
.sidebar-cats a { font-size: 0.9rem; color: var(--text); }
.sidebar-cats a:hover { color: var(--primary); }
.badge { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; font-size: 0.75rem; padding: 1px 8px; color: var(--text-muted); }

.sidebar-search { display: flex; gap: 8px; }
.sidebar-search input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; }
.sidebar-search button { padding: 8px 12px; background: var(--primary); border: none; border-radius: var(--radius); font-size: 1rem; }

/* ================================
   İlgili Yazılar
================================ */
.related-posts { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--border); }
.related-posts h2 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 24px; color: var(--secondary); }

/* ================================
   Arama
================================ */
.search-form { margin-bottom: 32px; }
.search-input-wrap { display: flex; gap: 10px; }
.search-input-wrap input {
  flex: 1; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius); font-size: 1rem; transition: var(--transition);
}
.search-input-wrap input:focus { border-color: var(--primary); outline: none; }
.search-result-info { margin-bottom: 24px; color: var(--text-muted); }
.search-results { display: flex; flex-direction: column; gap: 20px; }
.search-result-item {
  background: var(--bg-card); padding: 20px; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.search-result-item h2 { font-size: 1.1rem; margin-bottom: 8px; }
.search-result-item p { color: var(--text-muted); font-size: 0.95rem; }
.search-hint { color: var(--text-muted); padding: 20px 0; }
.related-searches { margin-top: 32px; }
.related-searches h3 { margin-bottom: 12px; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }

/* ================================
   SSS
================================ */
.faq-section { background: var(--bg); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px;
}
.faq-item h3 { font-weight: 700; color: var(--secondary); margin-bottom: 12px; font-size: 1.05rem; }
.faq-item p { color: var(--text-muted); line-height: 1.7; }

/* ================================
   Breadcrumb
================================ */
.breadcrumb { margin-bottom: 20px; }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  font-size: 0.85rem;
}
.breadcrumb li a { color: var(--text-muted); }
.breadcrumb li a:hover { color: var(--primary); }
.breadcrumb li[aria-current="page"] span { color: var(--text); font-weight: 500; }
.separator { color: var(--text-light); font-size: 0.7rem; margin: 0 2px; }

/* ================================
   Sayfalama
================================ */
.pagination { margin-top: 40px; text-align: center; }
.pagination ul { display: inline-flex; gap: 4px; list-style: none; flex-wrap: wrap; justify-content: center; }
.pagination li { border-radius: var(--radius); overflow: hidden; }
.pagination li a, .pagination li.active {
  display: block; padding: 8px 14px; background: var(--bg-card);
  border: 1px solid var(--border); color: var(--text); font-size: 0.9rem;
  transition: var(--transition);
}
.pagination li a:hover { border-color: var(--primary); color: var(--primary); }
.pagination li.active { background: var(--primary); border-color: var(--primary); color: #0f172a; font-weight: 700; }

/* ================================
   Footer
================================ */
.site-footer {
  background: var(--secondary); color: #94a3b8;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.footer-about .footer-logo { display: block; margin-bottom: 16px; }
.footer-about p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: rgba(255,255,255,.08);
  border-radius: 8px; font-size: 0.75rem; font-weight: 700; color: #94a3b8;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #0f172a; }
.footer-col h3 { color: #e2e8f0; font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a, .footer-col ul li { color: #64748b; font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--primary); }
.tag-cloud-footer li { display: inline-block; margin: 0 4px 6px 0; }
.tag-cloud-footer a { font-size: 0.8rem; background: rgba(255,255,255,.05); padding: 3px 10px; border-radius: 20px; color: #64748b; border: 1px solid rgba(255,255,255,.08); }
.tag-cloud-footer a:hover { color: var(--primary); border-color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.85rem;
}
.footer-disclaimer { color: #475569; }

/* ================================
   Resim (picture) tag
================================ */
picture { display: block; }

/* ================================
   Responsive
================================ */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid .post-card--large { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--secondary); padding: 12px; z-index: 99; }
  .main-nav.open ul { flex-direction: column; }
  .main-nav.open li { width: 100%; }
  .main-nav.open a { display: block; padding: 12px; }
  .menu-toggle { display: flex; }
  .hero { padding: 48px 0; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .post-card--large { display: flex; flex-direction: column; }
  .section { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .search-input-wrap { flex-direction: column; }
}

@media (max-width: 480px) {
  .posts-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
}
