/* community özellikleri: topluluk merkezi, destek, cezalar, kadro, başvurular, oylar */

/* ---------- ortak */
.com-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 550; margin-bottom: 14px; }
.com-back .ico { width: 14px; height: 14px; }
.com-back:hover { color: var(--text); text-decoration: none; }
.com-narrow { max-width: 720px; margin: 0 auto; }
.com-break { word-break: break-word; overflow-wrap: anywhere; }
.com-push { margin-left: auto; }
textarea[id^="com-"], textarea[data-q], textarea[data-note] { font-family: var(--font); font-size: 14px; line-height: 1.55; }
.com-count { text-align: right; font-variant-numeric: tabular-nums; }
.com-forgot { text-align: right; margin: -8px 0 16px; font-size: 13px; }
.com-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px;
  background: var(--red); color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 1px;
}
.com-head { width: 28px; height: 28px; border-radius: var(--radius-xs); flex: none; image-rendering: pixelated; background: var(--surface-2); }
.com-head.sm, .com-head-fallback.sm { width: 22px; height: 22px; border-radius: 3px; font-size: 11px; }
.com-head.lg, .com-head-fallback.lg { width: 72px; height: 72px; border-radius: var(--radius-sm); font-size: 28px; }
.com-mini { padding: 10px 16px; margin: 0; }
.com-mini .s-val { font-size: 20px; }
/* app.css'teki ".card + .card" boşluğu ızgaralarda kartları kaydırmasın */
.com-hub > .card, .com-staff > .card, .com-pstats > .card, .com-mystats > .card, .page-title > .card { margin-top: 0; }

/* ---------- topluluk merkezi */
.com-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.com-hub-card { display: flex; align-items: center; gap: 14px; margin: 0; padding: 18px 20px; color: var(--text); transition: border-color .15s, background .15s; }
.com-hub-card:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); text-decoration: none; }
.com-hub-emoji { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--surface-2); color: var(--text); flex: none; border: 1px solid var(--border-2); }
.com-hub-emoji .ico { width: 20px; height: 20px; }
.com-hub-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.com-hub-text b { font-size: 16px; }
.com-hub-arrow { margin-left: auto; color: var(--muted); display: inline-flex; align-items: center; }
.com-hub-arrow .ico { width: 18px; height: 18px; }

/* ---------- destek */
.com-tickets { display: flex; flex-direction: column; gap: 8px; }
.com-ticket {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--text); transition: border-color .15s;
}
.com-ticket:hover { color: var(--text); border-color: var(--border-2); text-decoration: none; }
.com-ticket.unread { border-left: 3px solid var(--accent-text); }
.com-ticket-main { flex: 1; min-width: 0; }
.com-ticket-title { font-weight: 650; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.com-ticket-side { flex: none; }
.com-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-text); flex: none; }
.com-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.com-cat input { position: absolute; opacity: 0; pointer-events: none; }
.com-cat span {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-2);
  background: transparent; color: var(--text-2); font-size: 13px; font-weight: 550; cursor: pointer; transition: background .15s, border-color .15s;
}
.com-cat span:hover { color: var(--text); border-color: var(--border-3); }
.com-cat input:checked + span { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text); }
.com-cat input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.com-thread { display: flex; flex-direction: column; gap: 10px; }
.com-msg { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--bg-2); max-width: 92%; }
.com-msg.mine { align-self: flex-end; background: var(--surface-3); border-color: var(--border-2); }
.com-msg.staff { border-left: 3px solid var(--accent); }
.com-msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.com-msg-head .muted { margin-left: auto; }
.com-msg-body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.com-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.com-filters select { width: auto; min-width: 170px; }
.com-filters input { flex: 1; min-width: 200px; }
.com-reply-row { align-items: center; justify-content: space-between; }
.com-hist { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.com-hist:last-child { border-bottom: 0; }
.com-canned { display: flex; flex-direction: column; gap: 6px; }
.com-canned-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; background: var(--bg-2); }
.com-canned-item summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.com-canned-item summary::-webkit-details-marker { display: none; }
.com-canned-item .com-msg-body { margin-top: 8px; }

