/* ==========================================================
   Bebek Rehberi — Temel stil: değişkenler, tipografi, yerleşim,
   üst alan, navigasyon, hero ve alt alan
   ========================================================== */

:root {
    /* Marka renkleri */
    --pink-500: #f8606f;
    --pink-600: #e94a5b;
    --pink-100: #ffe6e8;
    --pink-50:  #fff3f4;
    --blue-500: #3b7fd4;
    --blue-600: #2c68b5;
    --blue-100: #e3efff;
    --blue-50:  #f2f7ff;
    --cream:    #fff8f1;
    --cream-2:  #fdf1e6;
    --ink:      #2c3150;
    --ink-soft: #5d6380;
    --muted:    #737894;
    --line:     #eee8ef;
    --white:    #ffffff;

    /* Ton paleti (kategoriler) — fg değerleri beyaz/açık zeminde ≥4.5:1 */
    --tone-pink-bg: #ffe3ec;   --tone-pink-fg: #d6246e;
    --tone-blue-bg: #dcecff;   --tone-blue-fg: #1d6fd8;
    --tone-peach-bg: #ffecd6;  --tone-peach-fg: #c05600;
    --tone-lilac-bg: #ece4ff;  --tone-lilac-fg: #7c3aed;
    --tone-mint-bg: #d5f7f0;   --tone-mint-fg: #0b7d72;
    --tone-yellow-bg: #fff3c4; --tone-yellow-fg: #a86400;
    --tone-red-bg: #ffe1e6;    --tone-red-fg: #d61f45;
    --tone-coral-bg: #ffe6dc;  --tone-coral-fg: #c2410c;
    --tone-teal-bg: #d9f5ec;   --tone-teal-fg: #087a54;
    --brand-grad: linear-gradient(135deg, #ff5c8d 0%, #e6187a 100%);
    --meta: #5f6582; /* bilgi satırı (tarih/okunma/yorum) — soluk değil */

    --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Baloo 2", "Nunito", system-ui, sans-serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(44, 49, 80, .06);
    --shadow: 0 10px 30px rgba(44, 49, 80, .08);
    --shadow-lg: 0 18px 44px rgba(44, 49, 80, .12);
    --ease: cubic-bezier(.22, .8, .3, 1);
    --container: 1200px;
}

/* ==========================================================
   Kategori renk sistemi (tek kaynak)
   --tone-bg     : açık zemin (ikon kutusu, kart arka planı)
   --tone-soft   : çok açık zemin
   --tone-fg     : erişilebilir koyu ton (metin, etiket, buton; beyaz metinle ≥4.5:1)
   --tone-bright : canlı ton (ikon, süs, renk geçişleri)
   ========================================================== */
.tone-pink   { --tone-bg: #ffe3ec; --tone-soft: #fff4f7; --tone-fg: #d6246e; --tone-bright: #ff4f8b; }
.tone-coral  { --tone-bg: #ffe6dc; --tone-soft: #fff5f1; --tone-fg: #c2410c; --tone-bright: #ff6b4a; }
.tone-blue   { --tone-bg: #dcecff; --tone-soft: #f2f8ff; --tone-fg: #1d6fd8; --tone-bright: #3b8cff; }
.tone-peach  { --tone-bg: #ffecd6; --tone-soft: #fff8ef; --tone-fg: #c05600; --tone-bright: #ff8a00; }
.tone-lilac  { --tone-bg: #ece4ff; --tone-soft: #f8f5ff; --tone-fg: #7c3aed; --tone-bright: #9b6bff; }
.tone-mint   { --tone-bg: #d5f7f0; --tone-soft: #effcf9; --tone-fg: #0b7d72; --tone-bright: #14b8a6; }
.tone-yellow { --tone-bg: #fff3c4; --tone-soft: #fffbea; --tone-fg: #a86400; --tone-bright: #f5b400; }
.tone-teal   { --tone-bg: #d9f5ec; --tone-soft: #effbf6; --tone-fg: #087a54; --tone-bright: #10b981; }
.tone-red    { --tone-bg: #ffe1e6; --tone-soft: #fff4f6; --tone-fg: #d61f45; --tone-bright: #f43f5e; }

/* ---------- Sıfırlama ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--pink-500); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid rgba(59, 127, 212, .45); outline-offset: 2px; border-radius: 6px; }
main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 1rem; top: -60px; z-index: 100;
    background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* İkonlar */
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon--xs { width: 16px; height: 16px; }
.icon--sm { width: 20px; height: 20px; }
.icon--xl { width: 56px; height: 56px; }

/* ---------- Yerleşim ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }
.section { padding: 56px 0; }
.section--tight { padding: 28px 0; }
.section--soft { background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); }

.section-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.section-head__icon { color: var(--blue-500); display: grid; place-items: center; }
.section-head__icon .icon { width: 40px; height: 40px; stroke-width: 1.6; }
.section-head__text { flex: 1; min-width: 0; }
.section-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); margin: 0; }
.section-subtitle { margin: 2px 0 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Üst alan ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.site-header__top { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }

.brand { display: flex; align-items: center; gap: 10px; color: inherit; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand__logo { width: 64px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.85rem; color: var(--pink-500); letter-spacing: -.01em; }
.brand__tagline { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }

.search-box { position: relative; flex: 1; max-width: 420px; margin-left: auto; margin-right: auto; display: flex; align-items: center; }
.search-box__icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; display: flex; }
.search-box__icon .icon { width: 18px; height: 18px; }
.search-box__input {
    width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 999px;
    background: #fafafc; padding: 0 64px 0 44px; font-size: .95rem;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.search-box__input::placeholder { color: var(--muted); }
.search-box__input:focus { outline: none; border-color: #ffc2c8; background: #fff; box-shadow: 0 0 0 4px var(--pink-50); }
.search-box__input::-webkit-search-cancel-button { display: none; }
.search-box__btn {
    position: absolute; right: 4px; height: 40px; width: 52px; border: 0; border-radius: 999px; cursor: pointer;
    background: linear-gradient(135deg, #ff7a86, var(--pink-500)); color: #fff; display: grid; place-items: center;
    transition: transform .2s var(--ease), box-shadow .2s;
}
.search-box__btn:hover { transform: scale(1.05); box-shadow: 0 6px 16px rgba(248, 96, 111, .35); }
.search-box__btn .icon { width: 20px; height: 20px; }

.user-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.user-actions__item { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); font-size: .78rem; font-weight: 700; }
.user-actions__item:hover { color: var(--pink-500); }
.user-actions__icon { position: relative; display: flex; }
.user-actions__icon .icon { width: 24px; height: 24px; }
.badge {
    position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--pink-500); color: #fff; font-size: .68rem; line-height: 18px; text-align: center;
}

.icon-btn { border: 0; background: transparent; padding: 8px; border-radius: 10px; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.icon-btn:hover { background: var(--pink-50); }
.nav-toggle { display: none; }

/* ---------- Ana navigasyon ---------- */
.main-nav { background: linear-gradient(90deg, #fff6ef, #fff2f3 50%, #f4f8ff); border-top: 1px solid var(--line); }
.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 4px; }
.main-nav__link {
    display: flex; align-items: center; gap: 7px; padding: 14px 6px; position: relative;
    font-size: .84rem; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.main-nav__ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--tone-bg, var(--tone-pink-bg)); flex-shrink: 0; }
.main-nav__ico img { width: 22px; height: 22px; display: block; }
.main-nav__icon { width: 18px; height: 18px; color: var(--tone-fg, var(--tone-pink-fg)); stroke-width: 2; }
.main-nav__link::after {
    content: ""; position: absolute; left: 6px; right: 6px; bottom: 4px; height: 3px; border-radius: 3px;
    background: var(--brand-grad); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav__link:hover { color: var(--tone-pink-fg); }
.main-nav__link:hover::after, .main-nav__link.is-active::after { transform: scaleX(1); }
.main-nav__link.is-active { color: var(--tone-pink-fg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(circle at 12% 30%, rgba(255, 220, 200, .55), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(210, 228, 255, .7), transparent 45%),
        linear-gradient(110deg, #fff4ea 0%, #fff7f2 45%, #fdeee9 100%);
}
.hero__decor {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, .9) 0 3px, transparent 4px),
        radial-gradient(circle, rgba(255, 200, 120, .5) 0 2px, transparent 3px);
    background-size: 140px 120px, 210px 170px;
    background-position: 20px 30px, 90px 60px;
    opacity: .6;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px; min-height: 380px; }
.hero__content { padding: 44px 0 44px 60px; }
.hero__title { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4rem); line-height: 1.02; margin-bottom: 18px; font-weight: 800; letter-spacing: -.01em; }
.hero__title-1 { display: block; color: var(--pink-500); }
.hero__title-2 { display: block; color: var(--blue-500); }
.hero__text { font-size: 1.08rem; max-width: 30em; color: var(--ink); margin-bottom: 24px; }
.hero__visual { position: relative; align-self: end; }
.hero__visual img { width: 100%; max-height: 420px; object-fit: contain; object-position: bottom center; }
.hero__note {
    position: absolute; right: 2%; top: 22%; margin: 0;
    font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; font-size: 1.5rem; line-height: 1.15;
    color: #4f5578; transform: rotate(-6deg);
}
.hero__note .icon { display: inline-block; vertical-align: middle; color: var(--pink-500); }

/* ---------- Bülten ---------- */
.newsletter { background: linear-gradient(110deg, var(--blue-50), var(--pink-50)); padding: 34px 0; margin-top: 30px; }
.newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.newsletter__text { display: flex; gap: 16px; align-items: center; max-width: 560px; }
.newsletter__text p { margin: 0; color: var(--ink-soft); }
.newsletter__icon { width: 56px; height: 56px; border-radius: 18px; background: #fff; display: grid; place-items: center; color: var(--pink-500); box-shadow: var(--shadow-sm); flex-shrink: 0; }
.newsletter__title { font-size: 1.35rem; margin: 0 0 2px; }
.newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; max-width: 480px; position: relative; }
.newsletter__form input[type=email] {
    flex: 1; min-width: 200px; height: 50px; border: 1px solid var(--line); border-radius: 999px; padding: 0 20px; background: #fff;
}
.newsletter__form input[type=email]:focus { outline: none; border-color: #ffc2c8; box-shadow: 0 0 0 4px var(--pink-50); }
.newsletter__msg { flex-basis: 100%; margin: 0; font-size: .9rem; min-height: 1.2em; font-weight: 700; }
.newsletter__msg.is-error { color: var(--tone-red-fg); }
.newsletter__msg.is-success { color: var(--tone-mint-fg); }

/* ---------- Alt alan ---------- */
.site-footer { background: #fbf8fb; border-top: 1px solid var(--line); font-size: .93rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 48px; padding-bottom: 36px; }
.site-footer__about p { color: var(--ink-soft); }
.brand--footer { margin-bottom: 12px; }
.brand--footer .brand__logo { width: 52px; }
.brand--footer .brand__name { font-size: 1.5rem; }
.site-footer__note { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; background: #fff; border: 1px dashed #f2c9cf; border-radius: var(--radius-sm); padding: 10px 12px; }
.site-footer__note .icon { color: var(--tone-mint-fg); width: 20px; height: 20px; margin-top: 2px; }
.site-footer__title { font-size: 1.05rem; margin-bottom: 12px; }
.site-footer__links, .site-footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__links a { color: var(--ink-soft); }
.site-footer__links a:hover { color: var(--pink-500); }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.site-footer__contact .icon { color: var(--pink-500); width: 19px; height: 19px; margin-top: 3px; }
.site-footer__contact a { color: var(--ink-soft); word-break: break-word; }
.site-footer__bottom { border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: .85rem; }
.site-footer__bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer__bottom p { margin: 0; display: flex; align-items: center; gap: 6px; }
.site-footer__bottom .icon { color: var(--pink-500); fill: currentColor; }
.social-links { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: .82rem; }
.social-links a:hover { border-color: var(--pink-500); color: var(--pink-600); }

/* ==========================================================
   Başlık (dergi düzeni): menü butonu — ortada logo — arama
   ========================================================== */
.site-header__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand--center { justify-self: center; }
.header-tools { justify-self: end; display: flex; align-items: center; gap: 10px; }
.round-btn {
    position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center;
    cursor: pointer; flex-shrink: 0; -webkit-tap-highlight-color: transparent;
    transition: transform .18s var(--ease), box-shadow .18s, background-color .18s, color .18s, border-color .18s;
}
.round-btn .icon { width: 22px; height: 22px; stroke-width: 2; }
.round-btn:hover { transform: translateY(-1px); }
.round-btn:active { transform: scale(.94); }
.round-btn:focus-visible { outline: 3px solid #ffb3cc; outline-offset: 2px; }
/* Dolu marka butonu (menü, hesap) */
.round-btn--brand { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 16px rgba(230, 24, 122, .28); }
.round-btn--brand:hover { color: #fff; box-shadow: 0 8px 20px rgba(230, 24, 122, .36); }
/* Çerçeveli buton (arama, favoriler) */
.round-btn--outline { background: #fff; color: var(--tone-pink-fg); border: 2px solid #ffc7da; box-shadow: 0 2px 8px rgba(214, 36, 110, .08); }
.round-btn--outline:hover { background: var(--tone-pink-bg); border-color: #ff9dbf; color: var(--tone-pink-fg); }
.round-btn--outline[aria-expanded="true"] { background: var(--tone-pink-fg); border-color: var(--tone-pink-fg); color: #fff; }
.round-btn--ghost { background: var(--tone-pink-bg); color: var(--tone-pink-fg); }
.round-btn--ghost:hover { color: var(--tone-pink-fg); }
.round-btn .badge { top: -4px; right: -4px; background: var(--tone-pink-fg); border: 2px solid #fff; height: 20px; line-height: 16px; }
.nav-toggle { display: grid; justify-self: start; }
.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 12px 0; }
.search-panel .search-box { max-width: 720px; margin: 0 auto; }
.search-panel[hidden] { display: none; }
.main-nav__list { justify-content: center; gap: 0 6px; flex-wrap: wrap; }

/* Yan menü */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(31, 42, 90, .4); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: #fff; overflow-y: auto; transform: translateX(-102%); transition: transform .25s var(--ease); box-shadow: 10px 0 40px rgba(31, 42, 90, .15); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
body.drawer-open { overflow: hidden; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: linear-gradient(135deg, #ff6b8e, #f43f6e); color: #fff; }
.drawer__title { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .04em; }
.drawer__head .round-btn { width: 38px; height: 38px; background: rgba(255, 255, 255, .2); color: #fff; }
.drawer__list, .drawer__links { list-style: none; margin: 0; padding: 8px 0; }
.drawer__list a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--ink); font-weight: 700; border-bottom: 1px solid #f6eef1; }
.drawer__list a:hover { background: var(--pink-50); color: var(--pink-600); }
.drawer__list em { margin-left: auto; font-style: normal; font-size: .75rem; color: var(--muted); background: #f6f2f5; border-radius: 99px; padding: 1px 8px; }
.drawer__ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--tone-bg, var(--pink-50)); color: var(--tone-fg, var(--pink-500)); flex-shrink: 0; }
.drawer__ico img { width: 28px; height: 28px; }
.drawer__ico .icon { stroke-width: 2; }
.drawer__links { padding: 10px 16px 24px; display: grid; gap: 8px; }
.drawer__links a { color: var(--ink-soft); font-weight: 600; font-size: .92rem; }

/* Yönetici araç çubuğu (yalnızca giriş yapmış yöneticiye görünür) */
.admin-bar { background: #1f2a5a; color: #fff; font-size: .82rem; font-weight: 700; position: relative; z-index: 60; }
.admin-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding-top: 7px; padding-bottom: 7px; }
.admin-bar a, .admin-bar button { display: inline-flex; align-items: center; gap: 6px; color: #fff; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.admin-bar a:hover, .admin-bar button:hover { color: #ffb3c6; }
.admin-bar__warn { color: #ffd23f !important; }
.admin-bar__logout { margin: 0 0 0 auto; }
.site-logo { display: block; height: 62px; width: auto; }
.site-logo--footer { height: 56px; margin-bottom: 10px; }
.brand--center { display: block; }
.site-footer__admin { color: var(--muted); font-weight: 600; }
.site-footer__admin:hover { color: var(--pink-500); }
@media (max-width: 860px) { .site-logo { height: 50px; } }
@media (max-width: 400px) { .site-logo { height: 42px; } }
.site-logo { height: 78px; }
.main-nav__list { gap: 0 2px; }
.main-nav__list { gap: 0; flex-wrap: nowrap; }
.main-nav__link { font-size: .79rem; gap: 5px; padding: 10px 5px; }
.main-nav__ico { width: 24px; height: 24px; border-radius: 8px; }
.main-nav__ico img { width: 19px; height: 19px; }
.main-nav__icon { width: 15px; height: 15px; }
.main-nav__link:focus-visible { outline: 3px solid #ffb3cc; outline-offset: -2px; border-radius: 10px; }
@media (max-width: 1240px) { .main-nav__ico { display: none; } }
@media (max-width: 860px) { .site-logo { height: 54px; } }
@media (max-width: 400px) { .site-logo { height: 44px; } }
@media (max-width: 1100px) { .main-nav { display: none; } }

