/* Ziyaretçi sayfaları için ortak tasarım dili (sb-*). Üst bant + üstüne binen kartlar düzeni.
   Kullanım: inc/sayfa-ust.php -> sayfaUst([...]) üst bandı basar, içerik .sb-govde > .sb-kap içine yazılır. */

.sb { color: #334155; }
.sb *, .sb *::before, .sb *::after { box-sizing: border-box; }
.sb-kap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sb-kap-dar { max-width: 980px; }

/* Üst bant */
.sb-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%); color: #fff; padding: 44px 0 110px; }
.sb-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.sb-hero::after { content: ''; position: absolute; width: 460px; height: 460px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(96, 165, 250, .35), transparent 70%); }
.sb-hero > .sb-kap { position: relative; z-index: 1; }
.sb-hero-orta { text-align: center; }
.sb-hero-orta .sb-iz, .sb-hero-orta .sb-meta { justify-content: center; }
.sb-hero-orta .sb-ozet { margin-left: auto; margin-right: auto; }
.sb-iz { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: #bfdbfe; margin-bottom: 22px; }
.sb-iz a { color: #bfdbfe; text-decoration: none; }
.sb-iz a:hover { color: #fff; }
.sb-iz span[aria-current] { color: #fff; }
.sb-iz svg { width: 14px !important; height: 14px !important; opacity: .7; }
.sb-hero-ikon { width: 60px; height: 60px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); margin-bottom: 18px; backdrop-filter: blur(6px); }
.sb-hero-ikon svg { width: 28px !important; height: 28px !important; color: #fff; }
.sb-etiket { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 12.5px; font-weight: 600; color: #dbeafe; margin-bottom: 14px; }
.sb-etiket svg { width: 14px !important; height: 14px !important; }
.sb-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; color: #fff; }
.sb-ozet { font-size: 18px; line-height: 1.6; color: #cbd5e1; max-width: 720px; margin: 0; }
.sb-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: 14px; color: #bfdbfe; }
.sb-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sb-meta svg { width: 16px !important; height: 16px !important; color: #93c5fd; }

/* Gövde */
.sb-govde { position: relative; margin-top: -72px; padding-bottom: 72px; }
.sb-kart { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .12); }
.sb-kart-ic { padding: 32px; }
.sb-kart-baslik { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 20px; font-weight: 700; color: #0f172a; }
.sb-kart-alt { margin: 0 0 22px; font-size: 14.5px; color: #64748b; line-height: 1.55; }
.sb-izgara { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.sb-izgara-ters { grid-template-columns: 340px minmax(0, 1fr); }
.sb-izgara-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sb-izgara-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.sb-izgara-yari { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sb-yigin { display: flex; flex-direction: column; gap: 20px; }
.sb-bolum { margin-top: 48px; }
.sb-bolum-baslik { text-align: center; margin-bottom: 26px; }
.sb-bolum-baslik h2 { font-size: 26px; font-weight: 800; color: #0f172a; margin: 0 0 6px; letter-spacing: -.01em; }
.sb-bolum-baslik p { color: #64748b; margin: 0; font-size: 15.5px; }

/* İkon kutuları */
.sb-ikon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #eff6ff; color: #2563eb; }
.sb-ikon svg { width: 21px !important; height: 21px !important; }
.sb-ikon-buyuk { width: 64px; height: 64px; border-radius: 18px; }
.sb-ikon-buyuk svg { width: 30px !important; height: 30px !important; }
.sb-ikon-yesil { background: #f0fdf4; color: #16a34a; }
.sb-ikon-turuncu { background: #fff7ed; color: #ea580c; }
.sb-ikon-kirmizi { background: #fef2f2; color: #dc2626; }
.sb-ikon-sari { background: #fffbeb; color: #d97706; }
.sb-ikon-gri { background: #f1f5f9; color: #475569; }

/* Özellik / adım kartları */
.sb-ozellik { padding: 24px; }
.sb-ozellik h3 { font-size: 16.5px; font-weight: 700; color: #0f172a; margin: 14px 0 6px; }
.sb-ozellik p { font-size: 14.5px; color: #64748b; line-height: 1.6; margin: 0; }
.sb-adim { position: relative; }
.sb-adim-no { position: absolute; top: 20px; right: 22px; font-size: 40px; font-weight: 800; color: #f1f5f9; line-height: 1; }

/* Formlar */
.sb-form { display: grid; gap: 18px; }
.sb-form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sb-alan label, .sb-etiket-yazi { display: block; font-size: 13.5px; font-weight: 600; color: #334155; margin-bottom: 7px; }
.sb-alan label .sb-zorunlu { color: #dc2626; }
.sb-girdi { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; color: #0f172a; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; box-shadow: none; }
textarea.sb-girdi { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
select.sb-girdi { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.sb-girdi:focus { border-color: #93c5fd; background-color: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
.sb-girdi:disabled { color: #94a3b8; cursor: not-allowed; }
.sb-girdi-ikonlu { position: relative; }
.sb-girdi-ikonlu > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px !important; height: 18px !important; color: #94a3b8; pointer-events: none; }
.sb-girdi-ikonlu .sb-girdi { padding-left: 42px; }
.sb-ipucu { font-size: 12.5px; color: #94a3b8; margin-top: 6px; }
.sb-kod { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }

/* Büyük tek alanlı form (kod girme, arama) */
.sb-tekli { display: flex; gap: 10px; padding: 8px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px -14px rgba(15, 23, 42, .18); }
.sb-tekli .sb-girdi { flex: 1; min-width: 0; height: 54px; border: 0; background: #f8fafc; font-size: 17px; }
.sb-tekli .sb-girdi:focus { box-shadow: none; background: #f1f5f9; }
.sb-tekli .sb-btn { height: 54px; padding: 0 26px; }

/* Butonlar */
.sb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; transition: filter .15s, background .15s, border-color .15s, transform .15s; }
.sb-btn svg { width: 18px !important; height: 18px !important; }
.sb-btn-ana { background: linear-gradient(135deg, #1e40af, #2563eb); color: #fff !important; box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .7); }
.sb-btn-ana:hover { filter: brightness(1.08); transform: translateY(-1px); }
.sb-btn-ikincil { background: #fff; border-color: #e2e8f0; color: #1e293b !important; }
.sb-btn-ikincil:hover { border-color: #93c5fd; color: #1d4ed8 !important; }
.sb-btn-yesil { background: linear-gradient(135deg, #15803d, #16a34a); color: #fff !important; }
.sb-btn-blok { width: 100%; }

/* Uyarılar */
.sb-uyari { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-size: 14.5px; line-height: 1.55; }
.sb-uyari svg { width: 20px !important; height: 20px !important; flex-shrink: 0; margin-top: 1px; }
.sb-uyari-hata { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.sb-uyari-basari { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.sb-uyari-bilgi { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.sb-uyari-uyar { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* Bilgi satırları */
.sb-satir { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; text-decoration: none; color: inherit; transition: background .15s; }
a.sb-satir:hover { background: #f8fafc; }
.sb-satir small { display: block; font-size: 12.5px; color: #94a3b8; font-weight: 500; }
.sb-satir strong { display: block; font-size: 15px; color: #0f172a; font-weight: 600; word-break: break-word; }
.sb-liste-link a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: #334155; font-size: 14.5px; font-weight: 500; text-decoration: none; }
.sb-liste-link a:hover { background: #f1f5f9; color: #0f172a; }
.sb-liste-link a svg { width: 18px !important; height: 18px !important; color: #64748b; }
.sb-liste-link a .sb-ok { margin-left: auto; color: #cbd5e1; }
.sb-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.sb-dl dt { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; margin-bottom: 4px; }
.sb-dl dd { margin: 0; font-size: 15.5px; color: #0f172a; font-weight: 600; }
.sb-dl .sb-tam { grid-column: 1 / -1; }

/* Koyu vurgu kartı */
.sb-koyu { background: linear-gradient(160deg, #0f172a, #1e3a8a); color: #fff; border: 0; }
.sb-koyu h3 { color: #fff; font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.sb-koyu p { color: #cbd5e1; font-size: 14px; line-height: 1.6; margin: 0 0 16px; }

/* SSS akordeon */
.sb-sss details { border-bottom: 1px solid #f1f5f9; }
.sb-sss details:last-child { border-bottom: 0; }
.sb-sss summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px; cursor: pointer; font-weight: 600; font-size: 15.5px; color: #0f172a; }
.sb-sss summary::-webkit-details-marker { display: none; }
.sb-sss summary::after { content: '+'; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: #f1f5f9; color: #475569; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 500; transition: transform .2s, background .2s; }
.sb-sss details[open] summary::after { content: '−'; background: #eff6ff; color: #1d4ed8; }
.sb-sss details p { margin: 0 4px 16px; color: #64748b; font-size: 14.5px; line-height: 1.7; }

/* Sosyal butonlar */
.sb-sosyal { display: flex; flex-wrap: wrap; gap: 10px; }
.sb-sosyal a { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; color: #334155; transition: all .15s; }
.sb-sosyal a:hover { background: #2563eb; color: #fff; transform: translateY(-2px); }
.sb-sosyal svg { width: 19px !important; height: 19px !important; }

/* Rozet */
.sb-rozet { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #eff6ff; color: #1d4ed8; }
.sb-rozet svg { width: 13px !important; height: 13px !important; }
.sb-rozet-yesil { background: #f0fdf4; color: #15803d; }
.sb-rozet-sari { background: #fffbeb; color: #b45309; }

@media (max-width: 1023px) {
    .sb-izgara, .sb-izgara-ters { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .sb-izgara-3 { grid-template-columns: minmax(0, 1fr); }
    .sb-form-2, .sb-dl, .sb-izgara-yari { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .sb-kap { padding: 0 14px; }
    .sb-hero { padding: 28px 0 92px; }
    .sb-ozet { font-size: 16px; }
    .sb-kart-ic { padding: 22px 18px; }
    .sb-tekli { flex-direction: column; }
    .sb-tekli .sb-btn { width: 100%; }
}
