/* Football Pool Extend - Styles */

.fpe-ranking-container {
    margin: 20px 0;
    overflow-x: auto;
}

.fpe-ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.fpe-ranking-table thead {
    background: #2c3e50;
    color: white;
}

.fpe-ranking-table th,
.fpe-ranking-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.fpe-ranking-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.fpe-ranking-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.fpe-ranking-table tbody tr:hover {
    background: #e8f4f8;
    transition: background-color 0.3s ease;
}

.fpe-ranking-table .position {
    width: 80px;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
}

.fpe-ranking-table .user {
    min-width: 150px;
    font-weight: 500;
}

.fpe-ranking-table .points,
.fpe-ranking-table .wisla-points,
.fpe-ranking-table .exact-scores,
.fpe-ranking-table .matches-count {
    width: 80px;
    text-align: center;
    font-weight: 500;
}

.fpe-ranking-table .points {
    color: #27ae60;
    font-size: 1.1em;
    font-weight: bold;
}

.fpe-ranking-table .wisla-points {
    color: #e74c3c;
}

.fpe-ranking-table .exact-scores {
    color: #f39c12;
}

.fpe-ranking-table .matches-count {
    color: #3498db;
}

/* Ranking ogólny - dodatkowa kolumna - usunięto background */

/* Ikony w nagłówkach tabeli */
.fpe-ranking-table .table-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    filter: brightness(1.2);
}

/* Legenda ikon */
.fpe-legend {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.fpe-legend h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #2c3e50;
    font-weight: 600;
}

.fpe-legend .legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.fpe-legend .legend-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #555;
}

.fpe-legend .legend-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: middle;
}

/* Pozycje - podstawowy ranking (tylko pogrubienie pierwszego miejsca) */
.fpe-ranking-table tbody tr.first-place {
    font-weight: bold !important;
}

.fpe-ranking-table tbody tr.first-place td {
    font-weight: bold !important;
}

/* Pozycje - ranking ogólny (pogrubienie pierwszego + deseń dla TOP 3) */
.fpe-general-ranking tbody tr.first-place {
    font-weight: bold !important;
}

.fpe-general-ranking tbody tr.first-place td {
    font-weight: bold !important;
}

.fpe-general-ranking tbody tr.top-three {
    background: linear-gradient(135deg, #f8f9fa 25%, transparent 25%) -7px 0,
                linear-gradient(225deg, #f8f9fa 25%, transparent 25%) -7px 0,
                linear-gradient(315deg, #f8f9fa 25%, transparent 25%),
                linear-gradient(45deg, #f8f9fa 25%, transparent 25%);
    background-size: 14px 14px;
    background-color: #fff;
}

/* Usuń deseń z kolumny liczby meczów - bez własnego tła */
.fpe-general-ranking tbody tr.top-three .matches-count {
    background: transparent !important;
}

/* Komunikaty błędów */
.fpe-error {
    color: #e74c3c;
    background: #fadbd8;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #e74c3c;
    margin: 10px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .fpe-ranking-table {
        font-size: 0.9em;
    }
    
    .fpe-ranking-table th,
    .fpe-ranking-table td {
        padding: 8px 4px;
    }
    
    .fpe-ranking-table .user {
        min-width: 120px;
    }
    
    .fpe-ranking-table .points,
    .fpe-ranking-table .wisla-points,
    .fpe-ranking-table .exact-scores,
    .fpe-ranking-table .matches-count {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .fpe-ranking-container {
        margin: 10px -15px;
    }
    
    .fpe-ranking-table {
        font-size: 0.8em;
        border-radius: 0;
    }
    
    .fpe-ranking-table th,
    .fpe-ranking-table td {
        padding: 6px 2px;
    }
    
    /* Legenda na mobilnych */
    .fpe-legend .legend-items {
        flex-direction: column;
        gap: 8px;
    }
    
    .fpe-legend .legend-item {
        font-size: 12px;
    }
}

/* Styl dla shortcode statystyk użytkownika */
.fpe-user-stats {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fpe-user-stats-title {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 24px;
}

.fpe-overall-stats {
    background: #2c3e50;
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fpe-overall-stats h4 {
    margin: 0 0 20px 0;
    font-size: 20px;
    text-align: center;
    color: white;
}

.fpe-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.fpe-stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.fpe-stat-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.fpe-stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.fpe-stat-value.fpe-position {
    color: #f1c40f;
    font-size: 32px;
}

.fpe-stat-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.fpe-user-stats-rounds h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.fpe-user-stats-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.fpe-user-stats-table thead {
    background: #34495e;
    color: white;
}

.fpe-user-stats-table th,
.fpe-user-stats-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.fpe-user-stats-table th {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fpe-user-stats-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.fpe-user-stats-table tbody tr:hover {
    background: #e3f2fd;
    transition: background-color 0.3s ease;
}

.fpe-user-stats-table .fpe-position {
    font-weight: bold;
    color: #e67e22;
    font-size: 16px;
}

.fpe-user-stats-table .fpe-total-points {
    font-weight: bold;
    color: #27ae60;
    font-size: 16px;
}

.fpe-user-stats-table .fpe-wisla-points {
    color: #e74c3c;
    font-weight: 500;
}

.fpe-user-stats-table .fpe-exact-scores {
    color: #f39c12;
    font-weight: 500;
}

.fpe-user-stats-table .fpe-matches-count {
    color: #3498db;
    font-weight: 500;
}

.fpe-user-stats-table .fpe-no-data {
    color: #95a5a6;
    text-align: center;
    font-style: italic;
}

/* Responsive dla statystyk użytkownika */
@media (max-width: 768px) {
    .fpe-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .fpe-stat-item {
        padding: 10px;
    }
    
    .fpe-stat-value {
        font-size: 20px;
    }
    
    .fpe-stat-value.fpe-position {
        font-size: 28px;
    }
    
    .fpe-user-stats-table {
        font-size: 14px;
    }
    
    .fpe-user-stats-table th,
    .fpe-user-stats-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .fpe-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .fpe-overall-stats {
        padding: 15px;
    }
    
    .fpe-user-stats-table {
        font-size: 12px;
    }
    
    .fpe-user-stats-table th,
    .fpe-user-stats-table td {
        padding: 6px 4px;
    }
} 