/**
 * Scout Games – Ranking
 * Estilos do widget de ranking
 * Version: 1.0.0
 */

.sg-ranking-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sg-ranking-title {
    font-size: 28px;
    margin: 0 0 30px 0;
    color: #333;
    text-align: center;
}

.sg-ranking-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sg-ranking-list {
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.sg-ranking-row {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.3s;
}

.sg-ranking-row:last-child {
    border-bottom: none;
}

.sg-ranking-row:hover {
    background-color: #f8f9fa;
}

.sg-ranking-position {
    font-weight: bold;
    font-size: 18px;
    color: #007bff;
    min-width: 50px;
    text-align: center;
}

.sg-ranking-name {
    flex: 1;
    padding: 0 15px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.sg-ranking-points {
    font-size: 16px;
    font-weight: bold;
    color: #28a745;
    min-width: 100px;
    text-align: right;
}

.sg-ranking-empty {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 16px;
}

.sg-ranking-geral-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ABAS */
.sg-ranking-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.sg-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.sg-tab:hover {
    color: #007bff;
}

.sg-tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

/* DROPDOWN */
.sg-ranking-dropdown {
    margin-bottom: 30px;
}

.sg-game-type-select {
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.3s;
    background: white;
    min-width: 200px;
}

.sg-game-type-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .sg-ranking-container,
    .sg-ranking-geral-container {
        padding: 15px;
    }

    .sg-ranking-title {
        font-size: 24px;
    }

    .sg-ranking-row {
        padding: 12px 10px;
    }

    .sg-ranking-position {
        min-width: 40px;
        font-size: 16px;
    }

    .sg-ranking-name {
        padding: 0 10px;
        font-size: 14px;
    }

    .sg-ranking-points {
        min-width: 80px;
        font-size: 14px;
    }

    .sg-tab {
        padding: 10px 15px;
        font-size: 14px;
    }

    .sg-game-type-select {
        min-width: 100%;
    }

    .sg-ranking-tabs {
        gap: 5px;
    }

    .sg-ranking-actions {
        flex-direction: column;
    }

    .sg-ranking-actions .sg-btn {
        width: 100%;
    }
}

/* BOTÕES - Mesmo estilo do enigmatico */
.sg-btn {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #ffffff50;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    /* Gradiente padrão #507D5D até #243E2D */
    background: linear-gradient(135deg, #50609d 0%, #162237 100%);
    color: white;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 125, 93, 0.3);
}

.sg-btn:active {
    transform: translateY(0);
}

.sg-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sg-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.sg-btn-secondary:hover {
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* LOADING */
.sg-ranking-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.sg-ranking-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    background: radial-gradient(circle, #007bff 20%, transparent 20%);
    background-size: 5px 5px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}
