/* ==========================================================================
   ANNELER.BIZ  -  Tasarım sistemi (mobil uygulama ile aynı görünüm)
   Açık/koyu tema + 4 renk paleti (Gül, Lavanta, Şeftali, Nane)
   ========================================================================== */

/* Nunito (SIL Open Font License) - sunucudan sunulur, Google'a bağlanılmaz */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font-sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-xl: 32px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --nav-h: 64px;
  --bottom-h: calc(70px + env(safe-area-inset-bottom));
  --container: 1160px;
}

/* ---- Palet ---------------------------------------------------------------- */
html[data-palette="gul"]     { --p: #e8457c; --g0: #e8457c; --g1: #f7a1bc; --p-night: #ff7fa6; }
html[data-palette="lavanta"] { --p: #7357c6; --g0: #7357c6; --g1: #b39cf7; --p-night: #b59bff; }
html[data-palette="seftali"] { --p: #e8572e; --g0: #f4623a; --g1: #ffa989; --p-night: #ff9e7a; }
html[data-palette="nane"]    { --p: #14917f; --g0: #14917f; --g1: #63d3c3; --p-night: #5fd6c4; }

/* ---- Tema ----------------------------------------------------------------- */
html, html[data-theme="light"] {
  color-scheme: light;
  --bg: #fff8fa; --surface: #ffffff; --surface-2: #f6eef2; --text: #2b2230; --muted: #7a6f7e; --line: #ebdfe5;
  --primary: var(--p); --on-primary: #fff;
  --shadow: 0 1px 2px rgba(60, 20, 40, .06), 0 8px 24px rgba(60, 20, 40, .07);
  --hero-0: var(--g0); --hero-1: var(--g1);
  --danger: #d6344a; --success: #1f9d63; --warning: #d98a12;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0a0d; --surface: #17151b; --surface-2: #221f27; --text: #f6f1f4; --muted: #b4abb6; --line: #2e2a33;
  --primary: var(--p-night); --on-primary: #1a0610;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .02);
  --hero-0: color-mix(in srgb, var(--g0) 38%, #000); --hero-1: color-mix(in srgb, var(--g1) 50%, #000);
  --danger: #ff6b7d; --success: #4cd08c; --warning: #f2b04a;
}
:root { --primary-soft: color-mix(in srgb, var(--primary) 12%, var(--surface)); --primary-line: color-mix(in srgb, var(--primary) 30%, var(--surface)); }

/* ---- Temel ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .35s, color .35s;
}
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 800; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); } h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); } h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--primary) 30%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; } .right { text-align: right; }
.hide { display: none !important; }
.stack > * + * { margin-top: 12px; } .stack-lg > * + * { margin-top: 20px; }
.row { display: flex; gap: 12px; align-items: center; } .row-wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.gap-s { gap: 6px; } .gap-l { gap: 20px; } .between { justify-content: space-between; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.page { padding: 20px 0 calc(var(--bottom-h) + 36px); min-height: 60vh; }
.grid-main { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .grid-main { grid-template-columns: minmax(0, 1fr) 330px; } .page { padding-bottom: 48px; } }
.sidebar > * + * { margin-top: 16px; }
@media (max-width: 999px) { .sidebar { display: none; } }

/* ---- Üst çubuk ------------------------------------------------------------ */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar .container { height: var(--nav-h); display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { height: 36px; width: auto; display: block; }
.brand .heart { color: var(--primary); animation: beat 1.6s infinite; display: inline-flex; }
.nav-links { display: none; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--text); font-weight: 500; transition: background .2s; }
.nav-links a:hover, .nav-links a.active { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.top-search { display: none; flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 1000px) { .nav-links { display: flex; } .top-search { display: block; } .top-actions { margin-left: 0; } .md-hide { display: none !important; } }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 14px; border: 0; background: transparent; color: var(--text); display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, transform .15s var(--ease); }
.icon-btn:hover { background: var(--primary-soft); } .icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; }
.badge-dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; display: inline-block; }
.avatar.sm { width: 28px; height: 28px; } .avatar.lg { width: 88px; height: 88px; } .avatar.xl { width: 120px; height: 120px; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transition: all .18s var(--ease); z-index: 60; }
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a, .dropdown-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--primary-soft); text-decoration: none; }
.dropdown-menu hr { margin: 6px 0; }

/* ---- Alt gezinme (mobil, uygulamadaki yüzen çubuk) --------------------------- */
.bottom-nav { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(60, 20, 40, .10); display: flex; justify-content: space-around; align-items: stretch; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
html[data-theme="dark"] .bottom-nav { box-shadow: none; }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; padding: 6px 4px; border-radius: 16px; color: var(--muted); font-size: .72rem; font-weight: 700; transition: all .25s var(--ease); }
.bottom-nav a svg { width: 28px; height: 28px; flex: none; }
.bottom-nav a span { display: block; white-space: nowrap; line-height: 1.1; }
.bottom-nav a.active { background: var(--primary-soft); color: var(--primary); }
.bottom-nav a.active span { display: block; }
.bottom-nav a:hover { text-decoration: none; }
.bottom-nav .fab { flex: 0 0 62px; background: var(--primary); color: var(--on-primary); border-radius: 50%; width: 62px; height: 62px; min-height: 0; align-self: center; margin-top: -26px; padding: 0; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 45%, transparent); border: 4px solid var(--surface); } .bottom-nav .fab svg { width: 30px; height: 30px; }
@media (min-width: 1000px) { .bottom-nav { display: none; } }