/* ---------- cezalar */
.com-pstats { display: flex; gap: 10px; flex-wrap: wrap; }
.com-pname { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.com-ptable td { vertical-align: middle; }
.com-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- kadro */
.com-staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.com-staff-card { text-align: center; margin: 0; padding-top: 24px; overflow: hidden; border-top: 3px solid var(--role); }
.com-staff-head { position: relative; display: flex; justify-content: center; margin-bottom: 12px; }
.com-staff-card h3 { margin: 0 0 6px; overflow-wrap: anywhere; }
.com-role {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-xs); font-size: 12px; font-weight: 600;
  color: color-mix(in srgb, var(--role) 80%, #fff); border: 1px solid color-mix(in srgb, var(--role) 40%, transparent); background: color-mix(in srgb, var(--role) 10%, transparent);
}
.com-discord { margin-top: 10px; overflow-wrap: anywhere; }

/* ---------- başvurular */
.com-form-card { display: flex; flex-direction: column; }
.com-form-emoji { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; margin-bottom: 12px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-2); }
.com-form-emoji .ico { width: 20px; height: 20px; }
.com-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.com-app-status { margin-bottom: 8px; }
.com-note { margin-top: 10px; font-size: 13px; }
.com-answers { display: grid; grid-template-columns: minmax(160px, 30%) 1fr; gap: 8px 18px; font-size: 14px; margin: 0 0 14px; }
.com-answers dt { color: var(--muted); }
.com-answers dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.com-app .card-head > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- oylar */
.com-sites { display: flex; flex-direction: column; gap: 8px; }
.com-site {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--text); transition: border-color .15s;
}
.com-site:hover { color: var(--text); border-color: var(--border-2); text-decoration: none; }
.com-site-n { width: 26px; height: 26px; border-radius: var(--radius-xs); display: grid; place-items: center; background: var(--surface-2); font-weight: 700; color: var(--muted); flex: none; font-size: 13px; }
.com-site-name { flex: 1; min-width: 0; font-weight: 650; overflow-wrap: anywhere; }
.com-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.com-top li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border); }
.com-top li:last-child { border-bottom: 0; }
.com-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.com-rank { width: 28px; text-align: center; flex: none; }
.com-votes { font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.com-top.compact li { padding: 7px 4px; }
.com-mystats { margin-bottom: 16px; }
.com-mystats .card { margin: 0; }
.com-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.com-recent-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); min-width: 0; }
.com-recent-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.com-home-cta { display: flex; flex-direction: column; justify-content: center; }
.com-home-emoji { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; margin-bottom: 12px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-2); }
.com-home-emoji .ico { width: 20px; height: 20px; }

@media (max-width: 1100px) {
  #nav .com-badge { margin-left: 8px; }
}
@media (max-width: 560px) {
  .com-hub { grid-template-columns: 1fr; }
  .com-staff { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .com-head.lg, .com-head-fallback.lg { width: 60px; height: 60px; font-size: 24px; }
  .com-msg { max-width: 100%; }
  .com-ticket { flex-wrap: wrap; }
  .com-answers { grid-template-columns: 1fr; gap: 2px; }
  .com-answers dd { margin-bottom: 8px; }
  .com-filters select, .com-filters input { width: 100%; min-width: 0; }
  .com-recent { grid-template-columns: 1fr; }
  .com-pstats { width: 100%; }
  .com-pstats .com-mini { flex: 1; }
  /* ceza tablosu telefonda kart görünümü */
  .com-ptable, .com-ptable tbody { display: block; }
  .com-ptable thead { display: none; }
  .com-ptable tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .com-ptable tr:last-child { border-bottom: 0; }
  .com-ptable td { border: 0; padding: 0; }
  .com-ptable td:first-child { flex: 1 1 auto; }
  .com-ptable td[data-l] { flex: 1 1 100%; white-space: normal; }
  .com-ptable td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-weight: 600; }
  .com-ptable td[data-l] .tiny { display: inline; margin-left: 6px; }
}
.com-app-list { margin-top: 16px; }
.com-app-list > .card + .card { margin-top: 12px; }
