/* ===== PROFILE HEADER ===== */
.profile-header {
    background: radial-gradient(ellipse at top left, #0d0d2e 0%, #0a0a0f 60%);
    border-bottom: 1px solid #1a1a2e;
    padding: 40px;
}

.profile-header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* AVATAR */
.profile-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #0d0d2e, #1a1a4e);
    border: 3px solid #00f5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.badge.elite {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge.verified {
    background: rgba(0, 245, 255, 0.1);
    color: #00f5ff;
    border: 1px solid rgba(0, 245, 255, 0.3);
}

.badge.founder {
    background: rgba(255, 50, 50, 0.1);
    color: #ff3232;
    border: 1px solid rgba(255, 50, 50, 0.3);
}

/* CENTER */
.profile-name-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.profile-name-row h1 {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
}

.profile-rank {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.profile-rank.gold {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

.profile-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #aaaaaa;
    margin-bottom: 20px;
}

.profile-gaming-ids h4 {
    font-size: 12px;
    font-weight: 700;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.gaming-ids-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.gaming-id {
    background: #0d0d1a;
    border: 1px solid #1a1a2e;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gid-game {
    font-size: 11px;
    color: #aaaaaa;
}

.gid-name {
    font-size: 13px;
    font-weight: 700;
    color: #00f5ff;
}

/* RIGHT STATS */
.profile-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.profile-stat-card {
    background: #0d0d1a;
    border: 1px solid #1a1a2e;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.psc-value {
    font-size: 22px;
    font-weight: 900;
    color: #00f5ff;
}

.psc-label {
    font-size: 11px;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== PROFILE BODY ===== */
.profile-body {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    background: #0a0a0f;
}

.profile-widget {
    background: #0d0d1a;
    border: 1px solid #1a1a2e;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.profile-widget h3 {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1a1a2e;
}

.profile-bio {
    font-size: 14px;
    color: #aaaaaa;
    line-height: 1.7;
}

/* VERIFIED IDs */
.verified-ids {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vid-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #1a1a2e;
}

.vid-item:last-child {
    border-bottom: none;
}

.vid-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.vid-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vid-game {
    font-size: 11px;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vid-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.vid-verified {
    font-size: 12px;
    color: #00ff64;
    font-weight: 700;
    flex-shrink: 0;
}

/* CLAN */
.profile-clan {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pc-avatar {
    font-size: 40px;
    flex-shrink: 0;
}

.pc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pc-name {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
}

.pc-role {
    font-size: 12px;
    color: #ffd700;
    font-weight: 700;
}

.pc-region {
    font-size: 12px;
    color: #aaaaaa;
}

.pc-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    font-size: 12px;
    color: #aaaaaa;
}

/* ACHIEVEMENTS */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.achievement {
    background: #0a0a0f;
    border: 1px solid #1a1a2e;
    border-radius: 10px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    transition: all 0.2s;
}

.achievement.earned {
    border-color: rgba(0, 245, 255, 0.3);
}

.achievement.earned:hover {
    border-color: #00f5ff;
    transform: translateY(-2px);
}

.achievement.locked {
    opacity: 0.35;
    filter: grayscale(1);
}

.ach-icon {
    font-size: 28px;
}

.ach-name {
    font-size: 10px;
    color: #aaaaaa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* STATS OVERVIEW */
.stats-overview {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.so-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #1a1a2e;
    font-size: 14px;
}

.so-row:last-child {
    border-bottom: none;
}

.so-label {
    color: #aaaaaa;
}

.so-value {
    font-weight: 700;
    color: #ffffff;
}

.so-value.cyan { color: #00f5ff; }
.so-value.green { color: #00ff64; }
.so-value.gold { color: #ffd700; }

/* RECENT TOURNAMENTS */
.recent-tournaments {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rt-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #1a1a2e;
}

.rt-item:last-child {
    border-bottom: none;
}

.rt-result {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    flex-shrink: 0;
}

.rt-result.win {
    background: rgba(0, 255, 100, 0.15);
    color: #00ff64;
}

.rt-result.loss {
    background: rgba(255, 50, 50, 0.15);
    color: #ff3232;
}

.rt-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rt-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.rt-detail {
    font-size: 12px;
    color: #555555;
}

.rt-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.rt-earn {
    font-size: 15px;
    font-weight: 900;
    color: #00ff64;
}

.rt-earn.loss-earn {
    color: #ff3232;
}

.rt-date {
    font-size: 11px;
    color: #555555;
}

/* REPUTATION */
.reputation-bar-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.rep-bar {
    flex: 1;
    background: #1a1a2e;
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
}

.rep-fill {
    height: 100%;
    background: linear-gradient(135deg, #00f5ff, #00ff64);
    border-radius: 6px;
}

.rep-score {
    font-size: 14px;
    font-weight: 700;
    color: #00f5ff;
    white-space: nowrap;
}

.rep-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rep-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #1a1a2e;
}

.rep-item:last-child {
    border-bottom: none;
}

.rep-item.positive span:last-child {
    color: #00ff64;
    font-weight: 700;
}

.rep-item.negative span:last-child {
    color: #ff3232;
    font-weight: 700;
}

/* MOBILE */
@media (max-width: 768px) {
    .profile-header { padding: 20px; }
    .profile-header-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .profile-right {
        grid-template-columns: repeat(2, 1fr);
    }
    .profile-body {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .gaming-ids-grid {
        grid-template-columns: 1fr;
    }
    .profile-name-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .profile-header-content {
        grid-template-columns: auto 1fr;
        gap: 24px;
    }
    .profile-right {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, 1fr);
    }
    .profile-body {
        grid-template-columns: 1fr;
    }
}