/*
Theme Name:  Başarı Takip Sistemi
Description: basarisistemi.com tanıtım sitesi teması. Kurum başvuru formu için basari-merkez eklentisiyle birlikte çalışır; okul eklentisinden (basari-takip) bağımsızdır.
Version:     1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: basarisistemi
*/

:root {
  --bg: #F4F4F5;
  --card: #FFFFFF;
  --ink: #18181B;
  --muted: #52525B;
  --line: #E4E4E7;
  --red: #DC2626;
  --red-dark: #B91C1C;
  --red-on-dark: #F87171;
  --red-soft: #FEE2E2;
  --dark: #18181B;
  --dark-2: #27272A;
  --radius: 16px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.icon { width: 22px; height: 22px; flex-shrink: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red-on-dark); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; transition: background-color .15s, color .15s; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #52525B; }
.btn-ghost:hover { background: var(--dark-2); color: #fff; }

/* Üst bilgi */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(24, 24, 27, .96); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 16px; }
.brand:hover { color: #fff; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--red); display: inline-flex; align-items: center; justify-content: center; }
.brand-mark .icon { width: 20px; height: 20px; color: #fff; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: #D4D4D8; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-list a:hover { color: #fff; background: var(--dark-2); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; }

/* Giriş */
.hero { background: var(--dark); color: #fff; padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--red-on-dark); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.lead { color: #D4D4D8; font-size: 18px; margin-top: 20px; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.preview-card { background: var(--card); color: var(--ink); border-radius: 20px; padding: 28px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.preview-hello { color: var(--muted); font-weight: 600; font-size: 14px; }
.preview-title { font-size: 24px; font-weight: 800; margin: 6px 0 20px; line-height: 1.25; }
.preview-title span { color: var(--red); }
.preview-bars { display: grid; gap: 10px; }
.preview-bar { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; color: var(--muted); }
.preview-bar i { display: block; height: 10px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.preview-bar b { display: block; height: 100%; background: #FCA5A5; border-radius: 6px; }
.preview-bar b.strong { background: var(--red); }
.preview-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px; background: var(--dark); color: #E4E4E7; border-radius: 12px; font-size: 14px; }
.preview-note .icon { color: var(--red-on-dark); width: 18px; height: 18px; margin-top: 2px; }

/* Bölümler */
.section { padding: 88px 0; }
.section-dark { background: var(--dark); color: #fff; }
.section-soft { background: #FAFAFA; }
.section-title { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; }
.section-lead { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 680px; }
.section-dark .section-lead { color: #D4D4D8; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.card, .feature { background: var(--card); border-radius: var(--radius); padding: 28px; }
.card h3, .feature h3 { font-size: 20px; font-weight: 800; margin: 16px 0 8px; }
.feature { display: flex; flex-direction: column; }
.card p, .feature p { color: var(--muted); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--red-soft); color: var(--red-dark); display: inline-flex; align-items: center; justify-content: center; }
.card-icon-lg { width: 64px; height: 64px; border-radius: 16px; }
.card-icon-lg .icon { width: 30px; height: 30px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 15px; }
.checks .icon { color: #15803D; width: 18px; height: 18px; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { background: var(--dark-2); border-radius: var(--radius); padding: 28px; }
.step-no { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.step h3 { font-size: 19px; font-weight: 800; margin: 18px 0 8px; }
.step p { color: #D4D4D8; font-size: 15px; }

.trust { display: flex; gap: 28px; align-items: flex-start; }

.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 800; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--red); font-weight: 600; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 0 20px; }

/* Başvuru */
.basvuru-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.contact-line { margin-top: 24px; color: #D4D4D8; }
.contact-line a { color: #fff; font-weight: 700; }
.basvuru-form { background: var(--card); color: var(--ink); border-radius: 20px; padding: 28px; display: grid; gap: 16px; }
.basvuru-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.basvuru-form .lbl > span { color: var(--red); }
.basvuru-form input, .basvuru-form textarea { font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); background: #FAFAFA; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%; }
.basvuru-form input:focus, .basvuru-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-weight: 700; font-size: 15px; }
.form-status.is-ok { color: #15803D; }
.form-status.is-error { color: var(--red-dark); }

/* İçerik sayfaları */
.entry + .entry { margin-top: 48px; }
.entry-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 20px; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-content { font-size: 17px; }
.entry-content > * + * { margin-top: 1em; }

/* Alt bilgi */
.site-footer { background: var(--dark); color: #A1A1AA; padding: 56px 0 28px; border-top: 1px solid var(--dark-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-note { margin-top: 14px; font-size: 15px; }
.footer-title { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 12px; letter-spacing: 0; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-list a { color: #D4D4D8; text-decoration: none; }
.footer-list a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--dark-2); font-size: 14px; }

/* Duyarlı */
@media (max-width: 960px) {
  .hero-grid, .basvuru-grid { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .nav-toggle-label { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; content: ""; }
  .nav-toggle-label span::before { position: absolute; top: -6px; }
  .nav-toggle-label span::after { position: absolute; top: 6px; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--dark); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--dark-2); }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-list { flex-direction: column; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .cards-3, .steps, .field-row, .field-row-3, .footer-grid { grid-template-columns: 1fr; }
  .trust { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
