/* Öğrenme Atölyesi · kabuk (ders seçimi, hesap, arkadaşlık, lig, yönetim) */
:root { --course-art: #a78bfa; --course-math: #38d6c4; --course-oop: #4ea8ff; --page-width: 1100px; --top: 64px; }
.top { height: var(--top); }
.hud-chip { display: inline-flex; align-items: center; gap: 6px; font: 700 .875rem var(--mono); color: var(--ink); min-height: 36px; padding: 0 10px; border-radius: var(--rp); background: var(--panel2); text-decoration: none; }
.hud-chip.fire b { color: var(--amber); } .hud-chip.xp b { color: var(--amber); }
.tabbar { grid-template-columns: repeat(var(--tabs, 5), 1fr); }
.page { max-width: var(--page-width); margin: 0 auto; }
.heading { margin: 0 0 var(--s5); } .heading h1 { margin: 8px 0 6px; } .heading p { color: var(--muted); margin: 0; max-width: 60ch; }
.muted { color: var(--muted); } .small { font-size: .8125rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s4); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s5); align-items: start; }
.aside { display: grid; gap: var(--s4); }
@media (max-width: 899px) { .split { grid-template-columns: minmax(0, 1fr); } }
/* duyuru */
.notice-b { display: flex; gap: var(--s3); align-items: flex-start; background: var(--info-soft); border: 2px solid var(--info); border-radius: var(--r2); padding: var(--s3) var(--s4); margin-bottom: var(--s4); }
.notice-b b { display: block; } .notice-b p { margin: 2px 0 0; }
/* ders kartı */
.course { position: relative; display: grid; gap: var(--s3); background: var(--panel); border: 2px solid var(--line); border-radius: var(--r3); padding: var(--s5); overflow: hidden; }
.course::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--cc); }
.course-ic { width: 64px; height: 64px; border-radius: var(--r2); background: var(--cc); display: grid; place-items: center; color: #151515; }
.course-ic svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.course h2 { margin: 0; font-size: 1.375rem; } .course p { margin: 0; color: var(--muted); }
.course .meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font: 600 .8125rem var(--mono); color: var(--muted); }
.course .meta b { color: var(--ink); }
.course.mat { --cc: var(--course-math); } .course.tarih { --cc: var(--course-art); } .course.oop { --cc: var(--course-oop); }
.course .btn { justify-self: start; }
.pbar { display: block; height: 12px; border-radius: var(--rp); background: var(--raise); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--cc, var(--accent)); border-radius: var(--rp); transition: width .4s var(--ease); }
/* günlük şerit */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s3); margin-bottom: var(--s5); }
.tile { background: var(--panel); border: 2px solid var(--line); border-radius: var(--r2); padding: var(--s3) var(--s4); }
.tile b { display: block; font: 700 1.5rem var(--disp); } .tile b.amber { color: var(--amber); } .tile span { font-size: .8125rem; color: var(--muted); }
/* geçiş ekranı */
.go { min-height: calc(100vh - var(--top) - 80px); display: grid; place-items: center; text-align: center; }
.go-in { display: grid; gap: var(--s4); justify-items: center; max-width: 440px; }
.go .course-ic { width: 112px; height: 112px; border-radius: 30px; background: var(--cc); animation: pop .6s var(--ease) both; }
.go .course-ic svg { width: 60px; height: 60px; }
.go h1 { margin: 0; } .go p { margin: 0; color: var(--muted); }
.go-bar { width: min(320px, 80vw); height: 12px; border-radius: var(--rp); background: var(--raise); overflow: hidden; } .go-bar i { display: block; height: 100%; width: 0; background: var(--cc); animation: fill 1.6s linear forwards; }
@keyframes pop { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } } @keyframes fill { to { width: 100%; } }
/* avatar */
.av { display: inline-grid; place-items: center; flex: none; width: var(--sz, 44px); height: var(--sz, 44px); border-radius: 50%; background: var(--avc); color: #151515; font: 700 calc(var(--sz, 44px) * .42) var(--disp); border: 2px solid rgba(0,0,0,.25); user-select: none; }
.av.c0 { --avc: #38d6c4; } .av.c1 { --avc: #f6b73c; } .av.c2 { --avc: #a78bfa; } .av.c3 { --avc: #ff9fc0; } .av.c4 { --avc: #7ee02f; } .av.c5 { --avc: #56b4e9; } .av.c6 { --avc: #f59e42; } .av.c7 { --avc: #ff8a8a; }
.av-pick { display: flex; flex-wrap: wrap; gap: var(--s2); } .av-pick label { position: relative; cursor: pointer; border-radius: 50%; padding: 3px; border: 3px solid transparent; display: inline-flex; } .av-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; } .av-pick input:checked + .av { outline: 3px solid var(--accent); outline-offset: 3px; } .av-pick input:focus-visible + .av { outline: 3px solid var(--ink); outline-offset: 3px; }
/* liste satırı */
.list { display: grid; gap: var(--s3); }
.person { display: flex; align-items: center; gap: var(--s3); background: var(--panel); border: 2px solid var(--line); border-radius: var(--r2); padding: var(--s3) var(--s4); }
.person.me { border-color: var(--accent); background: var(--accent-soft); }
.person .who { min-width: 0; flex: 1; } .person .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .person .who span { font-size: .8125rem; color: var(--muted); }
.person .nums { display: flex; gap: var(--s3); font: 700 .875rem var(--mono); flex-wrap: wrap; justify-content: flex-end; } .person .nums .fire { color: var(--amber); }
.person .acts { display: flex; gap: var(--s2); flex-wrap: wrap; }
.rank { width: 32px; text-align: center; font: 700 1.125rem var(--disp); flex: none; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); align-items: end; margin-bottom: var(--s5); }
.pod { display: grid; justify-items: center; gap: 4px; background: var(--panel); border: 2px solid var(--line); border-radius: var(--r2); padding: var(--s3) var(--s2); text-align: center; min-width: 0; } .pod b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pod.p1 { padding-bottom: var(--s5); border-color: var(--amber); } .pod .medal { font: 700 1.25rem var(--disp); }
.feed-i { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) 0; border-bottom: 1px solid var(--line); } .feed-i:last-child { border: 0; } .feed-i p { margin: 0; } .feed-i small { color: var(--muted); }
.tag { display: inline-block; font: 700 .6875rem var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--rp); background: var(--panel2); color: var(--muted); } .tag.ok { background: var(--ok-soft); color: var(--ok); } .tag.bad { background: var(--bad-soft); color: var(--bad); } .tag.adm { background: var(--violet-soft); color: var(--violet); }
.badge-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--rp); background: var(--bad); color: #151515; font: 700 .75rem var(--mono); margin-left: 4px; }
:root[data-theme="light"] .badge-n { color: #fff; }
.rl { position: relative; }
.empty { text-align: center; color: var(--muted); padding: var(--s6) var(--s4); border: 2px dashed var(--line); border-radius: var(--r3); }
/* formlar */
.auth { max-width: 440px; margin: var(--s6) auto; }
.auth .card { display: grid; gap: var(--s4); }
.fld input, .fld select, .fld textarea { font: inherit; min-height: 44px; padding: 8px 12px; border-radius: var(--r2); border: 2px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; box-sizing: border-box; }
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { outline: none; box-shadow: var(--focus); border-color: var(--accent); }
.fld small { color: var(--muted); } .err { color: var(--bad); font-weight: 600; min-height: 1.4em; margin: 0; }
.inline-form { display: flex; gap: var(--s2); flex-wrap: wrap; } .inline-form .fld { flex: 1 1 200px; }
/* yönetim */
.tbl-w { overflow-x: auto; border: 2px solid var(--line); border-radius: var(--r2); }
.tbl-w table { border-collapse: collapse; width: 100%; font-size: .875rem; } .tbl-w th, .tbl-w td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; } .tbl-w th { font: 700 .6875rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--panel2); } .tbl-w tr:last-child td { border-bottom: 0; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 90px; margin-top: var(--s3); } .spark i { flex: 1; min-height: 3px; background: var(--accent); border-radius: 4px 4px 0 0; }
.code-b { font: 700 1.5rem var(--mono); letter-spacing: .1em; background: var(--panel2); padding: var(--s3) var(--s4); border-radius: var(--r2); display: inline-block; user-select: all; }
.sync { font: 500 .75rem var(--mono); color: var(--muted); }
@media (max-width: 560px) { .person { flex-wrap: wrap; } .person .nums { justify-content: flex-start; } .hud-chip.xp { display: none; } }
@media (prefers-reduced-motion: reduce) { .go .course-ic, .go-bar i { animation: none; } .go-bar i { width: 100%; } .pbar i { transition: none; } }
#notice { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab) + 16px + env(safe-area-inset-bottom)); z-index: 60; max-width: min(92vw, 520px); pointer-events: none; }
#notice.show { background: var(--panel2); border: 2px solid var(--accent); border-radius: var(--r2); padding: var(--s3) var(--s4); font-weight: 600; box-shadow: var(--sh2); }
@media (min-width: 900px) { #notice { bottom: 24px; } }