/* ---- Düğmeler ------------------------------------------------------------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 16px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, background .2s; text-decoration: none !important; line-height: 1.2; min-height: 44px; }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 32%, transparent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: color-mix(in srgb, var(--primary) 20%, var(--surface)); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); }
.btn-sm { padding: 7px 14px; min-height: 36px; font-size: .875rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

/* ---- Kartlar -------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.card-pad { padding: 20px; }
.card-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; margin: 0 0 12px; color: var(--primary); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; border-radius: var(--r-xl); padding: 28px 22px; color: #fff; background: linear-gradient(135deg, var(--hero-0), var(--hero-1)); overflow: hidden; margin-bottom: 20px; }
.hero h1 { color: #fff; margin-bottom: 6px; } .hero p { color: rgba(255, 255, 255, .88); margin-bottom: 16px; max-width: 540px; }
.hero .sky { position: absolute; inset: 0; pointer-events: none; }
.hero .star { position: absolute; width: 10px; height: 10px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 3.6s infinite; opacity: .6; }
.hero .cloud { position: absolute; height: 36px; width: 90px; border-radius: 30px; background: rgba(255, 255, 255, .16); animation: drift 14s ease-in-out infinite alternate; }
.hero .cloud::before, .hero .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.hero .cloud::before { width: 40px; height: 40px; left: 12px; top: -18px; } .hero .cloud::after { width: 30px; height: 30px; right: 14px; top: -12px; }
.hero .baby { position: absolute; right: 12px; bottom: -8px; width: 150px; animation: float 3.2s ease-in-out infinite; }
@media (max-width: 560px) { .hero .baby { width: 96px; right: 0; opacity: .95; } }
@media (min-width: 900px) { .hero { padding: 40px 36px; } .hero .baby { width: 200px; right: 40px; } }
.hero-search { display: flex; background: #fff; border-radius: 20px; padding: 5px; max-width: 520px; box-shadow: 0 10px 28px rgba(0, 0, 0, .15); position: relative; z-index: 2; }
.hero-search input { flex: 1; border: 0; background: transparent; padding: 12px 14px; font: inherit; color: #2b2230; outline: 0; min-width: 0; }
.hero-search button { border: 0; border-radius: 16px; background: var(--primary); color: var(--on-primary); padding: 0 18px; font-weight: 700; cursor: pointer; }
html[data-theme="dark"] .hero-search { background: var(--surface); } html[data-theme="dark"] .hero-search input { color: var(--text); }

/* ---- Rozet / çip ---------------------------------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 500; font-size: .9rem; white-space: nowrap; transition: all .2s; cursor: pointer; }
.chip:hover { border-color: var(--primary-line); background: var(--primary-soft); text-decoration: none; }
.chip.active { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.chips::-webkit-scrollbar { display: none; }
.rank { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; vertical-align: middle; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.pill.warn { background: color-mix(in srgb, var(--warning) 18%, var(--surface)); color: var(--warning); }
.pill.ok { background: color-mix(in srgb, var(--success) 16%, var(--surface)); color: var(--success); }
.pill.bad { background: color-mix(in srgb, var(--danger) 16%, var(--surface)); color: var(--danger); }

/* ---- Sekmeler ------------------------------------------------------------- */
.tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { flex: 1; text-align: center; padding: 10px 14px; border-radius: 14px; color: var(--muted); font-weight: 600; background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all .2s; }
.tabs a.active, .tabs button.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow); text-decoration: none; }

