/* Puan Durumu V2 (Sidebar Widget) Stilleri */

.widget-puan-durumu-v2 {
    width: 100%;
    position: relative;
    background-color: var(--card-bg, #fff);
    border-radius: 12px;
}

.widget-puan-durumu-v2 .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #f1f5f9)
}

.widget-puan-durumu-v2 .widget-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color, #1e293b);
    display: flex;
    align-items: center;
    gap: 6px
}

.widget-puan-durumu-v2 .league-select {
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 12px;
    background-color: var(--bg-color, #f8fafc);
    color: var(--text-color, #333);
    cursor: pointer;
    max-width: 140px;
    outline: none;
}

.widget-puan-durumu-v2 .table-header {
    display: grid;
    grid-template-columns: 35px 1fr 35px 35px;
    padding: 8px 10px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    margin-bottom: 8px;
    text-transform: uppercase
}

.widget-puan-durumu-v2 .col-o-label,
.widget-puan-durumu-v2 .col-p-label {
    text-align: center;
}

.widget-puan-durumu-v2 .teams-list {
    display: flex;
    flex-direction: column;
}

.widget-puan-durumu-v2 .team-row {
    display: grid;
    grid-template-columns: 35px 1fr 35px 35px;
    padding: 10px;
    align-items: center;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
    transition: background 0.2s;
    font-size: 13px;
    color: var(--text-color, #333)
}

.widget-puan-durumu-v2 .team-row:last-child {
    border-bottom: none
}

.widget-puan-durumu-v2 .team-row:hover {
    background: #f8fafc
}

.widget-puan-durumu-v2 .col-sira {
    font-weight: 600;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

.widget-puan-durumu-v2 .team-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden
}

.widget-puan-durumu-v2 .team-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.widget-puan-durumu-v2 .team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: var(--text-color, #1e293b);
}

.widget-puan-durumu-v2 .col-o {
    color: #64748b;
    text-align: center;
    font-weight: 500;
}

.widget-puan-durumu-v2 .col-p {
    font-weight: 700;
    color: var(--primary-color, #e30613);
    text-align: center
}

.widget-puan-durumu-v2 .detail-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    padding: 10px;
    background-color: #f8fafc;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.widget-puan-durumu-v2 .detail-link:hover {
    background-color: #f1f5f9;
    color: var(--primary-color, #e30613)
}

.widget-puan-durumu-v2 .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.widget-puan-durumu-v2 .loading-text {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.widget-puan-durumu-v2 .empty-state {
    text-align: center;
    color: #94a3b8;
    padding: 30px 15px;
    font-size: 13px;
    font-weight: 500;
}

/* Dark Theme */
body.dark-theme .widget-puan-durumu-v2 {
    background-color: var(--card-bg, #1e1e1e);
}

body.dark-theme .widget-puan-durumu-v2 .widget-header {
    border-bottom-color: #333;
}

body.dark-theme .widget-puan-durumu-v2 .widget-header h3 {
    color: #f1f5f9;
}

body.dark-theme .widget-puan-durumu-v2 .league-select {
    background-color: #2a2a2a;
    border-color: #444;
    color: #f1f5f9;
}

body.dark-theme .widget-puan-durumu-v2 .table-header {
    background: #2a2a2a;
    color: #94a3b8;
}

body.dark-theme .widget-puan-durumu-v2 .team-row {
    border-bottom-color: #2a2a2a;
    color: #e2e8f0;
}

body.dark-theme .widget-puan-durumu-v2 .team-name {
    color: #e2e8f0;
}

body.dark-theme .widget-puan-durumu-v2 .team-row:hover {
    background: #2a2a2a;
}

body.dark-theme .widget-puan-durumu-v2 .detail-link {
    background-color: #2a2a2a;
    color: #94a3b8;
}

body.dark-theme .widget-puan-durumu-v2 .detail-link:hover {
    background-color: #333;
}

body.dark-theme .widget-puan-durumu-v2 .loading-overlay {
    background: rgba(30, 30, 30, 0.9);
}

body.dark-theme .widget-puan-durumu-v2 .loading-text {
    color: #94a3b8;
}

body.dark-theme .widget-puan-durumu-v2 .empty-state {
    color: #64748b;
}