/* MalwareAnalysis: giriş, tarama ve kullanıcılar sayfalarının ortak görünümü (açık/koyu tema) */
:root {
  --bg: #f5f7fb; --surface: #ffffff; --surface-2: #f1f4f9; --text: #0f172a; --muted: #64748b;
  --border: #e2e8f0; --accent: #2563eb; --accent-h: #1d4ed8; --accent-soft: rgba(37, 99, 235, .1);
  --ok: #15803d; --ok-bg: #dcfce7; --err: #b91c1c; --err-bg: #fee2e2; --warn: #a16207; --warn-bg: #fef9c3;
  --shadow: 0 18px 40px -24px rgba(15, 23, 42, .35); --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1d; --surface: #111a2e; --surface-2: #17223a; --text: #e7ebf3; --muted: #94a3b8;
    --border: #22304b; --accent: #3b82f6; --accent-h: #2563eb; --accent-soft: rgba(59, 130, 246, .14);
    --ok: #4ade80; --ok-bg: #12301f; --err: #f87171; --err-bg: #3a1616; --warn: #facc15; --warn-bg: #3a3110;
    --shadow: 0 18px 40px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--bg); color: var(--text); line-height: 1.55;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.2; }
.muted { color: var(--muted); } .small { font-size: .85rem; }

/* Düğmeler ve formlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: border-color .15s, background .15s, transform .15s; }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.block { width: 100%; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 12px; font-size: .88rem; border-radius: 10px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--muted); }
input { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; }
input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.flash { border-radius: 10px; padding: 10px 14px; background: var(--ok-bg); color: var(--ok); }
.flash.err { background: var(--err-bg); color: var(--err); }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.pill.warn, .pill.pending { background: var(--warn-bg); color: var(--warn); }
.pill.err, .pill.rejected, .pill.disabled { background: var(--err-bg); color: var(--err); }
.pill.idle { background: var(--surface-2); color: var(--muted); }

/* ---------------------------------------------------------------- giriş sayfası */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-brand { position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 0% 0%, #1e3a8a 0%, #172554 45%, #0b1024 100%); }
.auth-brand::before { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 30%, transparent 80%); }
.auth-brand::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, .35), transparent 65%); pointer-events: none; }
.auth-brand > * { position: relative; z-index: 1; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: inherit; }
.logo .mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ef4444, #f97316); box-shadow: 0 8px 20px -8px rgba(239,68,68,.8); }
.logo .mark svg { width: 20px; height: 20px; }
.tagline { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; margin: 56px 0 14px; letter-spacing: -.035em; }
.tagline span { background: linear-gradient(120deg, #fca5a5, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: rgba(226, 232, 240, .85); font-size: 1.08rem; max-width: 34ch; margin: 0; }
.features { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; max-width: 460px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: 1rem; }
.features strong { display: block; font-size: .98rem; }
.features span { color: rgba(203, 213, 225, .85); font-size: .9rem; }
.scan-demo { margin-top: auto; padding-top: 36px; max-width: 400px; }
.scan-demo .card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px;
  padding: 14px 16px; backdrop-filter: blur(6px); }
.scan-demo .row { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; }
.scan-demo .file { display: flex; align-items: center; gap: 10px; }
.scan-demo .bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); margin: 12px 0 10px; overflow: hidden; }
.scan-demo .bar i { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, #f97316, #ef4444);
  animation: scanbar 2.6s ease-in-out infinite; }
.scan-demo .threat { color: #fca5a5; font-weight: 600; }
.scan-demo .card + .card { margin-top: 10px; opacity: .8; }
.scan-demo .clean { color: #86efac; font-weight: 600; }
@keyframes scanbar { 0% { width: 8%; } 60% { width: 92%; } 100% { width: 100%; } }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { margin: 0; font-size: 1.9rem; }
.auth-card .sub { margin: -8px 0 4px; }
.sso { display: flex; flex-direction: column; gap: 10px; }
.sso p { margin: 0; }
details.alt { border-top: 1px solid var(--border); padding-top: 14px; }
details.alt > summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--muted); }
details.alt > summary::-webkit-details-marker { display: none; }
details.alt > summary::before { content: "▸ "; }
details.alt[open] > summary { color: var(--text); }
details.alt[open] > summary::before { content: "▾ "; }
details.alt > p { margin: 10px 0 0; }
form.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.auth-foot { margin-top: 28px; color: var(--muted); font-size: .82rem; text-align: center; }
.mobile-logo { display: none; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .mobile-logo { display: flex; margin-bottom: 22px; color: var(--text); }
}

/* ---------------------------------------------------------------- uygulama sayfaları */
.topbar { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(160%) blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--border); }
.topbar-in { max-width: 1080px; margin: 0 auto; height: 64px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .logo { color: var(--text); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 7px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav .who { color: var(--muted); font-size: .9rem; margin: 0 8px; }
.nav form { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 36px 20px 64px; }
.hero { text-align: center; margin: 12px auto 30px; max-width: 680px; }
.hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 10px; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badges span { font-size: .82rem; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.drop { display: block; color: var(--text); font-size: 1rem; font-weight: 400; position: relative; max-width: 720px; margin: 0 auto; padding: 44px 28px; text-align: center; border-radius: var(--radius);
  border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--surface); cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop.over { transform: scale(1.01); }
.drop .big { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); }
.drop .big svg { width: 30px; height: 30px; }
.drop h2 { margin: 0 0 6px; font-size: 1.25rem; }
.drop p { margin: 0; color: var(--muted); }
.drop input { display: none; }
.status { max-width: 720px; margin: 18px auto 0; padding: 20px 22px; display: none; }
.status.show { display: block; }
.status .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status .file { font-weight: 600; overflow-wrap: anywhere; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.steps div { font-size: .82rem; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--border); }
.steps div.on { color: var(--text); border-top-color: var(--accent); }
.steps div.done { border-top-color: var(--ok); }
.verdict { margin-top: 18px; padding: 18px 20px; border-radius: 12px; display: none; align-items: center; gap: 16px; }
.verdict.show { display: flex; }
.verdict .emoji { font-size: 2rem; line-height: 1; }
.verdict h3 { margin: 0 0 2px; font-size: 1.2rem; }
.verdict p { margin: 0; }
.verdict.ok { background: var(--ok-bg); color: var(--ok); }
.verdict.bad { background: var(--err-bg); color: var(--err); }
.verdict.neutral { background: var(--surface-2); color: var(--text); }
.verdict code { font-weight: 700; font-family: inherit; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.section-title { display: flex; align-items: baseline; justify-content: space-between; max-width: 720px; margin: 40px auto 12px; }
.section-title h2 { margin: 0; font-size: 1.15rem; }
.history { max-width: 720px; margin: 0 auto; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: .93rem; }
tr:last-child td { border-bottom: 0; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
td.name { overflow-wrap: anywhere; }
.empty { padding: 26px; text-align: center; color: var(--muted); }
.note { max-width: 720px; margin: 26px auto 0; text-align: center; color: var(--muted); font-size: .85rem; }
.acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.acts form { margin: 0; }
@media (max-width: 640px) {
  .nav .who, .nav a.hide-sm { display: none; }
  .steps { grid-template-columns: 1fr; }
  th.hide-sm, td.hide-sm { display: none; }
}
