/* ═══════════════════════════════════════════════════════
   LaptopTest Lab — styles.css  (v4 — Light Theme)
   Clean · Minimal · White · Emerald accent
═══════════════════════════════════════════════════════ */

:root {
  /* ── Vurgu: Emerald ── */
  --emerald:       #059669;
  --emerald-lt:    #10b981;
  --emerald-glow:  rgba(5,150,105,.1);
  /* ── Durum ── */
  --pass:    #059669;
  --fail:    #e11d48;
  --info:    #4f46e5;
  /* ── Yardımcı renkler ── */
  --cyan:    #0891b2;
  --violet:  #7c3aed;
  --green:   #16a34a;
  --amber:   #d97706;
  --rose:    #e11d48;
  --sky:     #0284c7;
  --teal:    #0d9488;
  --indigo:  #4f46e5;
  /* ── Light Palette ── */
  --bg:        #f8fafc;
  --surface:   #ffffff;
  --surface-2: #f1f5f9;
  --border:    rgba(148,163,184,.35);
  --border-2:  rgba(100,116,139,.45);
  /* ── Layout ── */
  --card-bg:     #ffffff;
  --card-border: rgba(148,163,184,.35);
  --card-radius: .875rem;
  /* ── Text ── */
  --text-primary:   #0f172a;
  --text-secondary: #334155;
  --text-muted:     #64748b;
  --text-faint:     #94a3b8;
}

* { box-sizing: border-box; }

body { background: var(--bg); color: var(--text-secondary); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(148,163,184,.6); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100,116,139,.7); }

