/* scripta.tr ortak stilleri: rehber sayfalari ve yasal metinler.
   Renkler mobil uygulamanin marka paletinden gelir (lib/main.dart):
   altin #FFD700, gece mavisi #1A3667 / #16325C. */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --border: #E2E8F0;
  --text: #0F172A;
  --muted: #475569;
  --faint: #64748B;
  --navy-deep: #0B1420;
  --navy-900: #0F172A;
  --navy-800: #131C2E;
  --navy-700: #1A3667;
  --navy-600: #16325C;
  --navy-tint: #EEF3FB;
  --gold: #FFD700;
  --gold-soft: #E8C25A;
  --gold-gradient: linear-gradient(135deg, #FFE45C 0%, #FFD700 45%, #E8C25A 100%);
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 16.5px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-700); }
img { max-width: 100%; height: auto; }
.container { max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 200; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Ust menu */
.topbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900);
  font-weight: 800; font-size: 1.25rem; letter-spacing: .04em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .94rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy-700); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 42px; height: 42px; cursor: pointer; color: var(--navy-900); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px;
  border-radius: 12px; font-weight: 700; font-size: .94rem; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-navy { background: var(--navy-700); color: #fff; box-shadow: 0 4px 14px rgba(26,54,103,.25); }
.btn-navy:hover { background: var(--navy-600); }
.btn-gold { background: var(--gold-gradient); color: #0B1420; box-shadow: 0 4px 18px rgba(255,215,0,.28); }
.btn-ghost { background: #fff; color: var(--navy-900); border-color: var(--border); }
.btn-ghost-dark { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 8px 20px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--bg-alt); }
  .top-actions .btn-hide-sm { display: none; }
}

/* Sayfa basligi */
.page-hero { background: var(--navy-deep);
  background-image: radial-gradient(at 0% 0%, rgba(26,54,103,.75) 0, transparent 55%),
                    radial-gradient(at 100% 100%, rgba(255,215,0,.12) 0, transparent 45%);
  color: #fff; padding: 56px 0 52px; }
.crumbs { font-size: .85rem; color: #94A3B8; margin-bottom: 16px; }
.crumbs a { color: #CBD5E1; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.page-hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.2; letter-spacing: -.01em; max-width: 22ch; }
.page-hero .lede { margin-top: 16px; color: #CBD5E1; font-size: 1.12rem; max-width: 62ch; }
.page-hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.updated { margin-top: 18px; font-size: .82rem; color: #94A3B8; }

/* Makale */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-block: 56px 72px; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; gap: 32px; } }
.article h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.7rem; line-height: 1.3;
  color: var(--navy-900); margin: 40px 0 14px; scroll-margin-top: 90px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.15rem; color: var(--navy-900); margin: 26px 0 8px; }
.article p { color: #334155; margin: 0 0 14px; }
.article ul, .article ol { margin: 0 0 16px 22px; color: #334155; }
.article li { margin: 6px 0; }
.article strong { color: var(--navy-900); }
.steps { list-style: none; margin: 8px 0 22px !important; counter-reset: adim; display: grid; gap: 12px; }
.steps li { counter-increment: adim; position: relative; padding: 16px 18px 16px 62px; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: 12px; margin: 0 !important; }
.steps li::before { content: counter(adim); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px;
  border-radius: 9px; background: var(--navy-deep); color: var(--gold); font-weight: 800; display: flex;
  align-items: center; justify-content: center; }
.note { background: var(--navy-tint); border: 1px solid #D6E0F0; border-radius: 12px; padding: 16px 18px; margin: 20px 0; color: #1E293B; }
.note b { color: var(--navy-700); }
.table-wrap { overflow-x: auto; margin: 10px 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-alt); color: var(--navy-900); font-weight: 700; }

/* Kenar kutusu */
.aside { display: grid; gap: 20px; align-content: start; position: sticky; top: 92px; }
@media (max-width: 960px) { .aside { position: static; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.02rem; color: var(--navy-900); margin-bottom: 8px; }
.card p { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.card .btn { width: 100%; margin-top: 8px; }
.card-dark { background: linear-gradient(150deg, #0F172A 0%, #1A3667 100%); color: #fff; border-color: transparent; }
.card-dark h3 { color: #fff; }
.card-dark p { color: #CBD5E1; }
.toc { list-style: none; display: grid; gap: 6px; }
.toc a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.toc a:hover { color: var(--navy-700); }

/* SSS */
.faq { display: grid; gap: 10px; margin-top: 8px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--navy-900); list-style: none;
  display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--navy-700); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 16px; color: #334155; }

/* Ilgili rehberler */
.related { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 56px 0; }
.related h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.7rem; color: var(--navy-900); margin-bottom: 22px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.guide-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #C9D5EA; }
.guide-card .tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy-700); background: var(--navy-tint); border-radius: 6px; padding: 3px 8px; margin-bottom: 10px; }
.guide-card b { display: block; color: var(--navy-900); font-size: 1.04rem; line-height: 1.4; margin-bottom: 6px; }
.guide-card span { color: var(--muted); font-size: .9rem; line-height: 1.55; }

/* Kapanis bandi ve alt bilgi */
.cta-band { background: var(--navy-deep);
  background-image: radial-gradient(at 100% 100%, rgba(255,215,0,.16) 0, transparent 50%),
                    radial-gradient(at 0% 0%, rgba(26,54,103,.8) 0, transparent 60%);
  color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.cta-band p { color: #CBD5E1; max-width: 56ch; margin: 0 auto 28px; }
.cta-band .cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
footer { background: #fff; border-top: 1px solid var(--border); padding: 44px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-grid a:hover { color: var(--navy-700); }
.footer-about { color: var(--faint); font-size: .9rem; margin-top: 12px; max-width: 34ch; }
.copyright { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--faint); font-size: .85rem; }
@media (max-width: 420px) {
  .top-actions .btn-navy { padding: 9px 12px; font-size: .85rem; }
  .brand span { font-size: 1.05rem; }
}