/* ---- Soru listesi --------------------------------------------------------- */
.qlist > * + * { margin-top: 12px; }
.qcard { display: flex; gap: 14px; align-items: stretch; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s; color: inherit; }
.qcard:hover { transform: translateY(-2px); border-color: var(--primary-line); text-decoration: none; }
.qcount { flex: none; width: 62px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); font-weight: 700; line-height: 1.1; }
.qcount.has { background: var(--primary-soft); color: var(--primary); }
.qcount b { font-size: 1.35rem; } .qcount small { font-size: .68rem; font-weight: 600; opacity: .85; }
.qbody { min-width: 0; flex: 1; }
.qtitle { font-weight: 700; font-size: 1.02rem; color: var(--text); margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qmeta { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.qmeta a { color: var(--muted); } .qmeta a:hover { color: var(--primary); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .em { font-size: 3rem; display: block; margin-bottom: 8px; animation: float 3s ease-in-out infinite; }

/* ---- Kategori karoları ---------------------------------------------------- */
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-tile { display: block; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: transform .2s var(--ease), border-color .2s; position: relative; overflow: hidden; }
.cat-tile:hover { transform: translateY(-3px); border-color: var(--primary-line); text-decoration: none; }
.cat-tile .em { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.cat-tile b { display: block; line-height: 1.25; } .cat-tile small { color: var(--muted); }

/* ---- Blog ----------------------------------------------------------------- */
.post-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid.wide { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; color: var(--text); transition: transform .2s var(--ease); height: 100%; }
.post-card:hover { transform: translateY(-3px); text-decoration: none; }
.post-card .thumb { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--hero-0), var(--hero-1)); overflow: hidden; display: grid; place-items: center; font-size: 3rem; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .info { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.post-card h3 { margin: 0; font-size: 1.1rem; }
.post-card p { margin: 0; color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Yazı içeriği --------------------------------------------------------- */
.prose { font-size: 1.04rem; line-height: 1.75; overflow-wrap: anywhere; }
.prose img { border-radius: var(--r-md); margin: 12px 0; } .prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--primary); background: var(--primary-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; } .prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose iframe { max-width: 100%; border-radius: var(--r-md); }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin-top: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); cursor: zoom-in; transition: transform .25s var(--ease); }
.gallery img:hover { transform: scale(1.03); }

/* ---- Cevap ---------------------------------------------------------------- */
.answer { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.answer:last-child { border-bottom: 0; }
.answer.mine { background: linear-gradient(90deg, var(--primary-soft), transparent); margin: 0 -20px; padding: 16px 20px; }
.answer .who { font-weight: 700; color: var(--text); }
.ai-badge { background: var(--primary-soft); color: var(--primary); }
.ai-notice { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-s, 12px); border: 1px dashed var(--primary-line); background: var(--primary-soft); color: var(--text); font-size: .82rem; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.act:hover { color: var(--primary); border-color: var(--primary-line); }
.act.on { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-line); }
.act.on svg { animation: pop .4s var(--ease); } .act svg { width: 16px; height: 16px; }

/* ---- Formlar -------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.input, .textarea, .select { width: 100%; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; min-height: 48px; }
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr; } @media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.alert { padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 14px; border: 1px solid transparent; font-size: .95rem; animation: slideIn .35s var(--ease); }
.alert.success { background: color-mix(in srgb, var(--success) 12%, var(--surface)); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, var(--surface)); }
.alert.error, .alert.danger { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--surface)); }
.alert.warning { background: color-mix(in srgb, var(--warning) 12%, var(--surface)); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 30%, var(--surface)); }
.alert.info { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-line); }

/* ---- Görsel yükleme ------------------------------------------------------- */
.uploader { border: 2px dashed var(--primary-line); border-radius: var(--r-lg); padding: 18px; text-align: center; background: var(--primary-soft); transition: all .2s; cursor: pointer; display: block; }
.uploader:hover, .uploader.drag { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 18%, var(--surface)); }
.uploader input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.uploader .big { font-size: 2rem; display: block; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs .t { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); animation: pop .35s var(--ease); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.thumbs .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--primary); width: 0; transition: width .2s; }

