/**
 * NewsKent - Canlı Puan Durumu & Fikstür Bileşeni Stilleri (v2.1 Refactored)
 * Sütun Sıralaması: TAKIM | O | G | B | M | AG | YG | AV | P
 * Koyu Kurumsal Başlıklar (#1e293b), Canlı Vurgu Çizgileri (#22c55e, #3b82f6, #ef4444),
 * Mobil & Sidebar Sticky Takım Kolonu (left: 0, bg: #fff, z-index: 2)
 */

:root {
    --jet-pd-active-tab: #2563eb;
    --jet-pd-title-color: #0f172a;
    --jet-pd-line-green: #22c55e;
    --jet-pd-line-blue: #3b82f6;
    --jet-pd-line-red: #ef4444;
    --jet-pd-card-bg: #ffffff;
    --jet-pd-border: #f1f5f9;
    --jet-pd-radius: 12px;
    --jet-pd-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

/* Ana Kapsayıcı */
.jet-puan-durumu-module {
    margin-top: 18px;
    margin-bottom: 22px;
    clear: both;
    position: relative;
    box-sizing: border-box;
}

.jet-puan-durumu-module *,
.jet-puan-durumu-module *::before,
.jet-puan-durumu-module *::after {
    box-sizing: border-box;
}

/* Lüks Kart Kutusu */
.jet-pd-inner-card {
    background: var(--jet-pd-card-bg);
    border: 1px solid var(--jet-pd-border);
    border-radius: var(--jet-pd-radius);
    box-shadow: var(--jet-pd-shadow);
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

/* Üst Başlık & Canlı Rozet */
.jet-pd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    gap: 8px;
}

.jet-pd-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jet-pd-live-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.05));
    color: var(--jet-pd-active-tab);
    flex-shrink: 0;
}

.jet-pd-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--jet-pd-title-color);
    margin: 0;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    line-height: 1.2;
}

.jet-pd-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jet-pd-season-tag {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.02em;
}

.jet-pd-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
}

.jet-pd-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    animation: jetPdPulse 1.8s infinite;
}

@keyframes jetPdPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Ana Sekmeler (Tabbed Navigation: Süper Lig, 1. Lig, 2. Lig, 3. Lig) */
.jet-pd-tabs-container {
    margin-bottom: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.jet-pd-tabs-container::-webkit-scrollbar {
    display: none;
}

.jet-pd-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: max-content;
    padding-bottom: 2px;
}

.jet-pd-tab-btn {
    appearance: none;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none;
}

.jet-pd-tab-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.jet-pd-tab-btn.jet-pd-tab-active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

/* Alt Grup Seçicileri (2. Lig Beyaz/Kırmızı & 3. Lig 1-4. Gruplar) */
.jet-pd-group-bar-wrap {
    margin-bottom: 12px;
}

.jet-pd-group-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    gap: 8px;
    animation: jetPdFade 0.2s ease;
}

@keyframes jetPdFade {
    from { opacity: 0; transform: translateY(-2px); }
    to { opacity: 1; transform: translateY(0); }
}

.jet-pd-group-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin: 0;
}

.jet-pd-select-box {
    position: relative;
    display: inline-block;
}

.jet-pd-group-select {
    appearance: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 26px 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease;
}

.jet-pd-group-select:focus {
    border-color: var(--jet-pd-active-tab);
}

.jet-pd-select-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
}

/* ==========================================================================
   TABLO & MOBİL/SIDEBAR STICKY TAKIM KOLONU MİMARİSİ
   ========================================================================== */
.jet-pd-table-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin-bottom: 10px;
}

.jet-pd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    white-space: nowrap;
}

/* Tablo Başlıkları (TH): Koyu Kurumsal Renk (#1e293b), Net ve Okunabilir Tipografi */
.jet-pd-table thead th {
    font-size: 11px;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 6px;
    border-bottom: 2px solid #f1f5f9;
    background: #ffffff;
    vertical-align: middle;
}

/* 1. TAKIM (MOBİL & SIDEBAR STICKY KORUMASI)
   "TAKIM" kolonu solda sabit kalacak (position: sticky; left: 0; background: #fff; z-index: 2),
   sağa doğru kaydırılan verilerin (O, G, B, M, AG, YG, AV, P) altında kalması engellenecektir. */
.jet-pd-col-team {
    position: sticky !important;
    left: 0 !important;
    z-index: 2;
    text-align: left !important;
    padding-left: 10px !important;
    padding-right: 12px !important;
    min-width: 135px;
    max-width: 170px;
    background: #ffffff !important;
    box-shadow: 2px 0 5px -2px rgba(0, 0, 0, 0.07);
}

thead th.jet-pd-col-team {
    z-index: 4;
    background: #ffffff !important;
}

