/* Player Profile Specific Styles */

/* Player Profile Section */
.player-profile {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Loading and Error States */
.loading-container, .error-container, .player-content {
    text-align: center;
    padding: 80px 20px;
    color: #ffffff;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #34495e;
    border-top: 6px solid #f39c12;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-container h2 {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

/* Player Header */
.player-header {
    background: linear-gradient(145deg, #95a5a6, #7f8c8d);
    border-radius: 25px;
    padding: 40px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.player-info h1 {
    color: #2c3e50;
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: rgba(44, 62, 80, 0.2);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #f39c12;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: #34495e;
    font-weight: bold;
}

/* Ladder Statistics */
.ladder-stats {
    margin: 40px auto;
    max-width: 1200px;
}

.ladder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.ladder-card {
    background: linear-gradient(145deg, #95a5a6, #7f8c8d);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.ladder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(243, 156, 18, 0.2);
}

.ladder-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.ladder-elo {
    font-size: 3rem;
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 20px;
}

.ladder-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    text-align: left;
}

.detail-item {
    background: rgba(44, 62, 80, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.detail-label {
    color: #34495e;
    font-size: 0.8rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.detail-value {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: bold;
}

/* No Data State */
.no-ladder-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    background: rgba(44, 62, 80, 0.1);
    border: 2px dashed #34495e;
    border-radius: 20px;
    color: #7f8c8d;
}

.no-ladder-data h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Player Actions */
.player-actions {
    margin-top: 40px;
    text-align: center;
}

.player-actions .btn {
    margin: 0 10px 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .player-header {
        padding: 30px 20px;
    }
    
    .player-info h1 {
        font-size: 2.5rem;
    }
    
    .player-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .ladder-grid {
        grid-template-columns: 1fr;
    }
    
    .ladder-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .player-info h1 {
        font-size: 2rem;
    }
    
    .player-stats {
        grid-template-columns: 1fr;
    }
    
    .player-actions .btn {
        display: block;
        margin: 10px auto;
        width: 200px;
    }
}