/* Kocly Hata Defteri — uygulamaya özgü stiller */

.due-hero { position: relative; overflow: hidden; }
.due-n { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.due-n small { font-size: 15px; font-weight: 500; opacity: .7; }
.due-mascot { width: 92px; height: auto; margin: -10px -6px -14px 0; }
.stat .v.sm { font-size: 18px; }
.stat .v small { font-size: 13px; opacity: .6; }
.card.hero .btn.yellow svg { width: 20px; height: 20px; }
.onboarding img { width: 140px; }

.search { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 48px; border-radius: 15px; background: var(--card); box-shadow: var(--shadow); margin-bottom: 10px; }
.search svg { width: 18px; height: 18px; color: var(--ink-3); }
.search input { flex: 1; border: 0; background: none; font-size: 16px; min-width: 0; }
.search input:focus { outline: none; }
.status-seg { margin: 4px 0 14px; }

.item-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.item-grid > .card { grid-column: 1 / -1; }
@media (min-width: 520px) { .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.item { display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); text-align: left; transition: transform .12s; }
.item:active { transform: scale(.98); }
.thumb { position: relative; aspect-ratio: 4 / 3; background: var(--surface); display: grid; place-items: center; color: var(--ink-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb > svg { width: 32px; height: 32px; }
.box-pill { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(15, 58, 66, .78); color: #fff; font-size: 10.5px; font-weight: 600; }
.item-body { padding: 10px 12px 12px; display: grid; gap: 3px; justify-items: start; }
.item-subj { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); }
.item-topic { font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-meta { display: flex; align-items: center; gap: 6px; color: var(--ink-2); margin-bottom: 4px; }
.err-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.badge svg { width: 12px; height: 12px; }

.fab {
  position: fixed; z-index: 25;
  right: max(16px, calc(50% - 280px + 16px));
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  display: inline-flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 20px 0 18px;
  border: 0; border-radius: 18px;
  background: var(--yellow); color: var(--teal-deep);
  font-weight: 600; font-size: 15px;
  box-shadow: 0 12px 28px rgba(15, 58, 66, .28);
}
.fab svg { width: 22px; height: 22px; }
@media (min-width: 700px) { .fab { bottom: calc(var(--tabbar-h) + 40px); } }
.tabbar .tab-ic { position: relative; }
.tab-badge { position: absolute; top: -4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }

/* Düzenleyici */
.photo-slot { position: relative; border: 2px dashed var(--teal-mid); border-radius: 18px; padding: 12px; margin-bottom: 14px; background: var(--surface); }
.photo-slot.has { border-style: solid; border-color: var(--line); background: #fff; }
.photo-slot.busy { opacity: .6; pointer-events: none; }
.photo-slot.busy::after { content: "Hazırlanıyor…"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; color: var(--teal-deep); }
.photo-preview img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; background: var(--surface); margin-bottom: 10px; }
.photo-empty { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 10px 0 12px; }
.photo-slot.has .photo-empty { display: none; }
.pe-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--teal); margin-bottom: 6px; box-shadow: var(--shadow); }
.pe-ic svg { width: 26px; height: 26px; }
.photo-actions { display: flex; gap: 8px; justify-content: center; }
.photo-actions .btn svg { width: 18px; height: 18px; }
.photo-actions label.btn { cursor: pointer; }
.sol-details { margin-bottom: 14px; }
.sol-details summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--teal); padding: 8px 0 10px; list-style: none; }
.sol-details summary::-webkit-details-marker { display: none; }
.sol-details summary::before { content: "+ "; }
.sol-details[open] summary::before { content: "− "; }
.letters { display: flex; gap: 4px; flex-wrap: wrap; }
.letters button { min-width: 36px; height: 38px; padding: 0 6px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; font-weight: 600; font-size: 14px; }
.letters button[aria-pressed="true"] { background: var(--danger); border-color: var(--danger); color: #fff; }
.letters.ok button[aria-pressed="true"] { background: var(--success); border-color: var(--success); }

/* Ayrıntı */
.detail-head { display: flex; gap: 6px; margin-bottom: 8px; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: var(--surface); border-radius: 16px; overflow: hidden; margin-bottom: 12px; cursor: zoom-in; }
.zoom img { width: 100%; max-height: 380px; object-fit: contain; }
.detail-facts { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.detail-facts > div { padding: 10px 12px; border-radius: 14px; background: var(--surface); display: grid; }
.detail-facts b { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.detail-facts b.ok { color: var(--success); }
.note-box { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--yellow-soft); color: #5e4300; font-size: 14px; margin-bottom: 12px; }
.note-box svg { width: 20px; height: 20px; flex: none; }
.tip-box { padding: 12px 14px; border-radius: 14px; background: var(--teal-soft); font-size: 13.5px; }
.tip-box b { display: block; color: var(--teal-deep); margin-bottom: 2px; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.detail-actions .btn svg { width: 18px; height: 18px; }

.zoom-view { position: fixed; inset: 0; z-index: 90; background: rgba(8, 20, 22, .94); display: grid; place-items: center; padding: 16px; animation: fadeIn .15s; }
.zoom-view img { max-width: 100%; max-height: 100%; object-fit: contain; touch-action: pinch-zoom; }
.zoom-view .icon-btn { position: absolute; top: calc(16px + var(--safe-t)); right: 16px; }

/* Tekrar */
.review-start { text-align: center; }
.review-start img { width: 120px; margin: 0 auto 8px; }
.review-start h2 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.review-start p { margin-bottom: 16px; font-size: 14px; }
.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-top .bar { height: 10px; }
.review-card { padding: 14px; }
.review-hint { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.reveal { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); animation: fade .25s ease; }
.answer-pill { display: inline-block; padding: 8px 14px; border-radius: 12px; background: var(--success-soft); color: var(--success); font-size: 14px; margin-bottom: 10px; }
.big-reveal { min-height: 56px; font-size: 16px; }
.grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g { display: grid; gap: 2px; justify-items: center; padding: 12px 6px; border: 0; border-radius: 16px; font-size: 14px; }
.g b { font-weight: 600; }
.g span { font-size: 11px; opacity: .8; }
.g.again { background: var(--danger-soft); color: var(--danger); }
.g.hard { background: var(--yellow-soft); color: #8a5c00; }
.g.good { background: var(--success); color: #fff; box-shadow: 0 8px 18px rgba(47, 158, 107, .3); }
.boxes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.boxes div { display: grid; justify-items: center; padding: 8px 2px; border-radius: 12px; background: #fff; font-size: 12px; }
.boxes b { font-weight: 600; font-size: 11px; color: var(--teal); }
.summary .stat .v { font-size: 26px; }

/* Analiz */
.a-stats { margin-bottom: 14px; }
.a-stats .stat { background: var(--card); box-shadow: var(--shadow); }
.insight h3 { font-size: 20px; font-weight: 600; margin: 2px 0 6px; }
.insight p { font-size: 14px; opacity: .9; }
.hbar { margin-bottom: 10px; }
.hbar .bar { margin-top: 4px; }
.rank { width: 26px; height: 26px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--yellow-soft); color: #8a5c00; font-weight: 600; font-size: 13px; }
.data-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.data-actions .btn { flex: 1 1 auto; }
.empty.slim { padding: 18px; }
