/* ================================================================
   SETA Creative SEO - Arayuz Stilleri
   Koyu tema · gozu yormayan kontrast · canli vurgu renkleri
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg:        #0f1118;
  --bg-grad:   #141725;
  --panel:     #1a1d29;
  --panel-2:   #20242f;
  --panel-3:   #262b39;
  --line:      #2b3040;
  --line-soft: #232735;
  --ink:       #e8eaf3;
  --ink-soft:  #b9bdce;
  --muted:     #7d8298;
  --muted-2:   #5b6075;

  --primary:   #6366f1;
  --primary-2: #818cf8;
  --primary-dim:#2a2c52;
  --teal:      #19c8a8;
  --teal-dim:  #11352f;

  --good:  #2ec16b;
  --mid:   #f0a93b;
  --bad:   #f0556a;
  --info:  #44a5f0;

  --radius:   14px;
  --radius-s: 9px;
  --shadow:   0 10px 30px -12px rgba(0,0,0,.55);
  --fdisp: 'Sora', 'DM Sans', sans-serif;
  --fbody: 'DM Sans', -apple-system, Segoe UI, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: var(--fbody);
  background:
    radial-gradient(900px 500px at 88% -8%, rgba(99,102,241,.10), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(25,200,168,.07), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(99,102,241,.35); }

/* --- Kaydirma cubugu ------------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

/* ================================================================
   YERLESIM
   ================================================================ */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--panel), #15171f);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 22px 20px; border-bottom: 1px solid var(--line-soft);
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #4b4ec8);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fdisp); font-weight: 700; font-size: 20px; color: #fff;
  box-shadow: 0 6px 18px -6px rgba(99,102,241,.7);
}
.brand-mark span { color: var(--teal); }
.brand-text strong { font-family: var(--fdisp); font-size: 15px; display: block; letter-spacing: .2px; }
.brand-text small { color: var(--muted); font-size: 11px; }

.nav { padding: 16px 14px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-s);
  color: var(--ink-soft); font-weight: 500; font-size: 13.5px;
  margin-bottom: 4px; transition: all .15s ease;
}
.nav-item .ic { font-size: 15px; width: 18px; text-align: center; color: var(--muted); }
.nav-item:hover { background: var(--panel-2); color: var(--ink); }
.nav-item.active {
  background: linear-gradient(90deg, var(--primary-dim), transparent);
  color: #fff; box-shadow: inset 2px 0 0 var(--primary);
}
.nav-item.active .ic { color: var(--primary-2); }

.side-foot { padding: 14px; border-top: 1px solid var(--line-soft); }
.side-user { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal), #0e9e85);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fdisp); font-weight: 700; color: #06231d;
}
.side-user strong { font-size: 13px; display: block; }
.side-user small { color: var(--muted); font-size: 11px; }
.logout {
  display: block; text-align: center; padding: 9px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  color: var(--muted); font-size: 12.5px; transition: all .15s;
}
.logout:hover { border-color: var(--bad); color: var(--bad); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px; border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; z-index: 20;
  background: rgba(15,17,24,.85); backdrop-filter: blur(10px);
}
.topbar h1 { font-family: var(--fdisp); font-size: 21px; font-weight: 600; }
.content { padding: 28px 32px; flex: 1; }
.page-foot {
  padding: 18px 32px; border-top: 1px solid var(--line-soft);
  color: var(--muted-2); font-size: 12px;
}

/* ================================================================
   BUTONLAR
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-s);
  font-family: var(--fbody); font-weight: 600; font-size: 13px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--ink);
  cursor: pointer; transition: all .15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--muted-2); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4f52d4);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 20px -8px rgba(99,102,241,.65);
}
.btn-primary:hover { box-shadow: 0 10px 26px -8px rgba(99,102,241,.8); }
.btn-teal {
  background: linear-gradient(135deg, var(--teal), #0fa589);
  border-color: transparent; color: #06231d;
}
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 13px; font-size: 12px; }
.btn-danger:hover { border-color: var(--bad); color: var(--bad); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ================================================================
   KARTLAR & GENEL
   ================================================================ */
.card {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line-soft);
}
.card-head h2 { font-family: var(--fdisp); font-size: 15px; font-weight: 600; }
.card-head .sub { color: var(--muted); font-size: 12px; }

.section-title {
  font-family: var(--fdisp); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted);
  margin: 4px 0 14px;
}

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .sidebar { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .content, .topbar { padding-left: 18px; padding-right: 18px; }
}

