/* KodNav — işbirliği özellikleri: bildirimler, etiketler, tepkiler, pano, öneriler, wiki, arama, vitrin, takvim */

/* ===================== Bildirim zili ===================== */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius); font-size: 17px; text-decoration: none; flex: none; }
.bell:hover { background: var(--bg-3); text-decoration: none; }
.bell-count { position: absolute; top: 1px; right: -2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }
.notif { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--bg-3); text-decoration: none; }
.notif.unread { background: rgba(56, 139, 253, .08); box-shadow: inset 3px 0 0 var(--link); }
.notif-icon { font-size: 18px; flex: none; }
.notif-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.notif-title { color: var(--link); overflow-wrap: anywhere; }
.notif-time { font-size: 12px; flex: none; white-space: nowrap; }

/* ===================== Konu etiketleri ===================== */
.label { --label: #8b949e; display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 2em; font-size: 11px; font-weight: 600; line-height: 18px; white-space: nowrap;
  color: color-mix(in srgb, var(--label) 55%, var(--text)); background: color-mix(in srgb, var(--label) 22%, transparent); border: 1px solid color-mix(in srgb, var(--label) 50%, transparent); }
a.label:hover { text-decoration: none; filter: brightness(1.15); }
.label-dot { --label: #8b949e; width: 10px; height: 10px; border-radius: 50%; background: var(--label); display: inline-block; }
.label-list { display: flex; flex-wrap: wrap; gap: 4px; }
.label-picker { display: flex; flex-direction: column; gap: 6px; }
.label-check { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 400; }
.label-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.label-form label { flex: 1 1 200px; }
.label-form label:nth-of-type(2) { flex: 0 0 auto; }
input[type=color] { width: 48px; height: 36px; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); cursor: pointer; }
.lbl-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.lbl-row:last-child { border-bottom: 0; }
.label-edit { margin-left: auto; }
.label-edit summary { cursor: pointer; list-style: none; }
.label-edit[open] { flex-basis: 100%; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lbl-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lbl-form input:not([type=color]) { width: auto; flex: 1 1 140px; }
.label-filter { margin-top: -4px; }
.assignee, .issue-assignee, .board-assignee { display: inline-flex; align-items: center; gap: 6px; }
.issue-assignee .avatar, .board-assignee .avatar { width: 20px; height: 20px; font-size: 10px; }

/* ===================== Tepkiler ===================== */
.reactions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; align-items: center; }
.reaction { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border: 1px solid var(--border); border-radius: 2em; background: var(--bg-2); color: var(--text); font-size: 13px; cursor: pointer; line-height: 20px; }
.reaction:hover { border-color: var(--muted); }
.reaction.mine { background: rgba(56, 139, 253, .15); border-color: var(--link); }
.reaction span { font-size: 12px; font-weight: 600; }
.reaction-picker { position: relative; }
.reaction-picker summary { list-style: none; color: var(--muted); }
.reaction-picker summary::-webkit-details-marker { display: none; }
.reaction-menu { position: absolute; z-index: 20; bottom: calc(100% + 6px); left: 0; display: flex; gap: 2px; padding: 4px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px var(--shadow); }
.reaction-option { font-size: 18px; padding: 4px 6px; background: none; border: 0; border-radius: var(--radius); cursor: pointer; }
.reaction-option:hover { background: var(--bg-3); }

