/* Confmigo paneli — Ürün ve tasarım sistemi sekmesindeki belirteçler. Satır içi stil yok (CSP). */
:root {
  --primary: #0160D8; --primary-hover: #014fb3; --violet: #7403F3;
  --text: #101828; --text-muted: #475467; --text-subtle: #667085;
  --success: #067647; --warning: #B54708; --danger: #B42318;
  --bg: #F8FAFC; --surface: #FFFFFF; --border: #E4E7EC; --navy: #020724;
  --radius: 8px; --font-head: "Outfit", system-ui, sans-serif; --font-body: "Manrope", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font-body); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); }
a { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 26px; } h2 { font-size: 19px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; } .skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Düzen */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #E5E9F2; padding: 20px 16px; display: flex; flex-direction: column; gap: 20px; }
.brand { color: #fff; text-decoration: none; font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.brand-accent { color: #00CBEC; }
.org-switch summary { cursor: pointer; padding: 10px 12px; border-radius: var(--radius); background: rgba(255,255,255,.08); list-style: none; }
.org-switch summary::-webkit-details-marker { display: none; }
.org-switch form { margin: 0; } .org-switch button { width: 100%; text-align: left; background: none; border: 0; color: #E5E9F2; padding: 8px 12px; cursor: pointer; border-radius: var(--radius); font: inherit; }
.org-switch button:hover { background: rgba(255,255,255,.08); }
.org-switch .org-new { display: block; padding: 8px 12px; color: #9BD8FF; }
.nav a { display: block; padding: 9px 12px; border-radius: var(--radius); color: #E5E9F2; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.nav .soon { color: #8A94A6; padding: 9px 12px; display: block; }
.sidebar-foot { margin-top: auto; font-size: 13px; color: #B8C0D0; }
.sidebar-foot form { margin-top: 8px; }
.sidebar-foot button { background: none; border: 1px solid rgba(255,255,255,.25); color: #E5E9F2; padding: 6px 12px; border-radius: var(--radius); cursor: pointer; font: inherit; }
.main { padding: 32px 40px; max-width: 1080px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }

/* Bileşenler */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.btn, button[type="submit"] { display: inline-block; background: var(--primary); color: #fff; border: 0; border-radius: var(--radius); padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover, button[type="submit"]:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--surface); color: var(--danger); border: 1px solid var(--border); }
.btn-small { padding: 6px 10px; min-height: 36px; font-size: 14px; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select {
  width: 100%; max-width: 420px; padding: 10px 12px; border: 1px solid #D0D5DD; border-radius: var(--radius); font: inherit; background: #fff; }
form > div, form > p { margin-bottom: 14px; }
.helptext, .help { color: var(--text-subtle); font-size: 13px; }
.errorlist { color: var(--danger); margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--text-muted); font-weight: 600; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.inline-form select { width: auto; padding: 6px 8px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #EEF4FF; color: var(--primary); }
.badge-violet { background: #F4EBFF; color: var(--violet); }
.messages { list-style: none; padding: 0; margin: 0 0 20px; }
.messages li { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 8px; background: #EEF4FF; border: 1px solid #C7D7FE; }
.messages .success { background: #ECFDF3; border-color: #ABEFC6; color: var(--success); }
.messages .error { background: #FEF3F2; border-color: #FECDCA; color: var(--danger); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #D0D5DD; flex: none; }
.check.done { background: var(--success); border-color: var(--success); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 28px; }
.muted { color: var(--text-muted); }

/* Giriş ve kayıt ekranları */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--navy); }
.auth-card { background: #fff; border-radius: 12px; padding: 32px; width: 100%; max-width: 440px; }
.auth-card .brand { color: var(--navy); display: block; margin-bottom: 20px; }
.auth-card .brand-accent { color: var(--primary); }
.auth-card input { max-width: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .main { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Etkinlik ekranları ve site düzenleyici */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--text-muted); border-bottom: 2px solid transparent; }
.tabs a[aria-current="page"], .tabs a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.editor { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.editor-pages h2 { font-size: 16px; } .plain { list-style: none; padding: 0; margin: 0 0 16px; } .plain li a { display: block; padding: 6px 0; }
.plain a[aria-current="page"] { font-weight: 700; }
.block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.block textarea { width: 100%; max-width: 640px; padding: 10px 12px; border: 1px solid #D0D5DD; border-radius: var(--radius); font: inherit; }
.notice { background: #FFFAEB; border-color: #FEDF89; }
.notice ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
input[type="date"] { padding: 10px 12px; border: 1px solid #D0D5DD; border-radius: var(--radius); font: inherit; }
@media (max-width: 860px) { .editor { grid-template-columns: 1fr; } }

/* Yazar alanı (kenar çubuğu olmayan düzen) */
.topbar { background: #fff; border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 960px; margin: 0 auto; padding: 12px 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.brand-dark { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--navy); }
.brand-accent-dark { color: var(--primary); }
.topbar-user { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; }
.main.narrow { max-width: 960px; margin: 0 auto; }
.counter { font-size: 13px; color: var(--text-subtle); } .counter.over { color: var(--danger); font-weight: 600; }
.autosave-status { font-size: 13px; color: var(--text-subtle); min-height: 1.4em; }
.author-row { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.author-row summary { cursor: pointer; font-weight: 600; }
.checkbox-row { display: flex; gap: 18px; align-items: center; } .checkbox-row label { display: inline; font-weight: 500; }
.problems li { color: var(--danger); } .leaks li { color: var(--warning); }
.prewrap { white-space: pre-wrap; }

/* QR ve yaka kartları */
.qr { display: block; width: 160px; height: 160px; } .qr path { fill: #000; } .qr-large { width: 240px; height: 240px; }
.qr-badge { width: 34mm; height: 34mm; margin: 0 auto; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.badge-card { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-align: center; background: #fff; }
.pair-link { word-break: break-all; font-size: 13px; }
.stat-big { font-family: var(--font-head); font-size: 40px; font-weight: 600; }

/* Sertifika tasarım galerisi */
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.design-card { display: flex; flex-direction: column; gap: 6px; border: 2px solid var(--border); border-radius: var(--radius); padding: 8px; cursor: pointer; background: #fff; font-weight: 500; }
.design-card img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.design-card input { position: absolute; opacity: 0; }
.design-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px #C7D7FE; }
.design-card:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.design-name { font-size: 14px; } .design-card a { font-size: 13px; }

/* Sertifika düzenleyici ve paylaşım */
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 12px 0; align-items: end; }
input[type="color"] { width: 64px; height: 40px; padding: 2px; border: 1px solid #D0D5DD; border-radius: var(--radius); background: #fff; }
textarea { width: 100%; max-width: 720px; padding: 10px 12px; border: 1px solid #D0D5DD; border-radius: var(--radius); font: inherit; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.asset { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; text-align: center; background: repeating-conic-gradient(#F2F4F7 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.asset img { max-width: 100%; max-height: 70px; } .asset figcaption { font-size: 12px; margin: 6px 0; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.btn-linkedin { background: #0A66C2; } .btn-linkedin:hover { background: #004182; }
.credential { max-width: 680px; } .credential-image { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); margin: 8px 0 12px; }
input[readonly] { width: 100%; background: #F9FAFB; }
