/* ==========================================================
   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:    #8a8fa8;
    --line:     #eee8ef;
    --white:    #ffffff;

    /* Ton paleti (kategoriler) */
    --tone-pink-bg: #ffe8ec;   --tone-pink-fg: #f0586b;
    --tone-blue-bg: #e4f0ff;   --tone-blue-fg: #3b7fd4;
    --tone-peach-bg: #fff0e1;  --tone-peach-fg: #e58a3c;
    --tone-lilac-bg: #efeaff;  --tone-lilac-fg: #7b62d6;
    --tone-mint-bg: #e3f6ef;   --tone-mint-fg: #2a9d79;
    --tone-yellow-bg: #fff6d9; --tone-yellow-fg: #d39a12;
    --tone-red-bg: #ffe5e5;    --tone-red-fg: #e04848;
    --tone-coral-bg: #ffece6;  --tone-coral-fg: #ea6a4b;

    --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;
}

/* Ton sınıfları: --tone-bg / --tone-fg değişkenlerini ayarlar */
.tone-pink   { --tone-bg: var(--tone-pink-bg);   --tone-fg: var(--tone-pink-fg); }
.tone-blue   { --tone-bg: var(--tone-blue-bg);   --tone-fg: var(--tone-blue-fg); }
.tone-peach  { --tone-bg: var(--tone-peach-bg);  --tone-fg: var(--tone-peach-fg); }
.tone-lilac  { --tone-bg: var(--tone-lilac-bg);  --tone-fg: var(--tone-lilac-fg); }
.tone-mint   { --tone-bg: var(--tone-mint-bg);   --tone-fg: var(--tone-mint-fg); }
.tone-yellow { --tone-bg: var(--tone-yellow-bg); --tone-fg: var(--tone-yellow-fg); }
.tone-red    { --tone-bg: var(--tone-red-bg);    --tone-fg: var(--tone-red-fg); }
.tone-coral  { --tone-bg: var(--tone-coral-bg);  --tone-fg: var(--tone-coral-fg); }

/* ---------- 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__icon { width: 19px; height: 19px; color: var(--tone-fg, var(--pink-500)); }
.main-nav__link::after {
    content: ""; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 3px; border-radius: 3px;
    background: var(--pink-500); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav__link:hover { color: var(--pink-500); }
.main-nav__link:hover::after, .main-nav__link.is-active::after { transform: scaleX(1); }
.main-nav__link.is-active { color: var(--pink-600); }

/* ---------- 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); }
