/* 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: 600; margin-bottom: 14px; }
.com-back:hover { color: var(--text); }
.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: 999px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; vertical-align: 1px;
  box-shadow: 0 0 0 2px rgba(7, 9, 15, .9);
}
.com-head { width: 28px; height: 28px; border-radius: 8px; flex: none; image-rendering: pixelated; background: var(--surface-2); }
.com-head.sm, .com-head-fallback.sm { width: 24px; height: 24px; border-radius: 7px; font-size: 12px; }
.com-head.lg, .com-head-fallback.lg { width: 84px; height: 84px; border-radius: 20px; font-size: 34px; }
.com-mini { padding: 12px 18px; margin: 0; }
.com-mini .s-val { font-size: 22px; }
/* 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: 16px; }
.com-hub-card {
  display: flex; align-items: center; gap: 16px; margin: 0; color: var(--text);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.com-hub-card:hover { color: var(--text); transform: translateY(-3px); border-color: rgba(255, 207, 90, .35); box-shadow: var(--glow-gold); }
.com-hub-emoji { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--surface-2); flex: none; }
.com-hub-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.com-hub-text b { font-size: 17px; }
.com-hub-arrow { margin-left: auto; color: var(--gold); font-size: 20px; font-weight: 800; display: inline-flex; align-items: center; }

/* ---------- destek */
.com-tickets { display: flex; flex-direction: column; gap: 10px; }
.com-ticket {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--text); transition: border-color .2s, background .2s;
}
.com-ticket:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
.com-ticket.unread { border-color: rgba(47, 208, 138, .4); }
.com-ticket-main { flex: 1; min-width: 0; }
.com-ticket-title { font-weight: 700; display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.com-ticket-side { flex: none; }
.com-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); flex: none; }
.com-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.com-cat input { position: absolute; opacity: 0; pointer-events: none; }
.com-cat span {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.com-cat span:hover { color: var(--text); border-color: var(--border-2); }
.com-cat input:checked + span { background: rgba(255, 207, 90, .1); border-color: rgba(255, 207, 90, .45); color: var(--gold); }
.com-cat input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.com-thread { display: flex; flex-direction: column; gap: 12px; }
.com-msg { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: var(--surface); max-width: 92%; }
.com-msg.mine { align-self: flex-end; background: rgba(255, 207, 90, .05); border-color: rgba(255, 207, 90, .2); }
.com-msg.staff { border-color: rgba(176, 130, 255, .3); background: rgba(176, 130, 255, .06); }
.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: #d5dbe7; }
.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: 8px; }
.com-canned-item { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
.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: 12px; 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: 16px; }
.com-staff-card { text-align: center; margin: 0; padding-top: 28px; overflow: hidden; }
.com-staff-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 70px; opacity: .22;
  background: linear-gradient(180deg, var(--role), transparent);
}
.com-staff-head { position: relative; display: flex; justify-content: center; margin-bottom: 12px; }
.com-staff-head .com-head, .com-staff-head .avatar { box-shadow: 0 0 0 3px var(--role), 0 12px 30px -10px var(--role); }
.com-staff-card h3 { margin: 0 0 6px; overflow-wrap: anywhere; }
.com-role {
  display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: var(--role); border: 1px solid var(--role); background: rgba(255, 255, 255, .03);
}
.com-discord { margin-top: 10px; overflow-wrap: anywhere; }

/* ---------- başvurular */
.com-form-card { display: flex; flex-direction: column; }
.com-form-emoji { font-size: 38px; margin-bottom: 6px; }
.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: 10px; }
.com-site {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); color: var(--text); transition: border-color .2s, transform .2s var(--ease);
}
.com-site:hover { color: var(--text); border-color: rgba(255, 207, 90, .35); transform: translateX(3px); }
.com-site-n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; color: var(--gold); flex: none; }
.com-site-name { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.com-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.com-top li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid transparent; }
.com-top li.podium { border-color: var(--border); }
.com-top li.p1 { background: linear-gradient(90deg, rgba(255, 207, 90, .14), transparent); border-color: rgba(255, 207, 90, .3); }
.com-top li.p2 { background: linear-gradient(90deg, rgba(200, 210, 225, .1), transparent); }
.com-top li.p3 { background: linear-gradient(90deg, rgba(232, 165, 58, .1), transparent); }
.com-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.com-rank { width: 28px; text-align: center; font-weight: 800; color: var(--muted); flex: none; }
.com-votes { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.com-top.compact li { padding: 7px 10px; }
.com-mystats { margin-bottom: 18px; }
.com-mystats .card { margin: 0; }
.com-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.com-recent-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface); 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 { font-size: 40px; }

@media (max-width: 860px) {
  #nav .com-badge { margin-left: 8px; }
}
@media (max-width: 560px) {
  .com-hub { grid-template-columns: 1fr; }
  .com-hub-emoji { width: 48px; height: 48px; font-size: 24px; }
  .com-staff { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .com-head.lg, .com-head-fallback.lg { width: 68px; height: 68px; font-size: 28px; }
  .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: 18px; }
.com-app-list > .card + .card { margin-top: 14px; }