/* ---- Sayfalama ------------------------------------------------------------ */
.pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 22px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.pager a:hover { border-color: var(--primary-line); text-decoration: none; background: var(--primary-soft); }
.pager .cur { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.pager .dots { background: none; border: 0; }

/* ---- Profil --------------------------------------------------------------- */
.profile-head { text-align: center; padding: 8px 0 18px; } .profile-head .avatar { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--primary-line); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.stat { background: var(--primary-soft); border-radius: var(--r-md); padding: 12px 6px; text-align: center; } .stat b { display: block; font-size: 1.2rem; color: var(--primary); } .stat small { color: var(--muted); }
.member-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.member { text-align: center; padding: 16px 10px; color: var(--text); display: block; transition: transform .2s var(--ease); } .member:hover { transform: translateY(-3px); text-decoration: none; }

/* ---- Mesajlaşma ----------------------------------------------------------- */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 20px; background: var(--surface-2); border-bottom-left-radius: 6px; overflow-wrap: anywhere; animation: slideIn .3s var(--ease); }
.bubble.me { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-bottom-left-radius: 20px; border-bottom-right-radius: 6px; }
.bubble time { display: block; font-size: .7rem; opacity: .7; margin-top: 2px; }
.chat-form { position: sticky; bottom: calc(var(--bottom-h) + 8px); display: flex; gap: 8px; background: var(--surface); padding: 10px; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 1000px) { .chat-form { bottom: 12px; } }
.list-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; color: var(--text); border-bottom: 1px solid var(--line); transition: background .2s; }
.list-item:last-child { border-bottom: 0; } .list-item:hover { background: var(--primary-soft); text-decoration: none; }
.list-item.unread { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); border-left: 3px solid var(--primary); }

/* ---- Reklam --------------------------------------------------------------- */
.ad-slot { margin: 16px 0; text-align: center; min-height: 50px; overflow: hidden; }
.ad-label { display: block; font-size: .65rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }

/* ---- Alt bilgi ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 calc(var(--bottom-h) + 30px); color: var(--muted); font-size: .9rem; }
@media (min-width: 1000px) { .site-footer { padding-bottom: 32px; } }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.site-footer a { color: var(--muted); } .site-footer a:hover { color: var(--primary); }

/* ---- Toast / modal / ilerleme --------------------------------------------- */
.toasts { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom-h) + 24px); display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(420px, calc(100% - 24px)); pointer-events: none; }
@media (min-width: 1000px) { .toasts { bottom: 28px; } }
.toast { background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 16px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: toastIn .35s var(--ease); pointer-events: auto; }
.toast.error { background: var(--danger); color: #fff; } .toast.success { background: var(--success); color: #fff; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .88); z-index: 120; display: none; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: grid; animation: fade .2s; } .lightbox img { max-width: 100%; max-height: 92vh; border-radius: 12px; }
.topbar-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--primary); z-index: 200; transition: width .3s; }

/* ---- Uygulama (WebView) modu: yerel uygulamaya entegre görünüm ---------------- */
html.is-app .topbar, html.is-app .bottom-nav, html.is-app .site-footer, html.is-app .ad-slot { display: none !important; }
html.is-app .page { padding-top: 12px; padding-bottom: 110px; }
html.is-app .grid-main { grid-template-columns: minmax(0, 1fr); } html.is-app .sidebar { display: none; }
html.is-app .toasts { bottom: 110px; } html.is-app .chat-form { bottom: 100px; }
html.is-app body { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
html.is-app .prose, html.is-app .input, html.is-app .textarea { -webkit-user-select: text; user-select: text; }

/* ---- Animasyonlar --------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } 45% { transform: scale(1.14); } }
@keyframes float { 0%, 100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: .9; transform: scale(1.1); } }
@keyframes drift { from { transform: translateX(-14px); } to { transform: translateX(18px); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-md); min-height: 78px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } }

/* ---- Ana sayfa: hızlı soru, işlem kutucukları, konular ---- */
.quick-ask { position: relative; z-index: 2; max-width: 620px; background: #fff; border-radius: 22px; padding: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.quick-ask > input { width: 100%; border: 0; background: transparent; padding: 14px 14px 10px; font: inherit; font-size: 1.05rem; color: #2b2230; outline: 0; }
.quick-ask .qa-row { display: flex; gap: 8px; padding: 4px; }
.quick-ask select { flex: 1; min-width: 0; border: 1px solid #eadfe8; border-radius: 14px; background: #faf6fa; color: #2b2230; font: inherit; font-size: .9rem; padding: 0 10px; height: 46px; }
.quick-ask button { border: 0; border-radius: 14px; background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 800; padding: 0 20px; height: 46px; cursor: pointer; white-space: nowrap; }
html[data-theme="dark"] .quick-ask { background: var(--surface); } html[data-theme="dark"] .quick-ask > input { color: var(--text); }
html[data-theme="dark"] .quick-ask select { background: var(--surface-2); color: var(--text); border-color: var(--line); }
@media (max-width: 560px) { .quick-ask { max-width: none; } .quick-ask .qa-row { flex-direction: column; } .hero .baby { display: none; } }
.act-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .act-grid { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 1000px) { .act-grid { grid-template-columns: repeat(6, 1fr); } }
.act-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--r-l, 18px); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: transform .2s, border-color .2s, box-shadow .2s; }
.act-tile:hover { transform: translateY(-3px); border-color: var(--primary-line); box-shadow: var(--shadow-m, 0 8px 22px rgba(0, 0, 0, .08)); text-decoration: none; }
.act-tile .em { font-size: 1.8rem; line-height: 1.2; } .act-tile b { font-size: 1rem; } .act-tile small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.topic-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
@media (min-width: 640px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1000px) { .topic-grid { grid-template-columns: repeat(3, 1fr); } }
.topic { padding: 14px; border-radius: var(--r-l, 18px); background: var(--surface); border: 1px solid var(--line); }
.topic-h { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.05rem; } .topic-h:hover { text-decoration: none; color: var(--primary); }
.topic-h .em { font-size: 1.6rem; }
.topic-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.topic-sub a { padding: 4px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .8rem; font-weight: 600; } .topic-sub a:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; }