/* ===================== Görev panosu ===================== */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.board-col { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; min-height: 160px; transition: border-color .15s, background .15s; }
.board-col.drop-target { border-color: var(--link); background: rgba(56, 139, 253, .06); }
.board-col-head { font-size: 14px; margin: 2px 4px 10px; display: flex; align-items: center; gap: 6px; }
.board-cards { display: flex; flex-direction: column; gap: 8px; }
.board-card { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.board-card.movable { cursor: grab; }
.board-card.dragging { opacity: .45; }
.board-card.saving { opacity: .6; pointer-events: none; }
.board-title { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.board-meta { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12px; }
.board-move select { width: 100%; padding: 4px 6px; font-size: 12px; }
.board-empty { text-align: center; padding: 16px 0; margin: 0; font-size: 13px; }
@media (max-width: 860px) { .board { grid-template-columns: 1fr; } }

/* ===================== Değişiklik önerileri ===================== */
.state-pill.proposal-open { background: #238636; }
.state-pill.proposal-merged { background: #8957e5; }
.state-pill.proposal-closed { background: #6e7681; }
.change { border-bottom: 1px solid var(--border); }
.change:last-child { border-bottom: 0; }
.change-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; cursor: pointer; flex-wrap: wrap; }
.change-head::-webkit-details-marker { display: none; }
.change-kind { width: 20px; height: 20px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; color: #fff; }
.change-kind.plus { background: #238636; }
.change-kind.mod { background: #9e6a03; }
.change-kind.minus { background: #da3633; }
.change-path { overflow-wrap: anywhere; background: none; }
.badge-conflict { color: #e3b341; border-color: rgba(210, 153, 34, .5); }
.merge-box { margin-top: 16px; border-color: rgba(137, 87, 229, .5); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.forked-from { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fork-tools { gap: 6px; }

/* ===================== Wiki ===================== */
.wiki-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; align-items: start; }
.wiki-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.wiki-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wiki-body { padding: 24px 28px; }
.wiki-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; }
.wiki-side h3 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.wiki-nav { display: flex; flex-direction: column; }
.wiki-nav a { padding: 6px 8px; border-radius: var(--radius); color: var(--text); overflow-wrap: anywhere; }
.wiki-nav a:hover { background: var(--bg-3); text-decoration: none; }
.wiki-nav a.active { background: var(--bg-3); font-weight: 600; box-shadow: inset 2px 0 0 var(--link); }
.wiki-empty { padding: 40px 24px; }
.danger-inline { margin-top: 12px; }
.active-row { background: var(--bg-3); }
@media (max-width: 860px) {
  .wiki-layout { grid-template-columns: 1fr; }
  .wiki-side { position: static; order: -1; }
  .wiki-body { padding: 16px; }
}

/* ===================== Kodda arama ===================== */
.repo-search { margin: 0 0 12px; }
.repo-search input { max-width: 360px; }
.code-search { display: flex; gap: 8px; padding: 12px; margin-bottom: 16px; }
.code-search input { flex: 1; min-width: 0; }
.search-files a { display: block; padding: 8px 16px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.search-files a:last-child { border-bottom: 0; }
.search-result { margin-bottom: 12px; overflow: hidden; }
.search-path { display: block; overflow-wrap: anywhere; }
.search-line { display: flex; gap: 12px; padding: 4px 16px; color: var(--text); font-family: var(--mono); font-size: 12px; border-top: 1px solid var(--border); }
.search-line:hover { background: var(--bg-3); text-decoration: none; }
.search-line .ln { color: var(--muted); min-width: 36px; text-align: right; flex: none; }
.search-line code { white-space: pre-wrap; overflow-wrap: anywhere; background: none; padding: 0; }
.search-line mark { background: rgba(210, 153, 34, .4); color: inherit; border-radius: 2px; padding: 0 1px; }
.search-more { padding: 6px 16px; font-size: 12px; border-top: 1px solid var(--border); }

/* ===================== Ana sayfa vitrini ve etkinlik ===================== */
.home-columns { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin-bottom: 28px; }
.home-side { display: flex; flex-direction: column; gap: 12px; }
.showcase-box h3 { font-size: 14px; margin: 0 0 8px; }
.showcase-row { display: flex; flex-direction: column; gap: 1px; padding: 7px 0; border-top: 1px solid var(--border); color: var(--text); overflow-wrap: anywhere; }
.showcase-row:hover { text-decoration: none; color: var(--link); }
.tag-pill { display: inline-block; padding: 0 7px; border-radius: 2em; background: rgba(35, 134, 54, .2); color: var(--green-text); font-size: 11px; font-weight: 600; font-family: var(--mono); }
.featured-grid { margin-bottom: 24px; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.activity li:first-child { border-top: 0; }
.activity-icon { flex: none; width: 22px; text-align: center; }
.activity-text { min-width: 0; overflow-wrap: anywhere; }
.activity-repo { font-weight: 600; }
.activity-detail { color: var(--text); }
.activity-time { display: block; font-size: 12px; }
.profile-activity { margin-bottom: 16px; }
.profile-activity summary { cursor: pointer; margin-bottom: 4px; }
@media (max-width: 860px) { .home-columns { grid-template-columns: 1fr; } }

/* ===================== Katkı takvimi ===================== */
.calendar-card { margin-bottom: 16px; }
.calendar-head { margin-bottom: 8px; }
.calendar-scroll { overflow-x: auto; }
.calendar { display: block; }
.cal-label { fill: var(--muted); font-size: 9px; }
.cal-l0 { fill: var(--bg-3); background: var(--bg-3); }
.cal-l1 { fill: #0e4429; background: #0e4429; }
.cal-l2 { fill: #006d32; background: #006d32; }
.cal-l3 { fill: #26a641; background: #26a641; }
.cal-l4 { fill: #39d353; background: #39d353; }
.calendar-legend { display: flex; align-items: center; gap: 3px; justify-content: flex-end; font-size: 11px; margin-top: 6px; }
.calendar-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* ===================== Giriş daveti (paylaşılan repo linki) ===================== */
.gate { max-width: 520px; margin: 48px auto; text-align: center; }
.gate h1 { overflow-wrap: anywhere; }
.btn-row.center { justify-content: center; }

/* Katkı takvimi: açık temada GitHub'ın açık yeşilleri */
:root[data-theme="light"] .cal-l1 { fill: #9be9a8; background: #9be9a8; }
:root[data-theme="light"] .cal-l2 { fill: #40c463; background: #40c463; }
:root[data-theme="light"] .cal-l3 { fill: #30a14e; background: #30a14e; }
:root[data-theme="light"] .cal-l4 { fill: #216e39; background: #216e39; }
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] .cal-l1 { fill: #9be9a8; background: #9be9a8; }
  :root[data-theme="auto"] .cal-l2 { fill: #40c463; background: #40c463; }
  :root[data-theme="auto"] .cal-l3 { fill: #30a14e; background: #30a14e; }
  :root[data-theme="auto"] .cal-l4 { fill: #216e39; background: #216e39; }
}

/* Tema seçici */
.theme-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 2em; overflow: hidden; }
.theme-switch button { background: none; border: 0; color: var(--muted); padding: 4px 10px; font-size: 12px; cursor: pointer; }
.theme-switch button:hover { color: var(--text); background: var(--bg-3); }
.theme-switch button.active { background: var(--bg-3); color: var(--text); font-weight: 600; }

.footer-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Logolar açık renkli tek renk silüetler: açık temada koyulaştırılır (şekil ve saydamlık korunur) */
:root[data-theme="light"] :is(.logo-mark, .welcome-goat, .hero-logo, .auth-logo, .admin-brand img, .error-code img, .error-goat, .footer-brand img) { filter: brightness(.2); }
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] :is(.logo-mark, .welcome-goat, .hero-logo, .auth-logo, .admin-brand img, .error-code img, .error-goat, .footer-brand img) { filter: brightness(.2); }
}

/* Geniş takvim, profil sütununu genişletip telefonda sayfayı taşırmasın */
.profile > *, .profile-main { min-width: 0; }
.calendar-card { max-width: 100%; }
