/* Çizgi Panel — Çizgi Üstü tasarım dili
   paper #F3F1EC · ink #0B0B0A · charcoal #181715 · graphite #6B675F
   hairline #DDD8CF · signal #EF4423 */

:root {
  --paper: #f3f1ec;
  --white: #ffffff;
  --ink: #0b0b0a;
  --charcoal: #181715;
  --graphite: #6b675f;
  --hairline: #ddd8cf;
  --signal: #ef4423;
  --signal-deep: #c22f14;
  --ok: #1d7a4f;
  --ok-bg: #e3f2ea;
  --warn: #92400e;
  --warn-bg: #fdf0d5;
  --bad: #b42318;
  --bad-bg: #fbe4e2;
  --radius: 10px;
  --sans: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* ---------- Yerleşim ---------- */
.shell { display: flex; min-height: 100vh; }

.side {
  width: 240px;
  flex: none;
  background: var(--charcoal);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 26px 0;
  position: sticky;
  top: 0;
  height: 100vh;
}
.side__logo { padding: 0 24px 26px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.side__logo img { height: 30px; display: block; filter: brightness(0) invert(1); }
.side__logo .mono { color: var(--signal); margin-top: 8px; display: block; }
.side__nav { display: flex; flex-direction: column; padding: 18px 12px; gap: 2px; flex: 1; }
.side__link {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: var(--radius);
  color: #cfcbc0; font-size: 14.5px;
  transition: background 0.2s, color 0.2s;
}
.side__link:hover { background: rgba(255,255,255,0.05); color: var(--paper); }
.side__link.is-active { background: var(--signal); color: #fff; }
.side__link svg { width: 18px; height: 18px; flex: none; }
.side__foot { padding: 14px 24px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.side__foot .who { font-size: 13px; color: #cfcbc0; margin-bottom: 10px; }
.side__foot button {
  background: none; border: 1px solid rgba(255,255,255,0.25); color: #cfcbc0;
  padding: 7px 14px; border-radius: 100px; font-size: 12.5px;
  transition: border-color 0.2s, color 0.2s;
}
.side__foot button:hover { border-color: var(--signal); color: var(--signal); }

.main { flex: 1; min-width: 0; padding: 34px clamp(20px, 3.5vw, 48px); position: relative; }
.main::before {
  content: ""; position: fixed; right: -60px; bottom: -40px; width: 480px; height: 200px;
  background: url('images/cizgi-ustu-logo-faint.png') no-repeat center / contain;
  pointer-events: none; z-index: 0;
}
.main > * { position: relative; z-index: 1; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.page-head .sub { color: var(--graphite); font-size: 14px; margin-top: 3px; }

/* ---------- Bileşenler ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  margin-bottom: 22px;
  overflow: hidden;
}
.card__head {
  padding: 16px 22px; border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card__title { font-weight: 600; font-size: 15.5px; }
.card__body { padding: 22px; }
.card__body--flush { padding: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 18px 20px;
}
.stat .k { font-size: 27px; font-weight: 700; letter-spacing: -0.02em; }
.stat .k small { font-size: 14px; color: var(--graphite); font-weight: 400; }
.stat .l { color: var(--graphite); font-size: 12.5px; margin-top: 2px; }
.stat--hero { background: var(--charcoal); border-color: var(--charcoal); color: var(--paper); }
.stat--hero .k { color: var(--signal); }
.stat--hero .l { color: #cfcbc0; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; padding: 12px 22px; color: var(--graphite);
  font-weight: 500; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  border-bottom: 1px solid var(--hairline); background: #faf9f6;
}
.tbl td { padding: 13px 22px; border-bottom: 1px solid #edeae2; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #faf9f6; }
.tbl .muted { color: var(--graphite); font-size: 13px; }

.badge {
  display: inline-block; padding: 3px 11px; border-radius: 100px;
  font-size: 11.5px; font-weight: 600;
}
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--bad { background: var(--bad-bg); color: var(--bad); }
.badge--site { background: #fdeae5; color: var(--signal-deep); }
.badge--panel { background: #edeae2; color: var(--graphite); }

.score { font-weight: 700; }
.score small { color: var(--graphite); font-weight: 400; }
.score--ok { color: var(--ok); }
.score--warn { color: #b45309; }
.score--bad { color: var(--bad); }

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 100px; border: 1px solid transparent;
  font-size: 13px; font-weight: 550; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--signal); }
.btn--signal { background: var(--signal); color: #fff; }
.btn--signal:hover { background: var(--signal-deep); }
.btn--ghost { border-color: var(--hairline); color: var(--ink); background: var(--white); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--danger { color: var(--bad); background: none; border: none; font-size: 13px; }
.btn--danger:hover { text-decoration: underline; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* Formlar */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 550; color: var(--ink); }
.input {
  font: inherit; padding: 11px 14px; border: 1px solid var(--hairline);
  border-radius: var(--radius); background: var(--white); color: var(--ink);
  transition: border-color 0.2s; width: 100%;
}
.input:focus { outline: none; border-color: var(--ink); }
.err { color: var(--signal-deep); font-size: 13px; margin-top: 4px; }

.flash {
  padding: 13px 18px; border-radius: var(--radius); margin-bottom: 20px;
  font-size: 14px; border: 1px solid;
}
.flash--ok { background: var(--ok-bg); color: var(--ok); border-color: #bfe3cf; }
.flash--err { background: var(--bad-bg); color: var(--bad); border-color: #f3c2bd; }

/* Analiz detay */
.checks { display: flex; flex-direction: column; }
.check { display: flex; gap: 13px; padding: 14px 22px; border-bottom: 1px solid #edeae2; }
.check:last-child { border-bottom: none; }
.check__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 6px; }
.check__dot--pass { background: var(--ok); }
.check__dot--warn { background: #d97706; }
.check__dot--fail { background: var(--bad); }
.check__dot--info { background: var(--hairline); }
.check__label { font-weight: 600; font-size: 14px; }
.check__detail { color: var(--graphite); font-size: 13.5px; margin-top: 2px; }
.check__rec { color: var(--signal-deep); font-size: 13px; margin-top: 5px; }

.prose h3 { font-size: 15px; margin: 16px 0 8px; padding-bottom: 5px; border-bottom: 2px solid var(--signal); }
.prose h4 { font-size: 14px; margin: 12px 0 6px; }
.prose p { margin-bottom: 9px; font-size: 14px; }
.prose ul { margin: 4px 0 12px 20px; }
.prose li { margin-bottom: 4px; font-size: 14px; }
.prose ol { margin: 4px 0 12px 20px; list-style: decimal; }
.prose li::marker { color: var(--signal); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: #f1efe9; padding: 1px 5px; border-radius: 4px; }
.prose hr { margin: 14px 0; border: 0; border-top: 1px solid #e6e2d9; }
.prose table.md-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 13px; }
.prose table.md-table th, .prose table.md-table td { border: 1px solid #e6e2d9; padding: 7px 10px; text-align: left; vertical-align: top; }
.prose table.md-table th { background: #f6f4ef; font-weight: 600; color: var(--ink); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* Login */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden;
}
.login-wrap::before {
  content: ""; position: absolute; right: -80px; bottom: -50px; width: 560px; height: 240px;
  background: url('images/cizgi-ustu-logo-faint.png') no-repeat center / contain;
}
.login-card {
  width: 100%; max-width: 400px; background: var(--white);
  border: 1px solid var(--hairline); border-radius: 18px; padding: 38px 34px;
  border-top: 5px solid var(--signal); position: relative;
}
.login-card img { height: 34px; margin-bottom: 8px; }
.login-card .mono { display: block; margin-bottom: 26px; color: var(--signal); }

/* Sayfalama (Laravel default'unu sadeleştir) */
.pagination-wrap nav { font-size: 13px; }
.pagination-wrap svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; padding: 12px 16px; gap: 8px; overflow-x: auto; }
  .side__logo { padding: 0 12px 0 0; border: none; }
  .side__logo .mono { display: none; }
  .side__nav { flex-direction: row; padding: 0; }
  .side__link { padding: 8px 12px; white-space: nowrap; }
  .side__foot { border: none; padding: 0 0 0 8px; }
  .side__foot .who { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
}
