/* Rxİlacım — tek stil dosyası. Renkler eczanet.com paletinden, afişteki mavi/lacivert ile birleştirildi. */
:root {
  --bg: #ffffff;
  --bg-soft: #eef5fd;
  --bg-hero: linear-gradient(180deg, #dcecfc 0%, #eef6ff 60%, #ffffff 100%);
  --text: #0f2447;
  --muted: #4d5f7d;
  --accent: #c1272d;
  --accent-soft: #fdf1f1;
  --accent-text: #a51f25;
  --navy: #14336b;
  --border: #d3e2f4;
  --blue: #1f5fbf;
  --blue-soft: #e3effc;
  --card: #ffffff;
  --shadow: 0 8px 28px rgba(31, 95, 191, .12);
  --logo-blend: multiply;
  --radius: 18px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111317;
  --bg-soft: #15181d;
  --bg-hero: linear-gradient(180deg, #151c2b 0%, #12161e 70%, #111317 100%);
  --text: #eaf0fb;
  --muted: #a3b0c7;
  --accent: #ef5b61;
  --accent-soft: #2a1a1c;
  --accent-text: #ff8a8f;
  --navy: #9db8ee;
  --border: #2a2f37;
  --card: #181c22;
  --blue: #7fb0f5;
  --blue-soft: #1c2a44;
  --shadow: 0 8px 28px rgba(0, 0, 0, .4);
  --logo-blend: normal;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317; --bg-soft: #15181d;
    --bg-hero: linear-gradient(180deg, #151c2b 0%, #12161e 70%, #111317 100%);
    --text: #eaf0fb; --muted: #a3b0c7; --accent: #ef5b61; --accent-soft: #2a1a1c;
    --accent-text: #ff8a8f; --navy: #9db8ee; --border: #2a2f37; --card: #181c22; --blue: #7fb0f5; --blue-soft: #1c2a44;
    --shadow: 0 8px 28px rgba(0, 0, 0, .4); --logo-blend: normal; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent-text); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 99; }

/* Üst bar */
.topbar {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .flogo { background: #eaf3fd; border-radius: 10px; padding: 2px 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img, :root:not([data-theme="light"]) .flogo { background: #eaf3fd; border-radius: 10px; padding: 2px 8px; } }
.nav { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
.theme-btn {
  border: 1px solid var(--border); background: var(--card); color: var(--text); width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1;
}
@media (max-width: 760px) {
  .topbar .wrap { flex-wrap: wrap; padding-block: 8px; gap: 8px 12px; }
  .nav { order: 3; margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 6px 10px; font-size: .9rem; }
  .theme-btn { margin-left: auto; }
}

/* Hero */
.hero { background: var(--bg-hero); padding: clamp(36px, 7vw, 84px) 0 clamp(28px, 5vw, 56px); overflow: hidden; }
.hero > .wrap:first-child { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 .r { color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.pill-tag {
  display: inline-block; background: #dcebfb; color: var(--navy); font-weight: 800; border-radius: 999px;
  padding: 8px 20px; font-size: 1.1rem; margin-bottom: 18px;
}
:root[data-theme="dark"] .pill-tag { background: #1c2740; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill-tag { background: #1c2740; } }
.pill-tag b { color: var(--accent); font-style: italic; }
.hero-art { margin: 0; }
.hero-art img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); background: #eaf3fd; }
.hero-art figcaption { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 10px; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 5px 16px 5px 6px; font-size: .88rem; color: var(--muted); margin: 0 0 18px; }
.badge b { background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 11px; font-size: .78rem; }
.checks { list-style: none; padding: 0; margin: 18px 0 4px; display: grid; gap: 10px; max-width: 36em; }
.checks li { position: relative; padding-left: 28px; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg) scale(.9); }
.checks strong { color: var(--text); }
.qcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(28px, 5vw, 52px); }
.qcard { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--muted); font-size: .9rem; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.qcard:hover { transform: translateY(-2px); border-color: var(--blue); }
.qcard strong { color: var(--text); font-size: 1rem; }
.qic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--blue-soft); margin-bottom: 8px; }
.qic svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .qcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .qcards { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .hero > .wrap:first-child { grid-template-columns: 1fr; } .hero-art { max-width: 520px; margin-inline: auto; } }

/* İndirme düğmeleri */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 14px;
  background: #0f2447; color: #fff; text-decoration: none; min-width: 200px; position: relative;
}
:root[data-theme="dark"] .store { background: #1e2a45; }
.store svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.store small { display: block; font-size: .72rem; opacity: .8; line-height: 1.1; }
.store strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.store .soon {
  position: absolute; top: -9px; right: 10px; background: var(--accent); color: #fff; font-size: .68rem;
  font-weight: 800; padding: 2px 9px; border-radius: 999px; letter-spacing: .03em;
}
.store[aria-disabled="true"] { cursor: default; opacity: .92; }
.note { font-size: .88rem; color: var(--muted); }

/* Bölümler */
section { padding: clamp(44px, 7vw, 84px) 0; }
section.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head p { color: var(--muted); }
.eyebrow { color: var(--blue); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: 6px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card.role { text-align: center; }
.card.role img { width: 150px; height: 150px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 18px rgba(20, 51, 107, .18); }
.card.role .eczane-img { border-radius: 50%; object-fit: cover; object-position: center 30%; }
.card ul { padding-left: 1.2em; margin: 0; color: var(--muted); text-align: left; }
.card li { margin-bottom: .35em; }

/* Adımlar */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { list-style: none; counter-increment: s; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.steps { padding: 0; margin: 0; }

/* Videolar */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 28px; justify-content: center; }
@media (max-width: 760px) { .videos { grid-template-columns: minmax(0, 340px); } }
.videos figure { margin: 0; text-align: center; }
.videos video { width: 100%; border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); background: #000; }
.videos figcaption { color: var(--muted); font-size: .92rem; margin-top: 10px; }

/* SSS */
details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
details[open] summary { color: var(--blue); }
details p { color: var(--muted); }
.faq { max-width: 820px; margin-inline: auto; }

/* Çağrı bandı */
.cta { text-align: center; background: var(--navy); color: #fff; border-radius: 26px; padding: clamp(32px, 6vw, 56px) 20px; }
:root[data-theme="dark"] .cta { background: #1b2b4d; }
.cta h2 { color: #fff; }
.cta .stores { justify-content: center; }
.cta .store { background: #fff; color: #0f2447; }
.cta p { opacity: .9; }

/* Alt bilgi */
.wave { height: 60px; background: url("dalga.webp") center bottom / cover no-repeat; margin-top: 20px; }
:root[data-theme="dark"] .wave { opacity: .35; }
footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 40px 0 28px; font-size: .95rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }
footer h3 { font-size: 1rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer a { color: var(--text); text-decoration: none; }
footer a:hover { color: var(--accent-text); text-decoration: underline; }
footer .brand-note { color: var(--muted); }
footer .brand-note b { color: var(--accent-text); }
.social li span { color: var(--muted); }
.social li span em { font-size: .75rem; background: var(--blue-soft); color: var(--blue); border-radius: 999px; padding: 1px 8px; margin-left: 6px; font-style: normal; font-weight: 700; }
.legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }

/* Yardım sayfaları */
.page-head { background: var(--bg-hero); padding: 44px 0 28px; border-bottom: 1px solid var(--border); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.doc { max-width: 820px; padding: 40px 0 64px; }
.doc h2 { font-size: 1.4rem; margin-top: 2em; }
.doc h3 { margin-top: 1.4em; }
.doc li { margin-bottom: .4em; }
.doc table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1em 0; }
.doc th, .doc td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-soft); }
.draft {
  background: #fff8dc; border: 1px solid #ecd98a; color: #5a4a00; border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; font-size: .95rem;
}
:root[data-theme="dark"] .draft { background: #2e2a12; border-color: #5c5320; color: #f0e3a0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .draft { background: #2e2a12; border-color: #5c5320; color: #f0e3a0; } }
mark.ph { background: #ffe58a; color: #3a2e00; padding: 0 4px; border-radius: 4px; }
.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 16px 22px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 24px 0; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .card { box-shadow: none; padding: 22px; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 11px 22px; border-radius: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .topbar, .wave, .theme-btn { display: none; } }

/* Öne çıkan mesajlar */
.mission {
  margin: 0 0 20px; padding: 12px 18px; border-left: 5px solid var(--accent); border-radius: 0 14px 14px 0;
  background: var(--card); box-shadow: var(--shadow); color: var(--navy); font-weight: 800; font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.35;
}
.key { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 800; color: var(--blue); }
.key svg { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--blue-soft); fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.key b { color: var(--accent-text); }