/* ---- Gebelik araçları ---- */
.preg-card { background: linear-gradient(160deg, var(--primary-soft), var(--surface) 55%); }
.preg-top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.preg-week { width: 112px; height: 112px; border-radius: 50%; background: linear-gradient(135deg, var(--hero-0), var(--hero-1)); color: #fff; display: grid; place-content: center; text-align: center; flex: none; box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 35%, transparent); }
.preg-week b { font-size: 2.5rem; line-height: 1; font-weight: 800; } .preg-week span { font-size: .85rem; margin-top: -2px; } .preg-week small { opacity: .85; }
.pbar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 8px; } .pbar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--hero-0), var(--hero-1)); transition: width .8s ease; }
.preg-baby { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); } .preg-baby .em { font-size: 2.2rem; }
.preg-save { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.weeks-grid { display: grid; gap: 10px; grid-template-columns: 1fr; } @media (min-width: 720px) { .weeks-grid { grid-template-columns: 1fr 1fr; } }
.week-card { display: flex; gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.week-card.now { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.week-card .wk { width: 54px; height: 54px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); display: grid; place-content: center; text-align: center; flex: none; } .week-card .wk b { font-size: 1.4rem; line-height: 1; } .week-card .wk small { font-size: .65rem; }
.tool-grid { display: grid; gap: 10px; grid-template-columns: 1fr; } @media (min-width: 720px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
.tool-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: transform .2s, border-color .2s; }
.tool-card:hover { transform: translateY(-2px); border-color: var(--primary-line); text-decoration: none; } .tool-card .em { font-size: 2rem; } .tool-card small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.chart { width: 100%; height: auto; margin-top: 8px; }
.kick-btn { width: 180px; height: 180px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--hero-0), var(--hero-1)); color: #fff; font: inherit; display: inline-grid; place-content: center; box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) 38%, transparent); transition: transform .12s; -webkit-tap-highlight-color: transparent; user-select: none; }
.kick-btn:active { transform: scale(.94); } .kick-btn span { font-size: 3.6rem; font-weight: 800; line-height: 1; } .kick-btn small { opacity: .85; }
.bag-row { margin: 0; } .bag-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.bag-item .box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-content: center; flex: none; font-weight: 800; color: #fff; }
.bag-item.on .box { background: var(--primary); border-color: var(--primary); } .bag-item.on span:last-child { text-decoration: line-through; color: var(--muted); }
.fav-on svg { color: var(--danger); fill: var(--danger); }

/* ---- Profil ---- */
.profile-card { padding: 0; overflow: visible; }
.profile-cover { height: 96px; border-radius: var(--r-l, 20px) var(--r-l, 20px) 0 0; background: linear-gradient(135deg, var(--hero-0), var(--hero-1)); }
.profile-body { padding: 0 20px 20px; margin-top: -44px; }
.profile-av { width: 88px; height: 88px; border: 4px solid var(--surface); box-shadow: var(--shadow); }
.profile-id { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 8px 0 2px; }
.profile-id h1 { margin: 0; font-size: 1.5rem; }
.profile-about { margin: 6px 0 10px; color: var(--text); max-width: 560px; }
.profile-stats { margin: 14px 0 0; }
.profile-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.more-menu { position: relative; margin-left: auto; }
.more-menu summary { list-style: none; cursor: pointer; font-size: 1.4rem; line-height: 1; display: grid; place-content: center; color: var(--muted); }
.more-menu summary::-webkit-details-marker { display: none; }
.more-pop { position: absolute; right: 0; top: 100%; z-index: 20; min-width: 150px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.more-pop button { width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 10px; font: inherit; font-size: .9rem; color: var(--muted); cursor: pointer; }
.more-pop button:hover { background: var(--surface-2); color: var(--danger); }
.profile-preg { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, var(--primary-soft), var(--surface-2)); color: var(--text); }
.profile-preg:hover { text-decoration: none; filter: brightness(.98); }
.profile-preg .em { font-size: 2rem; } .profile-preg div { flex: 1; } .profile-preg b { display: block; } .profile-preg small { color: var(--muted); } .profile-preg .go { font-size: 1.6rem; color: var(--primary); }
.profile-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.profile-links a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 16px; background: var(--surface-2); color: var(--text); font-size: .78rem; font-weight: 700; }
.profile-links a:hover { background: var(--primary-soft); color: var(--primary); text-decoration: none; } .profile-links svg { width: 24px; height: 24px; }

