/* ============================================================
   style-team01.css — Team Detail Page Styles
   Matches member.php visual design
   ============================================================ */

/* ---- Avatar Gradient ---- */
.bg-gradient-avatar {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

/* ---- Player Name Link ---- */
.player-name-link {
    color: #1d4ed8;
    font-weight: 600;
    font-size: 13.5px;
    transition: color 0.15s ease;
}
.player-name-link:hover {
    color: #2563eb;
    text-decoration: underline !important;
}
[data-bs-theme="dark"] .player-name-link {
    color: #60a5fa;
}
[data-bs-theme="dark"] .player-name-link:hover {
    color: #93c5fd;
}

/* ---- Gender Icons ---- */
.gender-icon-m {
    color: #3b82f6;
    font-size: 14px;
    line-height: 1;
}
.gender-icon-f {
    color: #ec4899;
    font-size: 14px;
    line-height: 1;
}
.gender-icon-mixed {
    color: #8b5cf6;
    font-size: 14px;
    line-height: 1;
}

/* ---- QR / Rank Icon Buttons ---- */
.btn-qrcode-link,
.btn-rank-link {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.15s ease, transform 0.15s ease;
    line-height: 1;
}
.btn-qrcode-link:hover {
    color: #0ea5e9;
    transform: scale(1.15);
}
.btn-rank-link:hover {
    color: #f59e0b;
    transform: scale(1.15);
}

/* ---- Player Row Hover ---- */
.player-row {
    transition: background-color 0.15s ease;
}
.player-row:hover {
    background-color: rgba(59, 130, 246, 0.04) !important;
}
[data-bs-theme="dark"] .player-row:hover {
    background-color: rgba(96, 165, 250, 0.06) !important;
}

/* ---- Table Header: match member.php style ---- */
.tkd-score-table thead th {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    color: #0369a1 !important;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #0284c7 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 10px 12px !important;
}
[data-bs-theme="dark"] .tkd-score-table thead th {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%) !important;
    color: #f0f9ff !important;
    border-bottom: 2px solid #0284c7 !important;
}

/* ---- Table Body Cells ---- */
.tkd-score-table tbody td {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--bs-border-color-translucent) !important;
    padding: 10px 12px !important;
    vertical-align: middle;
}

/* ---- Stats Bar ---- */
.stats-bar {
    background-color: var(--bs-card-bg) !important;
    border: 1px solid var(--bs-border-color) !important;
    min-height: 50px;
    transition: box-shadow 0.2s ease;
}
.stats-bar:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}
.stat-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bs-secondary-color);
}


/* ---- Tab Navigation ---- */
.team-nav-tabs {
    gap: 4px;
}
.team-nav-tabs .nav-link {
    border: 1.5px solid var(--bs-border-color);
    border-radius: 8px !important;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bs-secondary-color);
    background-color: var(--bs-tertiary-bg);
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}
.team-nav-tabs .nav-link:hover {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-emphasis-color);
    border-color: var(--bs-border-color);
    transform: translateY(-1px);
}
.team-nav-tabs .nav-link.active {
    background-color: #1e293b;
    color: #f8fafc !important;
    border-color: #1e293b;
    box-shadow: 0 2px 8px rgba(30,41,59,0.25);
    transform: translateY(0);
}
[data-bs-theme="dark"] .team-nav-tabs .nav-link.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #fff !important;
}

/* Badge inside tabs */
.team-nav-tabs .nav-link .badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    background-color: rgba(255,255,255,0.25);
    color: inherit;
}
.team-nav-tabs .nav-link.active .badge {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
}

/* ---- Excel & Payment Buttons ---- */
.btn-excel-file {
    background-color: #16a34a;
    color: #fff !important;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    letter-spacing: 0.3px;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
}
.btn-excel-file:hover {
    background-color: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(22,163,74,0.25);
}


/* ---- Title Banner ---- */
.team-title-banner {
    background: var(--bs-body-bg);
}

/* ---- Gender filter action buttons (sex filter) ---- */
.sex-filter-btn {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}
.sex-filter-btn.active {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ---- Responsive: compact on small screens ---- */
@media (max-width: 768px) {
    .stats-grid {
        gap: 8px;
    }
    .stat-card {
        min-width: 100px;
        padding: 10px 14px;
    }
    .stat-value {
        font-size: 22px;
    }
    .team-nav-tabs .nav-link {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* ---- Medal Badges ---- */
.medal-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.medal-gold {
    background-color: #fef3c7;
    color: #b45309;
    border: 1.5px solid #fde68a;
}
[data-bs-theme="dark"] .medal-gold {
    background-color: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.25);
}

.medal-silver {
    background-color: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}
[data-bs-theme="dark"] .medal-silver {
    background-color: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.25);
}

.medal-bronze {
    background-color: #ffedd5;
    color: #c2410c;
    border: 1.5px solid #fed7aa;
}
[data-bs-theme="dark"] .medal-bronze {
    background-color: rgba(249, 115, 22, 0.12);
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.25);
}

.medal-default {
    background-color: #f3f4f6;
    color: #374151;
    border: 1.5px solid #e5e7eb;
}
[data-bs-theme="dark"] .medal-default {
    background-color: rgba(156, 163, 175, 0.12);
    color: #d1d5db;
    border-color: rgba(156, 163, 175, 0.25);
}

/* ---- Print Action Button ---- */
.btn-print-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: rgba(22, 163, 74, 0.08);
    color: #16a34a !important;
    border: 1.5px solid rgba(22, 163, 74, 0.18);
    transition: all 0.15s ease;
    text-decoration: none !important;
    font-size: 13px;
}
.btn-print-action:hover {
    background-color: #16a34a;
    color: #ffffff !important;
    border-color: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}
.btn-print-action:active {
    transform: translateY(0);
    box-shadow: none;
}

