﻿/* ================= CodebilTestLab ================= */
:root { --navy:#1C1D22; --navy2:#2A2B31; --blue:#C0141F; --blue-d:#9E0F1A; --red:#26262B; --accent:#C0141F; --ink:#1B2333; --mut:#5F6B7E; --line:#E2E7EF; --bg:#F5F5F6; --ok:#13804D; --r:12px; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; }
a { color: var(--blue); }
.tm-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; padding: 10px 22px; background: linear-gradient(90deg, var(--navy), var(--navy2)); color: #fff; box-shadow: 0 4px 20px rgba(28,29,34,.25); }
.tm-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.tm-logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff; padding: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.tm-logo img { width: 100%; height: 100%; object-fit: contain; }
.tm-brand strong { display: block; font-size: 17px; letter-spacing: -.01em; } .tm-brand b { color: #FF8A93; }
.tm-brand small { display: block; font-size: 11px; opacity: .7; }
.tm-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.tm-nav a { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 9px; color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: 14px; }
.tm-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.tm-nav a.on { background: rgba(255,255,255,.14); color: #fff; }
.tm-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.tm-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #FF8A93; color: var(--navy); font-weight: 800; }
.tm-user-name { display: flex; flex-direction: column; line-height: 1.15; font-size: 13px; } .tm-user-name small { opacity: .65; }
.tm-main { max-width: 1320px; margin: 0 auto; padding: 26px 22px 40px; min-height: calc(100vh - 140px); }
.tm-foot { text-align: center; padding: 18px; color: var(--mut); font-size: 13px; }
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.01em; } .tm-lead { color: var(--mut); margin: 0 0 22px; }
.tm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(28,29,34,.04); }
.tm-card h2 { font-size: 17px; margin: 0 0 14px; }
.tm-grid { display: grid; gap: 18px; } .tm-g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .tm-g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .tm-g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.tm-side { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.tm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.tm-btn:hover { background: #F6F8FC; } .tm-btn:active { transform: translateY(1px); }
.tm-btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; } .tm-btn-primary:hover { background: var(--blue-d); }
.tm-btn-red { background: var(--red); border-color: var(--red); color: #fff; } .tm-btn-red:hover { background: #111114; }
.tm-btn-ghost { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; } .tm-btn-ghost:hover { background: rgba(255,255,255,.1); }
.tm-main .tm-btn-ghost { border-color: var(--line); color: var(--ink); }
.tm-btn-sm { padding: 6px 11px; font-size: 13px; } .tm-btn-block { width: 100%; }
.tm-btn-danger { color: #B42318; border-color: #F2C4C8; }
.tm-field { margin-bottom: 13px; } .tm-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.tm-field input[type=text], .tm-field input[type=email], .tm-field input[type=password], .tm-field input[type=number], .tm-field select, .tm-field textarea, .tm-input {
  width: 100%; padding: 10px 12px; border: 1px solid #CDD5E1; border-radius: 9px; font: inherit; background: #fff; }
.tm-field textarea { min-height: 120px; resize: vertical; }
.tm-field input:focus, .tm-field select:focus, .tm-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(192,20,31,.15); }
.tm-hint { font-size: 12px; color: var(--mut); margin: 4px 0 0; }
.tm-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; } .tm-row > .tm-field { flex: 1; min-width: 140px; }
.tm-check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 6px 0; }
.tm-alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; }
.tm-alert-ok { background: #E7F6EE; border-color: #BFE3CF; color: #0B5C37; } .tm-alert-err { background: #FDECEE; border-color: #F2C4C8; color: #8E0E19; }
.tm-alert-info { background: #FDE8EA; border-color: #F6C3C8; color: #9E0F1A; }
.tm-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #EEF2F8; color: var(--mut); }
.tm-badge-blue { background: #FDE8EA; color: var(--blue-d); } .tm-badge-green { background: #E7F6EE; color: #0B5C37; }
.tm-empty { text-align: center; color: var(--mut); padding: 40px 20px; }
.tm-empty i { font-size: 40px; display: block; margin-bottom: 8px; color: #B6C2D6; }
table.tm-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.tm-t th, .tm-t td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tm-t th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); background: #F7F9FC; }
.tm-stat { display: flex; gap: 14px; align-items: center; } .tm-stat i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #FDE8EA; color: var(--blue); font-size: 22px; }
.tm-stat b { display: block; font-size: 24px; } .tm-stat span { color: var(--mut); font-size: 13px; }
/* Soru kartları */
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.q-card .q-img { background: #fff; border-bottom: 1px solid var(--line); padding: 10px; height: 170px; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; }
.q-card .q-img img { max-width: 100%; max-height: 150px; object-fit: contain; }
.q-card .q-text { padding: 10px 12px; height: 170px; overflow: hidden; font-size: 13px; border-bottom: 1px solid var(--line); }
.q-card .q-meta { padding: 10px 12px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.q-card .q-act { padding: 0 12px 12px; display: flex; gap: 6px; }
@media (max-width: 1000px) { .tm-side, .tm-g2, .tm-g3, .tm-g4 { grid-template-columns: 1fr; } .tm-user-name { display: none; } }
@media print { .tm-top, .tm-foot, .no-print { display: none !important; } body { background: #fff; } .tm-main { padding: 0; max-width: none; } }

.tm-pill { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(143,180,255,.25); color: #CFE0FF; margin-left: 2px; }
.tm-pill-off { background: #C0141F; color: #fff; }


/* ---------- Üyelik uyarısı ---------- */
.tm-uyari { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #FFF8E6; border-color: #F5D78E; color: #6B4A00; }
.tm-uyari > i { font-size: 22px; } .tm-uyari > span { flex: 1; min-width: 220px; }

/* ---------- Mobil ---------- */
.tm-menu { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 24px; cursor: pointer; }
.tm-t-kap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 1180px) {
  .tm-top { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .tm-menu { display: grid; place-items: center; order: 3; margin-left: 0; }
  .tm-user { order: 2; margin-left: auto; }
  .tm-nav { order: 4; display: none; flex: 1 0 100%; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; padding: 6px 0 4px; }
  .tm-top.acik .tm-nav { display: grid; }
  .tm-nav a { padding: 11px 12px; background: rgba(255,255,255,.06); }
  .tm-user-name { display: none; }
  .tm-brand small { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .tm-main { padding: 16px 12px 28px; }
  h1 { font-size: 22px; } .tm-lead { margin-bottom: 14px; }
  .tm-card { padding: 14px; border-radius: 12px; }
  .tm-row > .tm-field { min-width: 100%; }
  .tm-row > .tm-btn { flex: 1 1 auto; }
  .tm-cikis-yazi { display: none; }
  .tm-brand strong { font-size: 15px; } .tm-logo { width: 34px; height: 34px; }
  .tm-user .tm-btn-ghost { padding: 8px 10px; }
  .tm-nav { grid-template-columns: 1fr 1fr; }
  /* geniş tablolar yana kayar, sayfa taşmaz */
  table.tm-t:not(.og-t):not(.iz-t):not(.rp-t) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .tm-t th, .tm-t td { padding: 9px 6px; }
  .tm-empty { padding: 28px 10px; }
  .q-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .q-card .q-img, .q-card .q-text { height: 130px; }
  .q-card .q-img img { max-height: 110px; }
  .kko-dugme button { padding: 13px 10px; }
}
@media (max-width: 420px) { .q-grid { grid-template-columns: 1fr; } }
@media (min-width: 1181px) and (max-width: 1520px) { .tm-top { gap: 14px; } .tm-nav a { padding: 8px 9px; font-size: 13.5px; gap: 5px; } .tm-user-name { display: none; } .tm-brand small { display: none; } }

/* Öğrenci girişi (giriş yapılmamış üst menü) */
.tm-top .tm-ogrenci { background: rgba(110,231,168,.14); border-color: rgba(110,231,168,.45); color: #B9F5D3; }
.tm-top .tm-ogrenci:hover { background: rgba(110,231,168,.25); }
@media (max-width: 760px) { .tm-top .tm-site { display: none; } .tm-top .tm-ogrenci, .tm-top .tm-user .tm-btn { padding: 7px 9px; font-size: 12.5px; } .tm-top .tm-user { gap: 6px; } }

/* ---------- Giriş / üye ol ---------- */
.au { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); max-width: 1060px; margin: 6px auto 10px; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px -40px rgba(28,29,34,.45); }
.au-yan { position: relative; padding: 40px 38px; color: #fff; background: radial-gradient(600px 300px at 100% 0%, rgba(192,20,31,.35), transparent 60%), linear-gradient(160deg, #1C1D22, #2A2B31 60%, #3A1418); overflow: hidden; display: flex; flex-direction: column; }
.au-yan::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255,255,255,.04); }
.au-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin-bottom: 34px; }
.au-logo span { width: 40px; height: 40px; border-radius: 11px; background: #fff; padding: 5px; display: grid; place-items: center; } .au-logo img { width: 100%; height: 100%; object-fit: contain; }
.au-logo b { color: #FF8A93; }
.au-yan h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
.au-yan h2 em { font-style: normal; color: #FF8A93; }
.au-yan > p { color: rgba(255,255,255,.72); line-height: 1.6; margin: 0 0 24px; }
.au-liste { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.au-liste li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.88); }
.au-liste i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #FF8A93; font-size: 17px; }
.au-liste b { display: block; color: #fff; }
.au-alinti { margin-top: auto; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px; font-size: 13.5px; color: rgba(255,255,255,.8); line-height: 1.5; position: relative; z-index: 1; }
.au-alinti b { color: #6EE7A8; }
.au-form { padding: 42px 44px; display: flex; flex-direction: column; justify-content: center; }
.au-form h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.02em; }
.au-form .tm-lead { margin-bottom: 24px; }
.au-alan { margin-bottom: 15px; }
.au-alan label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #374151; }
.au-girdi { position: relative; }
.au-girdi > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94A3B8; font-size: 17px; pointer-events: none; }
.au-girdi input[type=text], .au-girdi input[type=email], .au-girdi input[type=password] { width: 100%; padding: 13px 44px 13px 42px; border: 1.5px solid #D5DCE6; border-radius: 12px; font: inherit; font-size: 15.5px; background: #FBFCFE; transition: border-color .15s, box-shadow .15s, background .15s; }
.au-girdi input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(192,20,31,.12); }
.au-goz { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #64748B; width: 36px; height: 36px; border-radius: 9px; cursor: pointer; font-size: 17px; }
.au-goz:hover { background: #F1F5F9; }
.au-iki { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.au-satir { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 2px 0 18px; font-size: 14px; flex-wrap: wrap; }
.au-satir label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.au-satir input[type=checkbox], .au-kosul input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); }
.au-kosul { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #374151; margin: 4px 0 18px; line-height: 1.45; cursor: pointer; }
.au-kosul input { margin-top: 1px; flex: none; }
.au-btn { width: 100%; padding: 14px 18px; border-radius: 12px; border: 0; background: linear-gradient(180deg, #D11A26, #B0121C); color: #fff; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 0 12px 24px -12px rgba(192,20,31,.8); transition: transform .1s, filter .15s; }
.au-btn:hover { filter: brightness(1.06); } .au-btn:active { transform: translateY(1px); }
.au-ayrac { display: flex; align-items: center; gap: 12px; color: #94A3B8; font-size: 13px; margin: 22px 0 14px; }
.au-ayrac::before, .au-ayrac::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.au-alt { text-align: center; font-size: 14.5px; color: var(--mut); margin: 0; }
.au-alt a { font-weight: 700; text-decoration: none; }
.au-ogrenci { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 14px; border-radius: 12px; background: #F0FBF5; border: 1px solid #C9EBD8; color: #0B5C37; text-decoration: none; font-size: 14px; }
.au-ogrenci i { font-size: 18px; } .au-ogrenci span { flex: 1; } .au-ogrenci b { color: #0B5C37; }
.au-guc { height: 5px; border-radius: 9px; background: #EEF2F8; margin-top: 7px; overflow: hidden; } .au-guc i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.au-guc-yazi { font-size: 12px; color: var(--mut); margin-top: 4px; min-height: 16px; }
.au-soru { display: flex; align-items: center; gap: 10px; background: #F7F9FC; border: 1px dashed #CBD5E1; border-radius: 12px; padding: 10px 12px; }
.au-soru span { font-weight: 800; font-size: 15px; white-space: nowrap; }
.au-soru input { width: 90px !important; padding: 10px 12px !important; text-align: center; border: 1.5px solid #D5DCE6; border-radius: 10px; font: inherit; font-weight: 700; }
.au-acilir { border: 0; background: none; padding: 0; color: var(--blue); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; margin: -4px 0 12px; }
@media (max-width: 900px) {
  .au { grid-template-columns: 1fr; border-radius: 18px; }
  .au-yan { padding: 26px 22px; }
  .au-yan h2 { font-size: 23px; } .au-yan > p, .au-alinti { display: none; } .au-liste { margin: 0; gap: 10px; }
  .au-logo { margin-bottom: 16px; }
  .au-form { padding: 28px 20px; order: -1; }
}
@media (max-width: 520px) { .au-iki { grid-template-columns: 1fr; gap: 0; } .au-liste li:nth-child(n+3) { display: none; } }
.au-iki[hidden], .au-acilir[hidden] { display: none; }

/* Profil bağlantısı (üst menüde ad / avatar) */
.tm-profil { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; border-radius: 12px; padding: 3px 8px 3px 3px; }
.tm-profil:hover { background: rgba(255,255,255,.08); }