/* --- Istatistik kartlari ---------------------------------------- */
.stat {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 20px;
  position: relative; overflow: hidden;
}
.stat::after {
  content: ''; position: absolute; right: -28px; top: -28px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.16), transparent 70%);
}
.stat .stat-label {
  color: var(--muted); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .6px;
}
.stat .stat-value {
  font-family: var(--fdisp); font-size: 32px; font-weight: 700;
  margin-top: 8px; line-height: 1;
}
.stat .stat-foot { color: var(--muted); font-size: 12px; margin-top: 8px; }
.stat.accent-bad .stat-value { color: var(--bad); }
.stat.accent-mid .stat-value { color: var(--mid); }
.stat.accent-good .stat-value { color: var(--good); }
.stat.accent-teal .stat-value { color: var(--teal); }

/* ================================================================
   SKOR HALKASI (conic-gradient)
   ================================================================ */
.gauge {
  --val: 0; --col: var(--primary);
  width: 150px; height: 150px; border-radius: 50%;
  background: conic-gradient(var(--col) calc(var(--val) * 1%), var(--line) 0);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
}
.gauge::before {
  content: ''; position: absolute; inset: 13px;
  border-radius: 50%; background: var(--panel);
}
.gauge .gauge-in { position: relative; text-align: center; }
.gauge .gauge-num {
  font-family: var(--fdisp); font-size: 40px; font-weight: 700; line-height: 1;
}
.gauge .gauge-cap { color: var(--muted); font-size: 11px; margin-top: 3px; }
.gauge-sm { width: 84px; height: 84px; }
.gauge-sm::before { inset: 8px; }
.gauge-sm .gauge-num { font-size: 22px; }
.gauge-sm .gauge-cap { font-size: 9px; }

/* --- Kategori cubuklari ----------------------------------------- */
.cat-bar { margin-bottom: 14px; }
.cat-bar:last-child { margin-bottom: 0; }
.cat-bar .cat-top {
  display: flex; justify-content: space-between; font-size: 13px;
  margin-bottom: 6px;
}
.cat-bar .cat-name { color: var(--ink-soft); font-weight: 500; }
.cat-bar .cat-val { font-family: var(--fdisp); font-weight: 600; }
.cat-bar .track { height: 9px; background: var(--panel-3); border-radius: 6px; overflow: hidden; }
.cat-bar .fill { height: 100%; border-radius: 6px; transition: width .8s cubic-bezier(.2,.8,.2,1); }

/* ================================================================
   ROZETLER
   ================================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.badge-good  { background: rgba(46,193,107,.14); color: var(--good); }
.badge-mid   { background: rgba(240,169,59,.14);  color: var(--mid); }
.badge-bad   { background: rgba(240,85,106,.14);  color: var(--bad); }
.badge-info  { background: rgba(68,165,240,.14);  color: var(--info); }
.badge-muted { background: var(--panel-3); color: var(--muted); }
.badge-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; display: inline-block;
}

.sc-good { color: var(--good); }
.sc-mid  { color: var(--mid); }
.sc-bad  { color: var(--bad); }
.sc-none { color: var(--muted); }

/* ================================================================
   TABLOLAR
   ================================================================ */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left; padding: 12px 16px; color: var(--muted);
  font-size: 11px; text-transform: uppercase; letter-spacing: .6px;
  font-weight: 600; border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
table.data td {
  padding: 13px 16px; border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
}
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: var(--panel-2); }
table.data .num { font-family: var(--fdisp); font-weight: 600; }
.row-link { cursor: pointer; }
.cell-strong { color: var(--ink); font-weight: 600; }
.cell-url {
  color: var(--primary-2); font-size: 12px;
  max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ================================================================
   FORMLAR
   ================================================================ */
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 7px;
}
.field .hint { color: var(--muted); font-size: 11.5px; margin-top: 6px; }
.input, .select, textarea.input {
  width: 100%; padding: 11px 14px;
  background: var(--bg-grad); border: 1px solid var(--line);
  border-radius: var(--radius-s); color: var(--ink);
  font-family: var(--fbody); font-size: 14px; transition: all .15s;
}
.input:focus, .select:focus, textarea.input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}
.input::placeholder { color: var(--muted-2); }
.select { cursor: pointer; }
.input-lg { padding: 14px 16px; font-size: 15px; }

.toggle-group { display: flex; gap: 10px; flex-wrap: wrap; }
.toggle-opt {
  flex: 1; min-width: 130px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 13px 15px; transition: all .15s; background: var(--bg-grad);
}
.toggle-opt:hover { border-color: var(--muted-2); }
.toggle-opt input { display: none; }
.toggle-opt.on {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary-dim), transparent);
}
.toggle-opt .t-title { font-weight: 600; font-size: 13.5px; }
.toggle-opt .t-desc { color: var(--muted); font-size: 11.5px; }