/* Satır Araları: Saf Beyaz Zemin, Çok Hafif Border (#f1f5f9), Hover Soft Renk (#f8fafc) */
.jet-pd-table tbody tr {
    background: #ffffff;
    transition: background-color 0.15s ease;
}

.jet-pd-table tbody tr:hover {
    background: #f8fafc;
}

.jet-pd-table tbody tr:hover .jet-pd-col-team {
    background: #f8fafc !important;
}

.jet-pd-table tbody tr td {
    border-bottom: 1px solid #f1f5f9;
    padding: 7px 5px;
    vertical-align: middle;
}

/* Takım İsimleri: Siyah/Koyu Gri (#0f172a), font-weight: 600 Okunaklı Kalın Metin */
.jet-pd-team-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 22px;
}

.jet-pd-crest {
    flex-shrink: 0;
    display: inline-block;
}

.jet-pd-team-name {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    max-width: 125px;
    letter-spacing: -0.01em;
}

/* Vurgu Renkleri: Sol taraftaki derecelendirme çizgileri
   Şampiyonluk: Canlı Yeşil #22c55e | Avrupa: Parlak Mavi #3b82f6 | Düşme Hattı: Canlı Kırmızı #ef4444 */
.jet-pd-row-champions .jet-pd-col-team {
    border-left: 3.5px solid #22c55e !important;
}

.jet-pd-row-europe .jet-pd-col-team {
    border-left: 3.5px solid #3b82f6 !important;
}

.jet-pd-row-relegation .jet-pd-col-team {
    border-left: 3.5px solid #ef4444 !important;
}

.jet-pd-row-normal .jet-pd-col-team {
    border-left: 3.5px solid transparent !important;
}

/* Sayısal Kolonlar: O, G, B, M, AG, YG, AV, P
   Rakamlar 'font-variant-numeric: tabular-nums' ile tam hizalıdır */
.jet-pd-col-num {
    width: 28px;
    color: #334155;
    font-weight: 600;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    padding: 7px 4px;
}

.jet-pd-col-av {
    color: #475569;
    font-weight: 700;
}

.jet-pd-col-pts {
    width: 32px;
    color: #0f172a;
    font-weight: 800;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    padding: 7px 6px;
    background: rgba(37, 99, 235, 0.04);
}

/* Canlı Yükleniyor Spinner / Maskesi */
.jet-pd-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
}

.jet-pd-spinner {
    width: 24px;
    height: 24px;
    border: 2.5px solid rgba(37, 99, 235, 0.2);
    border-top-color: var(--jet-pd-active-tab);
    border-radius: 50%;
    animation: jetPdSpin 0.7s linear infinite;
}

@keyframes jetPdSpin {
    to { transform: rotate(360deg); }
}

/* Lejant (Bilgilendirme Çizgileri) */
.jet-pd-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 11px;
    color: #64748b;
    flex-wrap: wrap;
}

.jet-pd-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.jet-pd-legend-bar {
    display: inline-block;
    width: 10px;
    height: 4px;
    border-radius: 2px;
}

.jet-pd-color-champions {
    background: #22c55e;
}

.jet-pd-color-europe {
    background: #3b82f6;
}

.jet-pd-color-relegation {
    background: #ef4444;
}

/* ==========================================================================
   KOMPAKT SAĞ SÜTUN (SIDEBAR) & WIDGET MODU
   ========================================================================== */
.jet-puan-durumu-module.jet-pd-compact {
    margin-top: 12px;
    margin-bottom: 16px;
}

.jet-puan-durumu-module.jet-pd-compact .jet-pd-inner-card {
    padding: 12px 12px;
}

.jet-puan-durumu-module.jet-pd-compact .jet-pd-col-team {
    min-width: 115px;
    max-width: 135px;
}

.jet-puan-durumu-module.jet-pd-compact .jet-pd-team-name {
    max-width: 95px;
    font-size: 11px;
}

.jet-puan-durumu-module.jet-pd-compact .jet-pd-table {
    font-size: 11px;
}

.jet-puan-durumu-module.jet-pd-compact .jet-pd-tab-btn {
    font-size: 11px;
    padding: 5px 9px;
}

/* ==========================================================================
   RESPONSIVE (MOBİL UYUMLULUK)
   ========================================================================== */
@media (max-width: 767px) {
    .jet-pd-inner-card {
        padding: 12px 10px;
        border-radius: 10px;
    }

    .jet-pd-col-team {
        min-width: 120px;
        max-width: 140px;
    }

    .jet-pd-team-name {
        max-width: 100px;
        font-size: 11px;
    }

    .jet-pd-table {
        font-size: 11px;
    }

    .jet-pd-legend {
        font-size: 10px;
        gap: 8px;
    }
}
