﻿/* ============================================================
   FUTBOL SEÇME SİSTEMİ - Modern UI
   ============================================================ */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f2f2f7;
    color: #1c1c1e;
    min-height: 100vh;
    font-size: 14px;
}

body { padding: 0 12px 80px; max-width: 1320px; margin: 0 auto; }

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
    background: linear-gradient(135deg, #1c1c1e, #2c2c2e);
    color: #fff;
    padding: 16px 20px;
    border-radius: 0 0 14px 14px;
    margin: 0 -12px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.app-header h1 { margin: 0; font-size: 18px; font-weight: 600; }
.app-header .sub { font-size: 14px; color: #aaa; margin-top: 3px; }
.app-header .header-right { display: flex; gap: 10px; align-items: center; }

.round-select {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 7px 28px 7px 11px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    min-width: 200px;
}
.round-select option { background: #1c1c1e; color: #fff; }

/* ============================================================
   NAV
   ============================================================ */
.main-nav {
    background: #fff;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 12px;
    display: flex;
    gap: 3px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.nav-link {
    background: transparent;
    color: #666;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: #f0f0f5; color: #1c1c1e; }
.nav-link.active { background: #007aff; color: #fff; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.card h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #333; }
.card .desc { font-size: 14px; color: #777; margin: -6px 0 10px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    background: #007aff;
    color: #fff;
    border: none;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}
.btn:hover { opacity: 0.9; }
.btn.full { width: 100%; padding: 12px; font-size: 14px; }
.btn.gray { background: #e5e5ea; color: #1c1c1e; }
.btn.green { background: #34c759; }
.btn.red { background: #ff3b30; }
.btn.orange { background: #ff9500; }
.btn.purple { background: #5856d6; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   FORM INPUTS
   ============================================================ */
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=url], input[type=date], input[type=datetime-local],
input[type=password], textarea, select {
    width: 100%;
    border: 1px solid #d1d1d6;
    border-radius: 8px;
    padding: 9px 11px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: #007aff; }
textarea { resize: vertical; min-height: 60px; }

label { display: block; font-size: 14px; color: #666; margin-bottom: 4px; font-weight: 500; }
.field { margin-bottom: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .field-row, .field-row-3 { grid-template-columns: 1fr; } }

/* ============================================================
   TABLES
   ============================================================ */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.tbl th { background: #f8f8fa; font-weight: 600; color: #444; font-size: 13px; text-transform: uppercase; letter-spacing: 0.3px; position: sticky; top: 0; z-index: 5; }
.tbl tr:hover td { background: #fafafc; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-height: 65vh; border-radius: 10px; border: 1px solid #e5e5ea; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-aktif { background: #007aff; color: #fff; }
.badge-okul { background: #ff9500; color: #fff; }
.badge-reddedildi { background: #ff3b30; color: #fff; }
.badge-kabul { background: #34c759; color: #fff; }
.badge-pasif { background: #8e8e93; color: #fff; }
.badge-takipte { background: #0066cc; color: #fff; }
.badge-gorusme { background: #af52de; color: #fff; }
.badge-teklif { background: #ff9500; color: #fff; }
.badge-imzalandi { background: #34c759; color: #fff; }
.badge-vazgecildi { background: #c0c0c5; color: #555; }
.badge-asil { background: #007aff; color: #fff; }
.badge-yedek { background: #ff9500; color: #fff; }
.badge-gelecek { background: #34c759; color: #fff; }
.badge-gelmeyecek { background: #ff3b30; color: #fff; }
.badge-geldi { background: #34c759; color: #fff; font-weight: 700; }
.badge-gelmedi { background: #ff3b30; color: #fff; font-weight: 700; }
.badge-cevap-yok { background: #e5e5ea; color: #666; }
.badge-pending { background: #e5e5ea; color: #666; }
.badge-done { background: #34c759; color: #fff; }
.badge-running { background: #ff9500; color: #fff; }
.badge-live { background: #ff3b30; color: #fff; animation: pulse 1.5s infinite; }
.badge-age { background: #007aff; color: #fff; }
.badge-region { background: #5856d6; color: #fff; }
.badge-lic { background: #34c759; color: #fff; }
.badge-unlic { background: #e5e5ea; color: #666; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ============================================================
   GRIDS
   ============================================================ */
.grid { display: grid; gap: 10px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 700px) { .grid.c3, .grid.c4, .grid.c5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid.c2 { grid-template-columns: 1fr; } }

/* ============================================================
   STATS
   ============================================================ */
.stat { background: #f8f8fa; padding: 12px; border-radius: 10px; }
.stat .lbl { font-size: 13px; color: #777; text-transform: uppercase; letter-spacing: 0.3px; }
.stat .val { font-size: 22px; font-weight: 700; color: #1c1c1e; margin-top: 3px; }
.stat .val.blue { color: #007aff; }
.stat .val.green { color: #34c759; }
.stat .val.orange { color: #ff9500; }
.stat .val.red { color: #ff3b30; }

/* ============================================================
   MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: none; align-items: flex-start; justify-content: center; z-index: 100; padding: 20px 12px; overflow-y: auto; }
.modal.show { display: flex; }
.modal-content { background: #fff; border-radius: 14px; padding: 18px; width: 100%; max-width: 500px; margin: auto; }
.modal-content.wide { max-width: 850px; }
.modal-content h3 { margin: 0 0 14px; font-size: 16px; }
.modal-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.modal-close { float: right; background: transparent; border: none; font-size: 22px; color: #999; cursor: pointer; padding: 0; width: 28px; height: 28px; line-height: 1; }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content { animation: fade-in 0.2s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.helper {
    font-size: 13px;
    color: #888;
    background: #fffbeb;
    border-left: 3px solid #ff9500;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.empty { text-align: center; color: #999; padding: 30px 20px; font-size: 13px; }

.link-box {
    background: #f8f8fa;
    padding: 10px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    word-break: break-all;
    border: 1px solid #e5e5ea;
    cursor: pointer;
}
.link-box:hover { background: #f0f0f5; }

/* ============================================================
   RATING UI (RateMatch.aspx — hoca degerlendirme)
   ============================================================ */
.timer-bar {
    background: #1c1c1e;
    color: #fff;
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    margin-bottom: 14px;
    position: sticky;
    top: 8px;
    z-index: 10;
}
.timer-bar .time { font-size: 36px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.timer-bar .label { font-size: 13px; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.timer-bar .ctrls { display: flex; gap: 8px; margin-top: 12px; }
.timer-bar .ctrls button { flex: 1; background: #3a3a3c; color: #fff; border: none; padding: 10px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; }
.timer-bar .ctrls button.danger { background: #ff3b30; }
.timer-bar .progress { height: 4px; background: #3a3a3c; border-radius: 2px; margin-top: 10px; overflow: hidden; }
.timer-bar .progress .bar { height: 100%; background: #34c759; width: 0%; transition: width 0.5s linear; }

.player-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
@media (max-width: 480px) { .player-grid { grid-template-columns: repeat(4, 1fr); } }
.player-btn { background: #fff; border: 2px solid #e5e5ea; padding: 14px 4px; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; text-align: center; position: relative; }
.player-btn .pname { display: block; font-size: 12px; font-weight: 500; color: #666; margin-top: 3px; }
.player-btn .ptype { position: absolute; top: 2px; left: 4px; font-size: 11px; padding: 1px 4px; border-radius: 5px; font-weight: 700; }
.player-btn .ptype.A { background: #007aff; color: #fff; }
.player-btn .ptype.Y { background: #ff9500; color: #fff; }
.player-btn.rated { background: #e8f5e9; border-color: #34c759; }
.player-btn.rated::after { content: "✓"; position: absolute; top: 2px; right: 4px; font-size: 12px; color: #34c759; font-weight: 700; }
.player-btn.absent { opacity: 0.4; background: #ffebee; }

.criterion-group { background: #f8f8fa; border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.criterion-group .group-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.criterion-group .group-name { font-size: 13px; font-weight: 700; }
.criterion-group .group-avg { font-size: 18px; font-weight: 700; color: #007aff; }
.subskill { margin-bottom: 8px; }
.subskill .sk-head { display: flex; justify-content: space-between; margin-bottom: 3px; }
.subskill .sk-name { font-size: 14px; color: #444; }
.subskill .sk-val { font-size: 13px; font-weight: 600; color: #007aff; min-width: 30px; text-align: right; }
.subskill input[type=range] { width: 100%; height: 28px; -webkit-appearance: none; background: transparent; margin: 0; }
.subskill input[type=range]::-webkit-slider-runnable-track { height: 5px; background: #d1d1d6; border-radius: 3px; }
.subskill input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #007aff; margin-top: -9px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.subskill input[type=range]::-moz-range-track { height: 5px; background: #d1d1d6; border-radius: 3px; }
.subskill input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #007aff; border: none; cursor: pointer; }

.overall-box { background: linear-gradient(135deg, #007aff, #5856d6); color: #fff; padding: 12px; border-radius: 10px; text-align: center; margin-top: 10px; }
.overall-box .lbl { font-size: 13px; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.5px; }
.overall-box .val { font-size: 28px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }

.history-card { background: #f8f8fa; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; font-size: 13px; }
.history-card .hr-head { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 3px; }

/* ============================================================
   PLAYER INVITE
   ============================================================ */
.decision-btn { display: block; width: 100%; padding: 18px; margin: 8px 0; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; }
.decision-btn.yes { background: #34c759; color: #fff; }
.decision-btn.no { background: #ff3b30; color: #fff; }

/* Public role badge */
.role-badge { font-size: 13px; padding: 3px 10px; border-radius: 10px; background: #007aff; color: #fff; font-weight: 600; }
.role-badge.coach { background: #ff9500; }
.role-badge.player { background: #34c759; }

/* ============================================================
   PLAYER ROW
   ============================================================ */
.player-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f5f5f5; align-items: center; }
.player-row .pix { color: #999; font-size: 13px; font-weight: 600; }
.player-row .pn { font-size: 13px; font-weight: 500; }
.player-row .pm { font-size: 12px; color: #888; margin-top: 1px; }

/* ============================================================
   MODULE TABS (Secmeler vs Scout)
   ============================================================ */
.module-tabs {
    display: flex;
    gap: 0;
    background: #f5f5f7;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
.module-tab {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
    letter-spacing: 0.3px;
}
.module-tab:hover { background: rgba(0,0,0,0.04); color: #000; }
.module-tab.active {
    background: #fff;
    color: #007aff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.module-tab.active:hover { background: #fff; }

.sub-nav, .admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 0;
}
.admin-nav { border-top: 1px dashed #e5e5ea; margin-top: 4px; padding-top: 8px; }

@media (max-width: 600px) {
    .module-tab { font-size: 14px; padding: 10px 8px; }
}

/* ============================================================
   MODULE SPESIFIK TEMALAR
   ============================================================ */
/* Seçmeler default - mavi tonu (app-header zaten mavi) */

/* Scout modülü - mor */
body.mod-scout .app-header.scout-header {
    background: linear-gradient(135deg, #5856d6 0%, #af52de 100%);
}

/* Admin alt-nav (Users, Settings) */
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 0;
    border-top: 1px dashed #e5e5ea;
    margin-top: 4px;
}
.admin-nav .nav-link { font-size: 14px; opacity: 0.85; }

/* Module tabs - daha belirgin yap */
.module-tabs {
    display: flex;
    gap: 0;
    background: #f5f5f7;
    border-radius: 12px;
    padding: 4px;
    margin: 0 0 10px 0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.module-tab {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
    letter-spacing: 0.3px;
}
.module-tab:hover { background: rgba(0,0,0,0.04); color: #000; }
.module-tab.active {
    background: #fff;
    color: #007aff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
body.mod-scout .module-tab.active {
    color: #5856d6;
}

.sub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 0;
}

@media (max-width: 600px) {
    .module-tab { font-size: 14px; padding: 10px 6px; }
}

/* === ROLE BAZLI USER-BOX === */
.user-box { display:inline-flex; align-items:center; gap:8px; padding:5px 10px; border-radius:18px; background:rgba(255,255,255,0.12); }
.user-box .r-ic { font-size:18px; line-height:1; }
.user-box .u-stack { display:flex; flex-direction:column; line-height:1.1; }
.user-box .uname { color:#fff; font-weight:600; font-size:13px; }
.user-box .role { color:rgba(255,255,255,0.75); font-size:12px; }
.user-box .lg { color:rgba(255,255,255,0.85); text-decoration:none; padding:4px 8px; border-radius:50%; font-size:14px; }
.user-box .lg:hover { background:rgba(255,255,255,0.15); }

.user-box.role-hoca { background:rgba(52,199,89,0.25); }
.user-box.role-menajer { background:rgba(255,149,0,0.25); }
.user-box.role-scout, .user-box.role-scout-admin { background:rgba(175,82,222,0.25); }
.user-box.role-admin { background:rgba(0,122,255,0.2); }

/* Club name / season */
.cn { font-weight:700; }
.sn { font-size:14px; opacity:0.7; font-weight:400; padding-left:6px; }

/* === ROL SEKMELERI (admin icin) === */
.role-tabs {
    display:flex; gap:4px;
    background:#1d1d1f;
    padding:6px 10px;
    overflow-x:auto;
}
.role-tab {
    padding:9px 16px;
    text-decoration:none;
    color:rgba(255,255,255,0.7);
    font-size:13px;
    font-weight:600;
    border-radius:8px;
    white-space:nowrap;
    transition:all 0.15s;
}
.role-tab:hover { background:rgba(255,255,255,0.08); color:#fff; }
.role-tab.active { background:#fff; color:#1d1d1f; }

@media (max-width:600px) {
    .role-tab { padding:7px 10px; font-size:14px; }
}

/* === IMPORT STEPS === */
.import-steps { display:flex; gap:8px; margin-top:10px; }

/* === POOL TOPLU ISLEM BARI === */
.bulk-bar {
    position:sticky; top:0; z-index:20;
    background:linear-gradient(90deg, #007aff, #5856d6);
    color:#fff; padding:10px 14px; border-radius:10px;
    display:flex; flex-wrap:wrap; gap:8px; align-items:center;
    margin-bottom:10px;
    box-shadow:0 2px 8px rgba(0,0,0,0.2);
}
.bulk-bar .bulk-info { font-size:13px; }
.bulk-bar .bulk-info b { font-size:16px; }
.bulk-bar .bulk-sel, .bulk-bar .bulk-input {
    padding:5px 10px; border:none; border-radius:6px;
    font-size:13px; min-width:140px;
}
.bulk-bar .btn { white-space:nowrap; }
@media (max-width:700px) {
    .bulk-bar { flex-direction:column; align-items:stretch; }
    .bulk-bar .bulk-sel, .bulk-bar .bulk-input { width:100%; }
}

/* Kart wrapper - checkbox icin */
.pool-card-wrap { position:relative; }
.card-chk {
    position:absolute; top:8px; left:8px; z-index:5;
    width:20px; height:20px; cursor:pointer;
}

/* === AVATAR HELPER (clsFonksiyon.PlayerAvatar) === */
.p-av { display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#007aff,#5856d6); color:#fff; font-weight:700; background-size:cover; background-position:center; flex-shrink:0; }
.p-av.has-img { background-image: var(--src); background-size:cover; }
.p-av.has-logo { background-color:#fff; background-size:contain; background-repeat:no-repeat; background-position:center; border:1px solid #e5e5ea; }
.p-av-sm { width:36px; height:36px; border-radius:50%; font-size:13px; }
.p-av-md { width:50px; height:50px; border-radius:50%; font-size:14px; }
.p-av-lg { width:84px; height:84px; border-radius:50%; font-size:24px; }

/* === AVATAR CLASS OVERRIDE - eski class'lar icin background-size === */
.pc-avatar, .tbl-avatar, .t-av, .r-av, .sq-av, .att-av, .av {
    background-size:cover !important; background-position:center; background-repeat:no-repeat;
}
.pc-avatar.has-logo, .tbl-avatar.has-logo, .t-av.has-logo, .r-av.has-logo, .sq-av.has-logo, .att-av.has-logo, .av.has-logo {
    background-size:contain !important; background-color:#fff; border:1px solid #e5e5ea; color:transparent;
}

/* === SAHA SVG === */
.pitch-wrap { max-width:380px; margin:0 auto; }
.pitch-svg { width:100%; height:auto; display:block; border-radius:8px; box-shadow:0 1px 4px rgba(0,0,0,0.12); }
.pitch-pos { pointer-events:none; }
.pitch-pos circle { fill:#fff; stroke:#fff; stroke-width:0.4; opacity:0.45; transition:opacity 0.2s; }
.pitch-pos.primary circle { opacity:1; stroke-width:0.8; }
.pitch-pos.selected circle { opacity:0.95; stroke-width:0.5; }

/* Mevki chip'leri */
.pos-chips { display:flex; flex-wrap:wrap; gap:5px; }
.pos-chip { padding:3px 9px; border-radius:11px; font-size:13px; background:#f0f0f5; color:#666; font-weight:500; }
.pos-chip.primary { background:#ff3b30; color:#fff; font-weight:700; }
.pos-chip.primary::before { content:"★ "; }

/* === SAHA + YAN PANEL (transfermarkt benzeri) === */
.pitch-grid { display:grid; grid-template-columns:1fr 220px; gap:24px; align-items:start; margin-top:6px; max-width:560px; }
.pitch-grid .pitch-wrap { max-width:220px; margin:0; }
.pitch-side { display:flex; flex-direction:column; gap:14px; padding-top:6px; }
.pitch-side-block { }
.pitch-side-label { font-size:13px; color:#888; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:4px; }
.pitch-side-val { font-size:14px; color:#1d1d1f; line-height:1.5; }
.pitch-side-val .muted { color:#bbb; font-style:italic; font-size:13px; }
.pitch-side-val b { font-weight:700; }
.pitch-legend { display:flex; gap:14px; font-size:13px; color:#666; margin-top:6px; }
.pitch-legend .dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:4px; vertical-align:middle; }
.pitch-legend .dot-r { background:#ff3b30; }
.pitch-legend .dot-b { background:#007aff; }
.pitch-legend .dot-w { background:rgba(255,255,255,0.6); border:1px solid #ccc; }

@media (max-width: 700px) {
    .pitch-grid { grid-template-columns:1fr; }
    .pitch-grid .pitch-wrap { max-width:260px; margin:0 auto; }
}

/* === SIDE SELECT/CHECKS === */
.side-select { width:100%; padding:6px 8px; border:1px solid #d0d0d5; border-radius:6px; font-size:13px; }
.side-checks { display:flex; flex-direction:column; gap:2px; }
.side-checks label { font-size:13px; cursor:pointer; padding:2px 0; }
.side-checks input[type=checkbox] { margin-right:6px; }
.pitch-legend .dot.big { width:12px; height:12px; }

/* === POOL KART SCOUT RAPORU BUTONU === */
.pool-card-wrap { position:relative; }
.pool-card-report {
    position:absolute; top:8px; right:8px; z-index:10;
    width:32px; height:32px; border-radius:50%;
    background:#d4af37; color:#0a0e1a;
    display:flex; align-items:center; justify-content:center;
    text-decoration:none; font-size:14px; font-weight:700;
    opacity:0; transform:scale(0.8);
    transition:all 0.18s;
    box-shadow:0 2px 8px rgba(0,0,0,0.25);
}
.pool-card-wrap:hover .pool-card-report { opacity:1; transform:scale(1); }
.pool-card-report:hover { background:#fff; }
@media (hover:none) {
    .pool-card-report { opacity:1; transform:scale(1); }
}

/* === DAVET ROZETI === */
.inv-bdg { display:inline-block; padding:3px 8px; border-radius:10px; font-size:12px; font-weight:700; }
.inv-bdg.coming { background:#dff0d8; color:#3c763d; }
.inv-bdg.notcoming { background:#fde7e7; color:#c62828; }
.inv-bdg.pending { background:#fff3e0; color:#e65100; }

/* === OYUNCU KATEGORI BADGE === */
.cat-bdg { display:inline-block; padding:3px 9px; border-radius:10px; font-size:12px; font-weight:700; letter-spacing:0.3px; }
.cat-bdg.cat-aday { background:#fff3e0; color:#e65100; }
.cat-bdg.cat-aktif { background:#dff0d8; color:#3c763d; }
.cat-bdg.cat-misafir { background:#fff8d1; color:#7a5c00; border:1px solid #f0d878; }
.cat-bdg.cat-diger { background:#f0f0f5; color:#666; }

/* Kategori tab strip */
.cat-tabs { display:flex; gap:6px; padding:8px; background:#f5f5f7; border-radius:10px; margin-bottom:14px; flex-wrap:wrap; }
.cat-tab { flex:1; min-width:120px; padding:10px 14px; border-radius:8px; background:transparent; color:#666; text-align:center; text-decoration:none; font-weight:600; font-size:13px; border:none; cursor:pointer; transition:all 0.15s; }
.cat-tab:hover { background:#e8e8ed; color:#1d1d1f; }
.cat-tab.active { background:#fff; color:#1d1d1f; box-shadow:0 1px 4px rgba(0,0,0,0.08); }
.cat-tab .cnt { display:inline-block; margin-left:5px; padding:1px 8px; background:#e5e5ea; color:#666; border-radius:8px; font-size:13px; font-weight:700; }
.cat-tab.active .cnt { background:#007aff; color:#fff; }

/* === PLAYERCARD ANKET GECMISI === */
.sv-hist { padding:12px 14px; border:1px solid #e5e5ea; border-radius:10px; margin-bottom:10px; background:#fafafa; }
.sv-hist-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.sv-hist-title { font-weight:700; font-size:14px; }
.sv-hist-badge { padding:3px 9px; border-radius:10px; font-size:12px; font-weight:700; }
.sv-hist-badge.done { background:#dff0d8; color:#3c763d; }
.sv-hist-badge.pending { background:#fff3e0; color:#e65100; }
.sv-hist-date { font-size:13px; color:#888; margin-top:3px; }
.sv-hist-qa { margin-top:7px; padding-top:7px; border-top:1px dashed #e5e5ea; font-size:13px; }
.sv-hist-qa .sv-q { color:#555; }
.sv-hist-qa .sv-a { font-weight:600; margin-left:4px; }

/* === SECME DEGERLENDIRME BADGE (global) === */
.vbadge { padding:3px 9px; border-radius:10px; font-size:12px; font-weight:700; display:inline-block; }
.vbadge.vb-yeterli { background:#dff0d8; color:#3c763d; }
.vbadge.vb-okul { background:#fff3e0; color:#e65100; }
.vbadge.vb-yetersiz { background:#e8e8ed; color:#666; }
.vbadge.vb-ret { background:#fde7e7; color:#c62828; }
.vbadge.vb-none { background:#f0f0f5; color:#999; }

/* ============================================================
   GLOBAL RESPONSIVE - Mobil uyumluluk (admin/antrenör/scout/menajer)
   ============================================================ */

/* iOS otomatik zoom engelleme: form alanlari min 16px */
@media (max-width: 768px) {
    input[type=text], input[type=email], input[type=tel], input[type=number],
    input[type=url], input[type=date], input[type=datetime-local], input[type=time],
    input[type=password], input[type=search], textarea, select {
        font-size: 16px;
    }
}

/* ---- TABLET ve altı (768px) ---- */
@media (max-width: 768px) {
    body { padding: 0 8px 80px; }

    .app-header { padding: 12px 14px; margin: 0 -8px 10px; border-radius: 0 0 12px 12px; }
    .app-header h1 { font-size: 16px; }
    .app-header .sub { font-size: 13px; }
    .header-right { flex-wrap: wrap; gap: 6px; }
    .round-select { min-width: 0; width: 100%; }

    .main-nav { gap: 2px; padding: 3px; }
    .nav-link { padding: 10px 12px; font-size: 13px; }

    .card { padding: 14px; border-radius: 12px; }
    .card h2 { font-size: 15px; }

    /* 2-3 sutunlu grid'ler tek sutun */
    .field-row, .field-row-3 { grid-template-columns: 1fr; gap: 8px; }

    /* Tablolari yatay kaydirilabilir yap (tasma engelleme) */
    .table-wrap, .scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { font-size: 13px; }

    /* Buton satirlari sigsin */
    .btn-row { gap: 6px; }
    .btn { padding: 11px 14px; font-size: 14px; }
    .btn.sm { padding: 8px 11px; font-size: 14px; }
}

/* ---- TELEFON (480px) ---- */
@media (max-width: 480px) {
    body { padding: 0 6px 76px; }

    .app-header { flex-direction: column; align-items: flex-start; }
    .app-header .header-right { width: 100%; justify-content: space-between; }

    .card { padding: 12px; margin-bottom: 10px; }
    .card h2 { font-size: 14px; }
    .card h3 { font-size: 13px; }

    /* Butonlar tam genislik dokunmatik (btn-row icinde esit dagilim) */
    .btn { padding: 12px 14px; font-size: 14px; min-height: 44px; }
    .btn.sm { padding: 9px 12px; font-size: 14px; min-height: 0; }

    /* Nav linkleri biraz daha buyuk dokunma alani */
    .nav-link { padding: 11px 13px; }

    /* Genis tablolari blok-karta cevirmek yerine yatay kaydir */
    table { font-size: 14px; }
    table th, table td { padding: 7px 8px !important; }

    /* Sayac kutulari (t-counts) sigsin */
    .t-counts { flex-wrap: wrap; gap: 6px; }
    .t-count { flex: 1 1 calc(50% - 6px); }

    /* Sekmeler kaydirilabilir */
    .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }

    h1 { font-size: 20px; }
    h2 { font-size: 17px; }
}

/* Genis icerikleri otomatik yatay kaydir (genel guvenlik) */
@media (max-width: 768px) {
    .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ============================================================
   SOLDAN KAYAN MENÜ (DRAWER) - büyük, gruplu, erişilebilir
   ============================================================ */
.header-left { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    width: 46px;
    height: 46px;
    border-radius: 11px;
    cursor: pointer;
    flex-shrink: 0;
}
.menu-toggle:active { background: rgba(255,255,255,0.3); }

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s;
    z-index: 998;
}
.drawer-overlay.show { opacity: 1; visibility: visible; }

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 86vw;
    background: #fff;
    box-shadow: 4px 0 24px rgba(0,0,0,0.25);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 30px;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 18px 14px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}
.drawer-title { font-size: 20px; font-weight: 800; color: #1c1c1e; }
.drawer-close {
    background: #f0f0f2;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

/* Rol sekmeleri drawer içinde */
.drawer .role-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.drawer .role-tab {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
    padding: 11px 8px;
    border-radius: 10px;
    background: #f3f3f6;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}
.drawer .role-tab.active { background: #007aff; color: #fff; }

.drawer-nav { padding: 8px 12px; }

/* GRUP başlığı + linkler */
.nav-group { margin-bottom: 6px; }
.nav-group-title {
    font-size: 13px;
    font-weight: 800;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 12px 6px;
}
.nav-group-items { display: flex; flex-direction: column; gap: 2px; }

/* DRAWER içindeki nav-link'ler - BÜYÜK ve dokunmatik */
.drawer-nav .nav-link {
    display: block;
    padding: 14px 14px;
    border-radius: 11px;
    font-size: 16px;
    font-weight: 600;
    color: #1c1c1e;
    text-decoration: none;
    background: transparent;
    white-space: normal;
    line-height: 1.3;
}
.drawer-nav .nav-link:hover { background: #f0f0f5; }
.drawer-nav .nav-link.active { background: #007aff; color: #fff; }

/* Eski yatay nav artık kullanılmıyor - gizle */
.main-nav, .sub-nav, .admin-nav { display: none !important; }

/* App-header biraz daha büyük yazı */
.app-header h1 { font-size: 19px; }
.app-header .sub { font-size: 14px; }

/* Drawer açıkken masaüstünde de aynı davranış (her ekranda kayan menü) */

/* ============================================================
   OKUNABİLİRLİK - daha büyük yazı/buton (göz yormaması için)
   ============================================================ */
html, body { font-size: 15px; }
.card { font-size: 15px; }
.card h2 { font-size: 17px; }
.card h3 { font-size: 15px; }
.helper, .card .desc { font-size: 13px; }
.btn { font-size: 15px; padding: 11px 16px; }
.btn.sm { font-size: 13px; padding: 8px 12px; }
.btn.full { font-size: 16px; padding: 14px; }

/* Tablolar biraz daha okunur */
table { font-size: 14px; }
table th { font-size: 14px; }

/* Form etiketleri ve inputlar */
.field label { font-size: 14px; font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=url], input[type=date], input[type=datetime-local], input[type=time],
input[type=password], input[type=search], textarea, select {
    font-size: 15px;
    padding: 11px 12px;
}

/* Telefonda drawer tam ekrana yakın, linkler daha da iri */
@media (max-width: 480px) {
    .drawer { width: 88vw; }
    .drawer-nav .nav-link { font-size: 17px; padding: 15px 14px; }
    .nav-group-title { font-size: 14px; }
    .app-header h1 { font-size: 17px; }
    .menu-toggle { width: 48px; height: 48px; font-size: 26px; }
}

/* ============================================================
   PROFESYONEL OKUNABİLİRLİK v104 - tüm sayfalar
   ============================================================ */
/* Genel taban biraz daha büyük + satır yüksekliği */
html, body { font-size: 16px; line-height: 1.5; }
.card { font-size: 15px; }
.card h2 { font-size: 18px; }
.card h3 { font-size: 16px; }
.helper, .desc, .hint, .muted { font-size: 14px !important; color: #555; }

/* Butonlar dokunmatik + okunur */
.btn { font-size: 15px; }
.btn.sm { font-size: 14px; }

/* Tablolar */
table { font-size: 15px; }
table th { font-size: 13px; }
table td { font-size: 14px; }

/* Rozet/çip türü küçük etiketler en az 13px */
.badge, .chip, .tag, .pill, .pc-chip, .svc-chip, [class*="-chip"], [class*="-badge"] { font-size: 13px !important; }

/* Çok büyük başlıkları mobilde kıs (taşma önleme) */
@media (max-width: 480px) {
    [style*="font-size:68px"], [style*="font-size: 68px"] { font-size: 48px !important; }
    [style*="font-size:48px"], [style*="font-size: 48px"] { font-size: 38px !important; }
    [style*="font-size:34px"], [style*="font-size: 34px"] { font-size: 28px !important; }
    [style*="font-size:32px"], [style*="font-size: 32px"] { font-size: 27px !important; }
    [style*="font-size:28px"], [style*="font-size: 28px"] { font-size: 24px !important; }
    .card { padding: 14px; }
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
}

/* ============================================================
   DASHBOARD KATEGORİ ŞERİDİ (ikonlu menü başlıkları)
   ============================================================ */
.cat-strip { display:flex; gap:10px; overflow-x:auto; -webkit-overflow-scrolling:touch; padding:4px 2px 10px; margin-bottom:8px; }
.cat-item {
    flex:0 0 auto; min-width:88px;
    display:flex; flex-direction:column; align-items:center; gap:6px;
    padding:14px 12px; border-radius:16px;
    background:#fff; border:1px solid #ececf0;
    text-decoration:none; color:#1c1c1e;
    box-shadow:0 1px 3px rgba(0,0,0,0.04);
    transition:transform .1s, box-shadow .1s;
}
.cat-item:active { transform:scale(0.96); }
.cat-item:hover { box-shadow:0 4px 14px rgba(0,0,0,0.1); }
.cat-item .ci-ic {
    width:48px; height:48px; border-radius:14px;
    display:flex; align-items:center; justify-content:center;
    font-size:24px; background:#f0f4ff;
}
.cat-item .ci-lbl { font-size:13px; font-weight:700; text-align:center; line-height:1.2; white-space:nowrap; }
.cat-item .ci-sub { font-size:11px; color:#e65100; font-weight:700; margin-top:2px; }
.cat-item .cat-badge { position:absolute; top:6px; right:10px; min-width:20px; height:20px; padding:0 5px; background:#ff3b30; color:#fff; border-radius:10px; font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 4px rgba(0,0,0,0.3); }

/* renk varyantları */
.cat-item.c-blue .ci-ic { background:#e3f2fd; }
.cat-item.c-green .ci-ic { background:#e8f5e9; }
.cat-item.c-orange .ci-ic { background:#fff3e0; }
.cat-item.c-purple .ci-ic { background:#f3e5f5; }
.cat-item.c-red .ci-ic { background:#ffebee; }
.cat-item.c-teal .ci-ic { background:#e0f2f1; }
.cat-item.c-gray .ci-ic { background:#eceff1; }

@media (max-width:480px) {
    .cat-strip { gap:8px; }
    .cat-item { min-width:80px; padding:12px 10px; }
    .cat-item .ci-ic { width:44px; height:44px; font-size:22px; }
    .cat-item .ci-lbl { font-size:12px; }
}
