/* Player Profile Page Styles */

.player-profile {
    padding: 40px 0;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2c5f2d;
}

.profile-picture.default {
    background: linear-gradient(135deg, #2c5f2d 0%, #4a8c4b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    font-weight: bold;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    margin: 0 0 10px 0;
    color: #2c5f2d;
    font-size: 2.5em;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.ranking-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    border: 1px solid var(--border-color);
}

.ranking-card .stat-value {
    color: var(--primary-color);
    font-size: 2.2em;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #2c5f2d;
    font-size: 1.2em;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.match-history {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.match-history h3 {
    margin: 0 0 20px 0;
    color: #2c5f2d;
    font-size: 1.8em;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
}


.player-score {
    display: block;
    font-size: 0.85em;
    color: #666;
}

.vs-divider {
    font-weight: bold;
    font-size: 1em;
    color: #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.vs-divider .score {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c5f2d;
    line-height: 1;
}

.vs-divider .vs-text {
    font-size: 0.85em;
    color: #999;
    letter-spacing: 1px;
}

.match-stats {
    background: white;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

.stat-value {
    font-weight: 500;
    color: #333;
}

.rating-change {
    font-weight: bold;
    margin-left: 8px;
    font-size: 0.85em;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
}

.rating-change.positive {
    color: #fff;
    background: linear-gradient(135deg, #2c5f2d 0%, #4a8c4b 100%);
    box-shadow: 0 2px 4px rgba(44, 95, 45, 0.3);
}

.rating-change.negative {
    color: #fff;
    background: linear-gradient(135deg, #c41e3a 0%, #e74c3c 100%);
    box-shadow: 0 2px 4px rgba(196, 30, 58, 0.3);
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #2c5f2d;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.arm-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    margin-left: 10px;
}

.arm-badge.left {
    background: #336934;
    color: white;
}

.arm-badge.right {
    background: #161b64;
    color: white;
}

.match-video {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.match-video .instagram-media {
    margin: 0 auto !important;
    max-width: 540px !important;
}

.round-details {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.round-details summary {
    cursor: pointer;
    color: #2c5f2d;
    font-weight: 500;
    padding: 5px 0;
    user-select: none;
}

.round-details summary:hover {
    color: #4a8c4b;
}

.rounds-list {
    margin-top: 15px;
}

.round-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 8px;
}

.round-label {
    font-weight: 500;
    color: #333;
    min-width: 80px;
}

.round-winner {
    color: #333;
    font-size: 0.95em;
}

.round-winner strong {
    color: #2c5f2d;
}

.round-ratings {
    color: #666;
    font-size: 0.9em;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .matches-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {   
    .match-result {
        flex-direction: column;
        gap: 15px;
    }
    
    .round-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .round-label {
        font-weight: bold;
    }
}
