/**
 * Sport Page - Premium Standings Table
 * E-Manset Frontend
 */

/* ============================================
   HERO ROW - Puan Durumu + Manşet
   ============================================ */

.sport-hero-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.sport-hero-standings {
    min-width: 0;
}

.sport-hero-standings .standings-card {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sport-hero-standings .standings-table-wrapper {
    flex: 1;
}

/* Gol Krallığı Hero */
.sport-hero-goalking {
    min-width: 0;
}

.sport-hero-goalking .goalking-card {
    height: 100%;
}

/* Hero Row Responsive */
@media (max-width: 1200px) {
    .sport-hero-row {
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .sport-hero-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .headline-placeholder {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .sport-hero-row {
        gap: 16px;
        margin-bottom: 24px;
    }

    .headline-placeholder {
        min-height: 250px;
    }
}

/* ============================================
   STANDINGS CARD
   ============================================ */

.standings-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 24px;
}

/* Header */
.standings-card-header {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.standings-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.standings-hashtag {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.standings-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.standings-league-badge {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.standings-league-badge svg {
    stroke: rgba(255, 255, 255, 0.9);
}

.standings-league-badge svg path {
    fill: rgba(255, 255, 255, 0.9);
}

/* Legend */
.standings-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.legend-ucl .legend-dot {
    background: linear-gradient(135deg, #ffd700, #f0c800);
}

.legend-uel .legend-dot {
    background: linear-gradient(135deg, #ff6b35, #f4511e);
}

.legend-uecl .legend-dot {
    background: linear-gradient(135deg, #4caf50, #43a047);
}

.legend-rel .legend-dot {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* Table Wrapper */
.standings-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Table */
.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

/* Table Header */
.standings-thead {
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.standings-thead th {
    padding: 12px 8px;
    font-weight: 600;
    color: #555;
    text-align: center;
    border-bottom: 2px solid #e9ecef;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.standings-thead th.col-team {
    text-align: left;
    padding-left: 16px;
}

.standings-thead th.col-rank {
    width: 36px;
}

.standings-thead th.col-team {
    min-width: 140px;
}

.standings-thead th.col-stat {
    width: 36px;
}

.standings-thead th.col-avg {
    width: 44px;
}

.standings-thead th.col-points {
    width: 44px;
}

/* Table Body */
.standings-tbody .standings-row {
    border-bottom: 1px solid #f0f0f0;
}

.standings-tbody .standings-row:last-child {
    border-bottom: none;
}

/* Row Cells */
.standings-row td {
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
}

.standings-row td.col-team {
    text-align: left;
    padding-left: 0;
}

/* Rank Column */
.standings-row .col-rank {
    position: relative;
    padding-left: 12px;
}

.standings-row .rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-weight: 700;
    font-size: 12px;
    color: #333;
    border-radius: 6px;
    background: #f5f5f5;
}

/* Zone Styles */
.standings-row.zone-ucl .col-rank {
    border-left: 3px solid #ffd700;
}

.standings-row.zone-ucl .rank-number {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    color: #856404;
}

.standings-row.zone-uel .col-rank {
    border-left: 3px solid #ff6b35;
}

.standings-row.zone-uel .rank-number {
    background: linear-gradient(135deg, #fff3ed, #ffe4d9);
    color: #c62828;
}

.standings-row.zone-uecl .col-rank {
    border-left: 3px solid #4caf50;
}

.standings-row.zone-uecl .rank-number {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.standings-row.zone-relegation .col-rank {
    border-left: 3px solid #e74c3c;
}

.standings-row.zone-relegation .rank-number {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
}

.standings-row.zone-relegation {
    background: #fffafa;
}

/* Team Info */
.team-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 8px;
}

.team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-name {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Stats */
.standings-row .col-stat {
    font-weight: 500;
    color: #555;
    font-size: 13px;
}

.standings-row .stat-won {
    color: #27ae60;
}

.standings-row .stat-lost {
    color: #e74c3c;
}

/* Averaj */
.standings-row .col-avg {
    font-weight: 600;
}

.standings-row .col-avg.avg-positive {
    color: #27ae60;
}

.standings-row .col-avg.avg-negative {
    color: #e74c3c;
}

.standings-row .col-avg.avg-neutral {
    color: #888;
}

/* Points Badge */
.points-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 26px;
    padding: 0 8px;
    background: linear-gradient(135deg, #1a472a, #2d5a3d);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    border-radius: 6px;
}

/* Empty State */
.standings-empty {
    padding: 32px 16px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* Footer */
.standings-footer {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.standings-more-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #1a472a;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.standings-more-link:hover {
    color: #27ae60;
}

.standings-more-link svg {
    transition: transform 0.2s ease;
}

.standings-more-link:hover svg {
    transform: translateX(3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .col-hide-tablet {
        display: none;
    }

    .standings-legend {
        gap: 8px;
        padding: 10px 12px;
    }

    .legend-item {
        font-size: 10px;
    }

    .team-name {
        max-width: 100px;
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .col-hide-mobile {
        display: none;
    }

    .standings-card-header {
        padding: 12px 16px;
    }

    .standings-title {
        font-size: 14px;
    }

    .standings-league-badge {
        width: 32px;
        height: 32px;
    }

    .standings-legend {
        display: none;
    }

    .standings-thead th {
        padding: 10px 6px;
        font-size: 10px;
    }

    .standings-row td {
        padding: 8px 6px;
    }

    .team-info {
        gap: 8px;
        padding-left: 4px;
    }

    .team-logo {
        width: 20px;
        height: 20px;
    }

    .team-name {
        max-width: 90px;
        font-size: 12px;
    }

    .rank-number {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .points-badge {
        min-width: 28px;
        height: 24px;
        font-size: 12px;
    }

    .standings-table {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .standings-card {
        border-radius: 8px;
        margin-bottom: 16px;
    }

    .standings-hashtag {
        display: none;
    }

    .team-name {
        max-width: 75px;
        font-size: 11px;
    }

    .standings-thead th.col-stat,
    .standings-row .col-stat {
        padding: 6px 4px;
    }
}

/* ============================================
   GOL KRALLIGI
   ============================================ */

.goalking-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.goalking-card-header {
    background: linear-gradient(135deg, #8b0000 0%, #b22222 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.goalking-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.goalking-hashtag {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.goalking-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.goalking-badge {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.goalking-list {
    flex: 1;
    padding: 0;
    margin: 0;
    list-style: none;
}

.goalking-item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.goalking-item:last-child {
    border-bottom: none;
}

.goalking-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-weight: 700;
    font-size: 13px;
    color: #333;
    border-radius: 50%;
    background: #f5f5f5;
}

.goalking-item:nth-child(1) .goalking-rank {
    background: linear-gradient(135deg, #ffd700, #f0c800);
    color: #7a5c00;
}

.goalking-item:nth-child(2) .goalking-rank {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #555;
}

.goalking-item:nth-child(3) .goalking-rank {
    background: linear-gradient(135deg, #cd7f32, #b5651d);
    color: #fff;
}

.goalking-player {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.goalking-player-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goalking-player-team {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goalking-goals {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: linear-gradient(135deg, #8b0000, #b22222);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    min-width: 50px;
}

.goalking-goals-value {
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}

.goalking-goals-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.8;
}

.goalking-footer {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.goalking-more-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #8b0000;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

/* Gol Krallığı Responsive */
@media (max-width: 768px) {
    .goalking-card-header {
        padding: 12px 16px;
    }

    .goalking-title {
        font-size: 14px;
    }

    .goalking-item {
        gap: 10px;
        padding: 10px 12px;
    }

    .goalking-player-name {
        font-size: 13px;
    }

    .goalking-goals {
        padding: 6px 10px;
        min-width: 44px;
    }

    .goalking-goals-value {
        font-size: 16px;
    }
}

/* ============================================
   MANSET PLACEHOLDER (sport-main icinde)
   ============================================ */

.sport-headline-area {
    margin-bottom: 24px;
}

.headline-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #adb5bd;
}

.placeholder-content svg {
    opacity: 0.5;
}

.placeholder-content span {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
