/* Club profile card (clubProfile.js) — AGENTS.md §4.2: absolute, inset 0, no vh/vw; the card scrolls in a short window. */
[data-team-profile] { cursor: pointer; }
.cpf-overlay {
  position: absolute;
  inset: 0;
  z-index: 10060; /* above the ranking panel (10040) — the card opens from its rows */
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3%, 40px);
  background: rgba(2, 6, 23, 0.66);
}
.cpf-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 4%, 32px);
  border-radius: 24px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.cpf-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #f1f5f9;
  color: #475569;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.cpf-close:hover { background: #fee2e2; border-color: #ef4444; color: #ef4444; }
.cpf-loading { padding: 40px 10px; text-align: center; font-size: 16px; font-weight: 700; color: #64748b; }
.cpf-head { display: flex; align-items: center; gap: 16px; padding-right: 44px; }
.cpf-crest { flex-shrink: 0; display: grid; place-items: center; }
.cpf-titles { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cpf-name { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.cpf-manager { font-size: 15px; font-weight: 700; color: #475569; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cpf-level { padding: 2px 8px; border-radius: 8px; background: #e0f2fe; border: 1px solid #bae6fd; color: #0369a1; font-size: 12px; font-weight: 900; }
.cpf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 18px; }
.cpf-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  min-width: 0;
}
.cpf-stat-val { font-size: 20px; font-weight: 900; color: #0f172a; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpf-stat-val.cpf-city { font-size: 16px; }
.cpf-stat-lbl { font-size: 12px; font-weight: 800; color: #64748b; }
.cpf-dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; flex-shrink: 0; }
.cpf-dot.on { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
.cpf-stat:last-child .cpf-stat-val { font-size: 14px; }
.cpf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* each action its own colour (one meaning = one colour), all the same size */
.cpf-actions .cpf-act {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.18);
}
.cpf-act > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpf-actions .cpf-act:hover:not(:disabled) { filter: brightness(1.08); transform: none; }
.cpf-act-squad { background: #4f46e5; }
.cpf-act-request { background: #0284c7; }
.cpf-act-gift { background: #d97706; }
.cpf-act-friendly { background: #16a34a; }
.cpf-act-event { background: #0d9488; }
.cpf-act-federation { background: #7c3aed; }
.cpf-act-unfriend { background: #dc2626; }
.cpf-actions .cpf-act:disabled { background: #e2e8f0; color: #64748b; box-shadow: none; }
.cpf-wide { grid-column: 1 / -1; }
.cpf-friend-badge { padding: 2px 8px; border-radius: 8px; background: #dcfce7; border: 1px solid #86efac; color: #15803d; font-size: 12px; font-weight: 900; }
.cpf-btn {
  padding: 13px 22px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cpf-btn:hover:not(:disabled) { transform: translateY(-1px); }
.cpf-btn:active:not(:disabled) { transform: scale(0.97); }
.cpf-btn:disabled { cursor: default; }
.cpf-btn-muted { border: 1.5px solid #cbd5e1; background: #f1f5f9; color: #475569; }
.cpf-note { font-size: 15px; font-weight: 700; color: #64748b; }

/* Kadroyu İncele — the XI on a pitch and the bench (view only) */
.cpf-sq-head { display: flex; align-items: center; gap: 12px; padding-right: 44px; margin-bottom: 12px; }
.cpf-back { padding: 9px 14px; font-size: 14px; flex-shrink: 0; }
.cpf-sq-title { min-width: 0; font-size: 18px; font-weight: 900; color: #0f172a; overflow-wrap: anywhere; }
.cpf-sq-form { margin-left: 6px; padding: 2px 8px; border-radius: 8px; background: #0f172a; color: #ffffff; font-size: 13px; font-weight: 900; white-space: nowrap; }
.cpf-pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 2px solid #ffffff;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, #15803d 0 10%, #166534 10% 20%);
  box-shadow: 0 0 0 1.5px #cbd5e1;
}
.cpf-pitch i { position: absolute; border: 1.5px solid rgba(255, 255, 255, 0.75); pointer-events: none; }
.cpf-pitch .cpf-pitch-mid { left: 50%; top: 0; bottom: 0; width: 0; border-width: 0 0 0 1.5px; }
.cpf-pitch-circle { left: 50%; top: 50%; width: 18%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.cpf-pitch-box { top: 25%; height: 50%; width: 13%; }
.cpf-pitch .cpf-pitch-box.l { left: -2px; border-left: none; }
.cpf-pitch .cpf-pitch-box.r { right: -2px; border-right: none; }
.cpf-card.cpf-card-wide { max-width: 860px; }
.cpf-pl { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 76px; }
.cpf-pitch .cpf-pl { position: absolute; transform: translate(-50%, -50%); }
.cpf-pl-ovr {
  min-width: 30px; padding: 1px 4px; border-radius: 7px; background: #0f172a; color: #ffffff;
  font-size: 16px; font-weight: 900; line-height: 1.3; text-align: center;
}
.cpf-pl-ovr.ovr-mutant { color: #d946ef; }
.cpf-pl-ovr.ovr-red { color: #ef4444; }
.cpf-pl-ovr.ovr-orange { color: #f97316; }
.cpf-pl-ovr.ovr-yellow { color: #facc15; }
.cpf-pl-ovr.ovr-green { color: #0ea5e9; }
.cpf-pl-pos { padding: 0 6px; border-radius: 5px; color: #ffffff; font-size: 11px; font-weight: 900; line-height: 1.5; }
.cpf-pl-pos.pes-pos-gk { background: #d97706; }
.cpf-pl-pos.pes-pos-def { background: #0284c7; }
.cpf-pl-pos.pes-pos-mid { background: #16a34a; }
.cpf-pl-pos.pes-pos-att { background: #dc2626; }
.cpf-pl-name {
  max-width: 100%; padding: 0 3px; border-radius: 4px; background: rgba(15, 23, 42, 0.85); color: #ffffff;
  font-size: 11px; font-weight: 800; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cpf-bench-title { margin: 14px 0 8px; font-size: 13px; font-weight: 900; color: #475569; text-align: center; letter-spacing: 0.04em; }
.cpf-bench { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cpf-bench .cpf-pl { padding: 6px 2px; border-radius: 10px; background: #f1f5f9; border: 1.5px solid #e2e8f0; }

/* Panels opened from the card (Etkinliğe Davet Et, Şikayet Et) sit above it, never behind. */
#mgEventInvitePanel, #chatReportModal { z-index: 10070; }
.cpf-act-block { background: #475569; }
.cpf-act-report { background: #dc2626; }
/* Davet Et (MiniGame3D.inviteTo): the same white card, one button a row — Maça Davet Et, then the mini games */
#mgEventInvitePanel .mgei-card { max-width: 440px; }
.mgei-title { margin: 0 48px 6px 0; font-size: 24px; font-weight: 900; color: #0f172a; }
.mgei-text { margin: 0 0 16px; font-size: 15px; font-weight: 700; color: #475569; }
#mgEventInvitePanel .mgei-list { grid-template-columns: 1fr; }
.mgei-sub { margin-top: 6px; font-size: 12px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }
/* each mini game its own colour (a new game without one stays teal) */
.cpf-actions .mgei-penalty_shootout { background: #ea580c; }
.cpf-actions .mgei-juggle { background: #db2777; }
.cpf-actions .mgei-foot_tennis { background: #0d9488; }