/* ---- Dar soru çubuğu (ana sayfa) ---- */
.ask-slim { display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 0 auto 18px; padding: 5px 5px 5px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 4px 16px rgba(0, 0, 0, .06); }
.ask-slim:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ask-slim .as-ico { font-size: 1.1rem; }
.ask-slim input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--text); outline: 0; padding: 9px 2px; }
.ask-slim button { border: 0; border-radius: 999px; background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 800; font-size: .9rem; padding: 0 20px; height: 38px; cursor: pointer; }
/* ---- Uygulama: konular tek ekranda ---- */
.kt-wrap { display: grid; gap: 12px; padding-bottom: 8px; }
.kt { border-radius: 20px; padding: 12px; border: 1px solid var(--line); background: var(--surface); }
.kt-0 { --kt: #e0568a; } .kt-1 { --kt: #3a8fd9; } .kt-2 { --kt: #8a5cd6; }
.kt-h { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; color: #fff; background: var(--kt); }
.kt-h:hover { text-decoration: none; color: #fff; }
.kt-h .em { font-size: 1.4rem; } .kt-h b { flex: 1; font-size: 1.02rem; } .kt-all { font-size: .8rem; opacity: .9; }
.kt-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.kt-list a { padding: 7px 12px; border-radius: 12px; font-size: .86rem; font-weight: 600; color: var(--text); background: color-mix(in srgb, var(--kt) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--kt) 25%, var(--line)); }
.kt-list a:active { background: color-mix(in srgb, var(--kt) 25%, var(--surface)); }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #3c4043; border: 1px solid #dadce0; min-height: 44px; border-radius: 999px; font-weight: 700; }
html[data-theme="dark"] .btn-google { background: #131314; color: #e3e3e3; border-color: #5f6368; }

/* Profil: masaüstünde ortalı tek sütun */
.profile-center { max-width: 820px; margin-left: auto; margin-right: auto; }
@media (min-width: 1000px) { .grid-main.profile-center { grid-template-columns: minmax(0, 1fr); } }
/* Uygulama: konular ve sekmeler dar ekrana tamamen sığar */
.topic-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 10px; }
.topic-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 3px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-align: center; min-height: 62px; }
.topic-nav a:first-child { background: var(--primary-soft); border-color: var(--primary-line); }
.topic-nav .em { font-size: 1.25rem; line-height: 1; }
.topic-nav b { font-size: .68rem; font-weight: 700; line-height: 1.15; }
.is-app .tabs { gap: 3px; padding: 3px; border-radius: 14px; overflow: visible; margin-bottom: 10px !important; }
.is-app .tabs a { padding: 8px 2px; font-size: .78rem; border-radius: 11px; }
.is-app .qlist > * + * { margin-top: 7px; }
.is-app .qcard { gap: 10px; padding: 9px 11px; border-radius: 16px; box-shadow: none; }
.is-app .qcount { width: 44px; border-radius: 12px; } .is-app .qcount b { font-size: 1.05rem; } .is-app .qcount small { font-size: .6rem; }
.is-app .qtitle { font-size: .92rem; margin-bottom: 3px; }
.is-app .qmeta { font-size: .72rem; gap: 2px 8px; } .is-app .qmeta .rank, .is-app .qmeta .rank-badge { display: none; }