/* ================================================================
   GIRIS SAYFASI
   ================================================================ */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 410px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 38px 34px; box-shadow: var(--shadow);
}
.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-brand .brand-mark { margin: 0 auto 14px; width: 54px; height: 54px; font-size: 26px; }
.auth-brand h1 { font-family: var(--fdisp); font-size: 20px; }
.auth-brand p { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ================================================================
   ILERLEME (tarama)
   ================================================================ */
.progress-card { max-width: 620px; margin: 40px auto; text-align: center; }
.progress-ring {
  width: 110px; height: 110px; margin: 0 auto 20px;
  border: 5px solid var(--line); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-track {
  height: 12px; background: var(--panel-3); border-radius: 8px;
  overflow: hidden; margin: 20px 0 10px;
}
.progress-fill {
  height: 100%; border-radius: 8px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  width: 0%; transition: width .5s ease;
}
.progress-msg { color: var(--ink-soft); font-size: 14px; }
.progress-pct { font-family: var(--fdisp); font-size: 30px; font-weight: 700; }

/* ================================================================
   SORUN LISTESI
   ================================================================ */
.issue-row {
  border: 1px solid var(--line-soft); border-radius: var(--radius-s);
  margin-bottom: 10px; overflow: hidden; background: var(--panel);
}
.issue-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; cursor: pointer; transition: background .12s;
}
.issue-head:hover { background: var(--panel-2); }
.issue-sev {
  width: 4px; align-self: stretch; border-radius: 4px; flex-shrink: 0;
}
.sev-critical { background: var(--bad); }
.sev-warning  { background: var(--mid); }
.sev-notice   { background: var(--info); }
.issue-main { flex: 1; min-width: 0; }
.issue-title { font-weight: 600; font-size: 14px; }
.issue-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.issue-count {
  font-family: var(--fdisp); font-weight: 700; font-size: 16px;
  padding: 4px 12px; border-radius: 8px; background: var(--panel-3);
}
.issue-toggle { color: var(--muted); font-size: 12px; transition: transform .2s; }
.issue-row.open .issue-toggle { transform: rotate(180deg); }
.issue-body {
  display: none; padding: 4px 16px 16px;
  border-top: 1px solid var(--line-soft);
}
.issue-row.open .issue-body { display: block; }
.issue-rec {
  background: var(--panel-2); border-left: 3px solid var(--primary);
  padding: 11px 14px; border-radius: 6px; font-size: 13px;
  color: var(--ink-soft); margin: 12px 0;
}
.detail-list { font-size: 12.5px; }
.detail-list .dl-item {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0; border-bottom: 1px solid var(--line-soft);
}
.detail-list .dl-item:last-child { border: none; }
.detail-list .dl-url { color: var(--primary-2); word-break: break-all; }
.detail-list .dl-info { color: var(--muted); white-space: nowrap; flex-shrink: 0; }

/* --- Sekmeler --------------------------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab {
  padding: 11px 18px; cursor: pointer; color: var(--muted);
  font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent;
  transition: all .15s;
}
.tab:hover { color: var(--ink-soft); }
.tab.active { color: var(--ink); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* --- Cesitli ---------------------------------------------------- */
.alert {
  padding: 13px 16px; border-radius: var(--radius-s); font-size: 13px;
  margin-bottom: 18px; border: 1px solid;
}
.alert-error { background: rgba(240,85,106,.1); border-color: rgba(240,85,106,.4); color: #f7a3ad; }
.alert-ok { background: rgba(46,193,107,.1); border-color: rgba(46,193,107,.4); color: #8fe0b0; }
.alert-info { background: rgba(68,165,240,.1); border-color: rgba(68,165,240,.4); color: #a4cff5; }

.empty {
  text-align: center; padding: 60px 20px; color: var(--muted);
}
.empty .empty-icon { font-size: 42px; opacity: .35; margin-bottom: 12px; }
.empty h3 { font-family: var(--fdisp); color: var(--ink-soft); margin-bottom: 6px; }

.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 22px; flex-wrap: wrap;
}
.page-head .ph-title { font-family: var(--fdisp); font-size: 20px; font-weight: 600; }
.page-head .ph-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.ph-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.mini-chart { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.mini-bar {
  flex: 1; background: linear-gradient(180deg, var(--primary), var(--primary-dim));
  border-radius: 5px 5px 0 0; min-height: 4px; position: relative;
}
.mini-bar:hover::after {
  content: attr(data-label); position: absolute; bottom: 100%; left: 50%;
  transform: translateX(-50%); background: var(--panel-3); color: var(--ink);
  font-size: 10px; padding: 3px 7px; border-radius: 5px; white-space: nowrap;
}

.kv-row { display: flex; justify-content: space-between; padding: 9px 0;
  border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.kv-row:last-child { border: none; }
.kv-row .k { color: var(--muted); }
.kv-row .v { font-weight: 600; }

.text-good { color: var(--good); }
.text-bad { color: var(--bad); }
.text-mid { color: var(--mid); }
.text-muted { color: var(--muted); }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
