/* Player Profile Styles */
.player-profile {
    max-width: 1200px;
    margin: 80px auto;
    min-height: 100vh;
}

/* Profile Header */
.profile-header {
    background: linear-gradient(180deg, rgba(32, 44, 60, 0.95) 0%, rgba(26, 35, 48, 0.95) 100%);
    border: 1px solid rgba(255, 183, 0, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-grade img {
    object-fit: contain;
    border-radius: 50%;
}

.player-details {
    flex: 1;
}

.player-nickname {
    font-size: 20px;
    color: var(--gold);
    margin: 0 0 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.player-id {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Consolas', monospace;
}

.player-status-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* VIP Styles */
.vip-name {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255, 183, 0, 0.5);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(255, 183, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(255, 183, 0, 0.8));
    }
}

.vip-tag {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 183, 0, 0.3);
}

/* Online Status */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
}

.status-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.status-indicator.online .status-dot {
    background: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    animation: pulse 2s infinite;
}

.status-indicator.online .status-text {
    color: #4CAF50;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Rank Progress */
.rank-progress {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid rgba(255, 183, 0, 0.1);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.rank-info {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.exp-percentage {
    color: var(--gold);
    font-family: 'Consolas', monospace;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 183, 0, 0.2);
}

.progress-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gold);
    transition: width 0.3s ease-out;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stats-grid .stats-card.details {
    grid-column: 1 / -1;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(180deg, rgba(32, 44, 60, 0.95) 0%, rgba(26, 35, 48, 0.95) 100%);
    border: 1px solid rgba(255, 183, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-header {
    background: linear-gradient(90deg, rgba(255, 183, 0, 0.1), transparent);
    border-bottom: 1px solid rgba(255, 183, 0, 0.2);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.card-header h3 {
    color: var(--gold);
    font-size: 18px;
    margin: 0;
}

.stats-content {
    padding: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-row .label {
    color: rgba(255, 255, 255, 0.7);
}

.stat-row .value {
    color: var(--gold);
    font-family: 'Consolas', monospace;
    font-size: 18px;
}

.stats-card.matches {
    background: linear-gradient(180deg, rgba(32, 44, 60, 0.95) 0%, rgba(26, 35, 48, 0.95) 100%);
    border: 1px solid rgba(255, 183, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.stats-card.matches .card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 183, 0, 0.1);
}

.stats-card.matches .card-header i {
    color: var(--gold);
    width: 24px;
    height: 24px;
}

.stats-card.matches .card-header h3 {
    color: var(--gold);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.stats-card.matches .stats-content {
    padding: 20px;
}

.stats-card.matches .stat-row.total-matches {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 183, 0, 0.1);
}

.stats-card.matches .stat-row .label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.stats-card.matches .stat-row .value {
    color: var(--gold);
    font-size: 24px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 183, 0, 0.3);
}

.win-rate-bars {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(255, 183, 0, 0.1);
}

.rate-bar {
    height: 36px;
    margin-bottom: 10px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.rate-bar:last-child {
    margin-bottom: 0;
}

.rate-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--width);
    transition: width 0.3s ease;
}

.rate-bar.win::before {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.rate-bar.loss::before {
    background: linear-gradient(90deg, #f44336, #e53935);
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.3);
}

.rate-bar.draw::before {
    background: linear-gradient(90deg, #FFC107, #FFA000);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.rate-bar .rate-label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* Combat Statistics */
.combat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.combat-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.stat-circle svg {
    transform: rotate(-90deg);
}

.stat-circle .stat-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: var(--gold);
    font-family: 'Consolas', monospace;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Detailed Stats */
.detailed-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.detailed-stat {
    background: linear-gradient(180deg, rgba(32, 44, 60, 0.4) 0%, rgba(26, 35, 48, 0.4) 100%);
    border: 1px solid rgba(255, 183, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.detailed-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 183, 0, 0.3);
    background: linear-gradient(180deg, rgba(255, 183, 0, 0.1) 0%, rgba(255, 138, 0, 0.1) 100%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.detailed-stat i {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.stat-info .value {
    font-size: 16px;
    color: var(--gold);
    font-family: 'Consolas', monospace;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .detailed-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .profile-header {
        padding: 20px;
    }

    .player-nickname {
        font-size: 24px;
    }

    .combat-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .detailed-stats-grid {
        gap: 15px;
    }

    .detailed-stat {
        padding: 12px;
    }

    .player-status-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .vip-tag {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .detailed-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-circle {
        width: 60px;
        height: 60px;
    }
}
