/* =========================================================
   VeryLife — Ana Stil Dosyası
   Sağlık & Yaşam dergisi teması
   ========================================================= */

:root {
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --brand-light: #ccfbf1;
  --accent: #f59e0b;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-alt: #f3f4f6;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -.5px; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
}
.logo b { color: var(--brand); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-soft); font-weight: 600; font-size: 15px;
  padding: 9px 13px; border-radius: 8px; transition: .15s;
}
.nav a:hover { background: var(--bg-alt); color: var(--brand-dark); text-decoration: none; }
.nav a.active { color: var(--brand-dark); background: var(--brand-light); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 42px; height: 40px; cursor: pointer;
  font-size: 20px; color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px; gap: 2px; display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #ecfeff 0%, #f0fdfa 40%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -1px; }
.hero p { font-size: 19px; color: var(--ink-soft); max-width: 640px; margin: 0 0 24px; }
.hero .eyebrow {
  display: inline-block; background: var(--brand-light); color: var(--brand-dark);
  font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px;
  margin-bottom: 16px; letter-spacing: .3px;
}

.btn {
  display: inline-block; background: var(--brand); color: #fff;
  font-weight: 700; padding: 12px 22px; border-radius: 10px; transition: .15s;
  border: none; cursor: pointer; font-size: 16px;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--brand-dark); border: 1px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-light); }

/* ---------- Section ---------- */
.section { padding: 52px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; margin: 0; letter-spacing: -.5px; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.bg-soft { background: var(--bg-soft); }

/* ---------- Card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 16/9; width: 100%; object-fit: cover; background: var(--bg-alt); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-dark);
  background: var(--brand-light); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
  align-self: flex-start; text-transform: uppercase; letter-spacing: .4px;
}
.card h3 { font-size: 19px; margin: 0 0 8px; line-height: 1.35; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--brand-dark); text-decoration: none; }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0 0 14px; flex: 1; }
.card .meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }

/* ---------- Article ---------- */
.article-wrap { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 40px; padding: 40px 0 60px; }
@media (max-width: 960px) { .article-wrap { grid-template-columns: 1fr; } .sidebar { order: 2; } }

.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }

article.post h1 { font-size: 34px; line-height: 1.2; margin: 8px 0 16px; letter-spacing: -.6px; }
.post-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.post-meta .author { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-soft); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,var(--brand),var(--brand-dark)); color:#fff; display:grid; place-items:center; font-weight:700; font-size:14px; }
.post-cover { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; }

article.post { font-size: 18px; color: var(--ink); }
article.post h2 { font-size: 25px; margin: 36px 0 12px; letter-spacing: -.4px; }
article.post h3 { font-size: 20px; margin: 26px 0 10px; }
article.post p { margin: 0 0 18px; }
article.post ul, article.post ol { margin: 0 0 18px; padding-left: 24px; }
article.post li { margin-bottom: 8px; }
article.post blockquote {
  margin: 24px 0; padding: 14px 20px; border-left: 4px solid var(--brand);
  background: var(--bg-soft); color: var(--ink-soft); border-radius: 0 8px 8px 0; font-style: italic;
}
article.post .lead { font-size: 20px; color: var(--ink-soft); }
article.post img { border-radius: var(--radius); margin: 24px 0; }
.callout {
  background: var(--brand-light); border: 1px solid #99f6e4; border-radius: var(--radius);
  padding: 18px 22px; margin: 26px 0;
}
.callout strong { color: var(--brand-dark); }

.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 30px 0; }
.tags-row a { font-size: 13px; background: var(--bg-alt); color: var(--ink-soft); padding: 6px 12px; border-radius: 999px; }
.tags-row a:hover { background: var(--brand-light); color: var(--brand-dark); text-decoration: none; }

.share-row { display: flex; gap: 10px; align-items: center; margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-row span { font-weight: 600; color: var(--ink-soft); font-size: 14px; }
.share-row a { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; color: var(--ink-soft); font-weight: 700; }
.share-row a:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.widget h4 { margin: 0 0 14px; font-size: 16px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget .mini { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.widget .mini:last-child { border-bottom: none; }
.widget .mini img { width: 68px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.widget .mini a { color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.35; }
.widget .mini a:hover { color: var(--brand-dark); text-decoration: none; }

/* ---------- Ad slots ---------- */
.ad-slot {
  margin: 28px auto; text-align: center; min-height: 90px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ad-slot::before {
  content: "Advertisement"; position: absolute; font-size: 11px; color: #cbd5e1;
  letter-spacing: 1px; text-transform: uppercase; pointer-events: none;
}
.ad-slot ins { position: relative; z-index: 1; }
.ad-label { text-align: center; font-size: 11px; color: #b0b7c3; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Content pages (legal / corporate) ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 44px 0; }
.page-hero h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: -.6px; }
.page-hero p { color: var(--muted); margin: 0; }
.prose { max-width: 780px; margin: 0 auto; padding: 44px 20px 60px; }
.prose h2 { font-size: 24px; margin: 34px 0 12px; letter-spacing: -.4px; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose p { margin: 0 0 16px; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: 15px; }
.prose th { background: var(--bg-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.contact-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-box .row { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-box .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-light); color: var(--brand-dark); display: grid; place-items: center; flex-shrink: 0; font-size: 18px; }
.form-note { font-size: 14px; padding: 12px 14px; border-radius: 10px; margin-top: 12px; display: none; }
.form-note.ok { display: block; background: #dcfce7; color: #166534; }

/* ---------- Newsletter / CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: var(--radius); padding: 40px; text-align: center; }
.cta-band h2 { margin: 0 0 8px; font-size: 26px; }
.cta-band p { margin: 0 0 22px; opacity: .92; }
.cta-band form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.cta-band input { flex: 1; padding: 12px 16px; border-radius: 10px; border: none; font-size: 16px; }
.cta-band .btn { background: var(--accent); }
.cta-band .btn:hover { background: #d97706; }
@media (max-width: 520px) { .cta-band form { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 48px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h5 { color: #fff; font-size: 15px; margin: 0 0 14px; letter-spacing: .3px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer p { color: #94a3b8; font-size: 14px; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #cbd5e1; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 32px; padding-top: 20px; text-align: center; color: #64748b; font-size: 13px; }
.footer-bottom a { color: #94a3b8; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 100;
  max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.18);
  padding: 18px 20px; display: none; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: 14px; color: var(--ink-soft); flex: 1; min-width: 220px; }
.cookie-banner .actions { display: flex; gap: 8px; }
.cookie-banner .btn { padding: 9px 16px; font-size: 14px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 40px 0; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.pill { background: var(--bg-alt); color: var(--ink-soft); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