::selection { background: rgba(5,150,105,.15); }

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.nav-blur {
  background: rgba(248,250,252,.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ══════════════════════════════════════
   PRIMARY BUTTON — Emerald
══════════════════════════════════════ */
.btn-primary {
  background: transparent;
  color: var(--emerald);
  border: 1px solid rgba(5,150,105,.35);
  transition: all .2s;
  letter-spacing: -.01em;
  font-weight: 500;
}
.btn-primary:hover {
  background: rgba(5,150,105,.07);
  border-color: rgba(5,150,105,.55);
  color: #047857;
}
.btn-primary:active { opacity: .8; }

/* ══════════════════════════════════════
   SECONDARY BUTTON — Slate
══════════════════════════════════════ */
.btn-secondary {
  background: transparent;
  color: #64748b;
  border: 1px solid rgba(148,163,184,.5);
  transition: all .2s;
  letter-spacing: -.01em;
  font-weight: 500;
}
.btn-secondary:hover {
  background: rgba(241,245,249,.8);
  border-color: rgba(100,116,139,.5);
  color: #475569;
}
.btn-secondary:active { opacity: .8; }

/* ══════════════════════════════════════
   HERO SECTION
══════════════════════════════════════ */
.hero-section {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-family: 'JetBrains Mono', monospace;
  color: #059669;
  padding: 5px 12px 5px 8px;
  border: 1px solid rgba(5,150,105,.28);
  border-radius: 999px;
  background: rgba(5,150,105,.06);
  letter-spacing: .04em;
  white-space: nowrap;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(148,163,184,.4);
  color: #64748b;
  font-size: .78rem;
  font-family: 'JetBrains Mono', monospace;
  transition: border-color .2s, color .2s;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.stat-chip:hover {
  border-color: rgba(5,150,105,.35);
  color: #334155;
}

/* ══════════════════════════════════════
   HARDWARE INFO CARDS
══════════════════════════════════════ */
.hw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .25s, box-shadow .25s;
}
.hw-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.hw-icon {
  width: 2rem;
  height: 2rem;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.hw-icon-sm {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: .4375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  flex-shrink: 0;
}

.hw-badge {
  font-size: .75rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  padding: .12rem .45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: #94a3b8;
  white-space: nowrap;
}

.hw-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  min-height: 1.1rem;
}
.hw-label {
  font-size: .82rem;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}
.hw-val {
  font-size: .86rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: #334155;
  text-align: right;
  word-break: break-all;
  line-height: 1.3;
}

/* ══════════════════════════════════════
   TEST ROWS — List Panel
══════════════════════════════════════ */
.tests-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.test-card {
  border-bottom: 1px solid var(--border);
  transition: background .2s, opacity .3s, filter .3s;
  position: relative;
}
.test-card:last-child { border-bottom: none; }
.test-card:hover:not(.running) {
  background: #f8fafc;
}

.test-card.running {
  background: rgba(5,150,105,.03);
  box-shadow: inset 3px 0 0 rgba(5,150,105,.5);
}
.test-card.pass {
  box-shadow: inset 3px 0 0 rgba(5,150,105,.3);
}
.test-card.fail {
  box-shadow: inset 3px 0 0 rgba(225,29,72,.3);
}

.tc-header {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .9rem 1.25rem;
  cursor: default;
}

.tc-icon {
  width: 2rem;
  height: 2rem;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tc-icon svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.5; }
.tc-icon.emerald { background: rgba(5,150,105,.1);   color: #059669; }
.tc-icon.violet  { background: rgba(124,58,237,.1);  color: #7c3aed; }
.tc-icon.cyan    { background: rgba(8,145,178,.1);   color: #0891b2; }
.tc-icon.amber   { background: rgba(217,119,6,.1);   color: #d97706; }
.tc-icon.rose    { background: rgba(225,29,72,.1);   color: #e11d48; }
.tc-icon.sky     { background: rgba(2,132,199,.1);   color: #0284c7; }
.tc-icon.teal    { background: rgba(13,148,136,.1);  color: #0d9488; }
.tc-icon.indigo  { background: rgba(79,70,229,.1);   color: #4f46e5; }
.tc-icon.orange  { background: rgba(234,88,12,.1);   color: #ea580c; }
.tc-icon.pink    { background: rgba(219,39,119,.1);  color: #db2777; }
.tc-icon.green   { background: rgba(22,163,74,.1);   color: #16a34a; }

.tc-title {
  font-size: .97rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.tc-sub {
  font-size: .8rem;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.3;
}

.tc-body {
  padding: 0 1.25rem .875rem 3.875rem;
}
.tc-footer {
  padding: 0 1.25rem .75rem 3.875rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.tc-badge {
  font-size: .72rem;
  font-family: 'JetBrains Mono', monospace;
  color: #94a3b8;
  padding: .1rem .45rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.4);
  background: transparent;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.test-card:hover .tc-badge {
  background: rgba(5,150,105,.07);
  color: #059669;
  border-color: rgba(5,150,105,.25);
}

/* ── Status Dot ── */
.status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  transition: all .3s;
}
.status-dot.running {
  background: var(--emerald);
  border-color: transparent;
  animation: dot-pulse 1.2s ease-in-out infinite;
}
.status-dot.pass  { background: var(--emerald); border-color: transparent; }
.status-dot.fail  { background: #e11d48;        border-color: transparent; }
.status-dot.info  { background: var(--indigo);  border-color: transparent; }
@keyframes dot-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .55; transform: scale(1.6); }
}

/* ── Result Box ── */
.result-box {
  min-height: 2.25rem;
  background: #f8fafc;
  border: 1px solid rgba(148,163,184,.3);
  border-radius: .4375rem;
  padding: .45rem .7rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .86rem;
  line-height: 1.65;
  color: #475569;
}

/* ── Progress Bar ── */
.progress-bar {
  height: 2px;
  background: rgba(148,163,184,.25);
  border-radius: 2px;
  margin-top: .5rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width .2s ease;
  background: var(--emerald) !important;
}

/* ══════════════════════════════════════
   BUTONLAR — Ghost Minimal
══════════════════════════════════════ */
.btn-t {
  padding: .26rem .72rem;
  border-radius: .375rem;
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(5,150,105,.3);
  color: #059669;
  transition: all .15s;
  white-space: nowrap;
}
.btn-t:hover {
  background: rgba(5,150,105,.07);
  border-color: rgba(5,150,105,.5);
  color: #047857;
}
.btn-t:active { opacity: .7; }

.btn-t.amber,.btn-t.violet,.btn-t.cyan,
.btn-t.green,.btn-t.rose,.btn-t.sky,
.btn-t.orange,.btn-t.teal,.btn-t.pink,
.btn-t.indigo {
  border-color: rgba(5,150,105,.3);
  color: #059669;
}
.btn-t.amber:hover,.btn-t.violet:hover,.btn-t.cyan:hover,
.btn-t.green:hover,.btn-t.rose:hover,.btn-t.sky:hover,
.btn-t.orange:hover,.btn-t.teal:hover,.btn-t.pink:hover,
.btn-t.indigo:hover {
  background: rgba(5,150,105,.07);
  border-color: rgba(5,150,105,.5);
  color: #047857;
}
.btn-t.slate {
  background: transparent;
  color: #64748b;
  border: 1px solid rgba(148,163,184,.5);
}
.btn-t.slate:hover { border-color: rgba(100,116,139,.6); color: #475569; }
.btn-t.danger { color: #e11d48; border-color: rgba(225,29,72,.3); }
.btn-t.danger:hover { background: rgba(225,29,72,.05); border-color: rgba(225,29,72,.5); }

/* ── Speaker Buttons ── */
.speaker-btn {
  background: transparent;
  border: 1px solid rgba(148,163,184,.45);
  color: #64748b;
  border-radius: .375rem;
  padding: .28rem .25rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.speaker-btn:hover { border-color: rgba(217,119,6,.4); color: #d97706; }
.speaker-btn.active { border-color: rgba(217,119,6,.4); color: #d97706; background: rgba(217,119,6,.05); }

/* ══════════════════════════════════════
   RESULTS SUMMARY
══════════════════════════════════════ */
.result-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .625rem;
  border: 1px solid rgba(148,163,184,.3);
  border-radius: .4375rem;
  font-size: .93rem;
  background: #f8fafc;
}
.result-row-name  { font-weight: 500; color: #334155; flex: 1; font-size: .92rem; }
.result-row-value { font-family: 'JetBrains Mono', monospace; font-size: .80rem; color: #94a3b8; }
.result-row-badge {
  padding: .1rem .42rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
}
.badge-pass { background: rgba(5,150,105,.08);   color: #059669; border: 1px solid rgba(5,150,105,.2); }
.badge-fail { background: rgba(225,29,72,.08);   color: #e11d48; border: 1px solid rgba(225,29,72,.2); }
.badge-info { background: rgba(79,70,229,.08);   color: #4f46e5; border: 1px solid rgba(79,70,229,.2); }

/* ══════════════════════════════════════
   KLAVYE LAYOUT
══════════════════════════════════════ */
.keyboard-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: .875rem;
  padding: 1rem;
}
.key-row { display: flex; gap: 4px; align-items: flex-end; }
.key {
  height: 42px;
  min-width: 42px;
  border-radius: 5px;
  border: 1px solid rgba(148,163,184,.45);
  background: #ffffff;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  cursor: default;
  transition: all .12s;
  user-select: none;
  text-align: center;
  line-height: 1.1;
  padding: 0 3px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.key.pressed { background: rgba(5,150,105,.12); border-color: #059669; color: #047857; }
.key.just-pressed { background: rgba(5,150,105,.2); border-color: #059669; color: #047857; transform: scale(.93); }
.key-fn { background: rgba(124,58,237,.05); border-color: rgba(148,163,184,.4); color: #7c3aed; }

.key-1    { width: 42px; }
.key-1_25 { width: 54px; }
.key-1_5  { width: 64px; }
.key-1_75 { width: 75px; }
.key-2    { width: 86px; }
.key-2_25 { width: 96px; }
.key-2_75 { width: 118px; }
.key-3    { width: 128px; }
.key-6_25 { width: 267px; }

.layout-btn {
  padding: .2rem .62rem;
  border-radius: .375rem;
  font-size: .82rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border);
  color: #64748b;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.layout-btn:hover { color: #334155; border-color: var(--border-2); }
.layout-btn.active {
  background: rgba(8,145,178,.07);
  border-color: rgba(8,145,178,.35);
  color: #0891b2;
}

/* ══════════════════════════════════════
   TOUCHPAD CLICK ZONES
══════════════════════════════════════ */
.click-zone {
  background: #f8fafc;
  border: 1px solid var(--border);
  transition: all .15s;
  user-select: none;
}
.click-zone-left:hover  { border-color: rgba(8,145,178,.4); background: rgba(8,145,178,.04); }
.click-zone-right:hover { border-color: rgba(225,29,72,.4); background: rgba(225,29,72,.04); }
.click-zone-left.flash  { background: rgba(8,145,178,.12) !important; border-color: rgba(8,145,178,.5) !important; }
.click-zone-right.flash { background: rgba(225,29,72,.12) !important; border-color: rgba(225,29,72,.5) !important; }

/* ══════════════════════════════════════
   OVERLAYS
══════════════════════════════════════ */
#screen-overlay.block { display: block; }
#keyboard-overlay.flex { display: flex; }

/* ══════════════════════════════════════
   ANİMASYONLAR
══════════════════════════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up .22s ease forwards; }

.tests-grid.has-running .test-card:not(.running) {
  opacity: 0.22;
  filter: saturate(0.2);
}
.tests-grid.has-running .test-card.running {
  opacity: 1;
  filter: none;
}

.scanline {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: rgba(0,0,0,.04);
  animation: scan 4s linear infinite; pointer-events: none;
}
@keyframes scan { 0%{top:0} 100%{top:100%} }

/* ══════════════════════════════════════
   RAPOR KARTI
══════════════════════════════════════ */
.report-card-bg {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.report-card-header { border-bottom: 1px solid var(--border); background: #f8fafc; }
.report-card-stamp  { border-bottom: 1px solid var(--border); }
.report-card-footer { border-top: 1px solid var(--border); background: #f8fafc; }

.report-score-gradient {
  background: linear-gradient(135deg, #059669, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  width: fit-content;
}
.report-info-row {
  padding: .22rem .45rem;
  border-radius: .3125rem;
  background: #f1f5f9;
  font-size: .82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #64748b;
}
.report-result-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .5rem .4rem;
  border-radius: .625rem;
  font-size: .75rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid;
  font-family: 'JetBrains Mono', monospace;
}
.report-result-chip.rrc-pass { background: rgba(5,150,105,.06);  border-color: rgba(5,150,105,.2);  color: #059669; }
.report-result-chip.rrc-fail { background: rgba(225,29,72,.06);  border-color: rgba(225,29,72,.2);  color: #e11d48; }
.report-result-chip.rrc-info { background: rgba(79,70,229,.06);  border-color: rgba(79,70,229,.2);  color: #4f46e5; }
.report-pending-chip { font-size: .83rem; color: #94a3b8; font-family: 'JetBrains Mono', monospace; }

/* ══════════════════════════════════════
   SCORE RING
══════════════════════════════════════ */
.score-ring-svg { opacity: .9; }

/* ══════════════════════════════════════
   SSS ACCORDION
══════════════════════════════════════ */
.faq-item {
  border: 1px solid rgba(148,163,184,.35);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item:hover {
  border-color: rgba(5,150,105,.3);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.faq-body {
  display: none;
  overflow: hidden;
  animation: faqOpen .22s ease-out both;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   NASIL ÇALIŞIR — 3 Adım
══════════════════════════════════════ */
#nasil-calisir [style*="grid"] > div {
  transition: background .2s, box-shadow .2s;
}
#nasil-calisir [style*="grid"] > div:hover {
  background: #fafbfc !important;
  box-shadow: inset 0 0 0 1px rgba(5,150,105,.12);
}

/* ══════════════════════════════════════
   GENEL POLISH
══════════════════════════════════════ */
section { animation: sectionFadeIn .35s ease-out both; }
@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

#report-fullscreen::-webkit-scrollbar { width: 4px; }
#report-fullscreen::-webkit-scrollbar-track { background: #f8fafc; }
#report-fullscreen::-webkit-scrollbar-thumb { background: rgba(148,163,184,.6); border-radius: 4px; }
