/* ========== PERFIL DO PLAYER (ESTILO SUPERMAJOR) ========== */
.player-profile {
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid #dc2626;
    border-radius: 16px;
    padding: 28px 32px;
    color: #f8fafc;
    margin-top: 10px;
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.15);
    overflow: hidden;
}

.player-profile.has-banner {
    padding-top: 0;
}

.profile-banner {
    position: relative;
    height: 100px;
    margin: -1px -1px 0 -1px;
    background-size: cover;
    background-position: center;
    background-color: #17171c;
    background-image: linear-gradient(135deg, #1a1a22, #241014);
    transition: height 0.2s;
}

.player-profile.has-banner .profile-banner {
    height: 160px;
}

.profile-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(10,10,15,0.95) 100%);
}

.profile-avatar {
    position: absolute;
    left: 24px;
    bottom: -32px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dc2626;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
}

.has-banner .profile-header {
    padding-top: 44px;
}

@media (max-width: 640px) {
    .player-profile.has-banner .profile-banner { height: 110px; }
    .profile-avatar { width: 64px; height: 64px; left: 16px; bottom: -24px; }
    .has-banner .profile-header { padding-top: 34px; }
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(220, 38, 38, 0.4);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.profile-gamertag {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.winrate-badge {
    font-size: 28px;
    font-weight: 900;
    padding: 2px 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid currentColor;
    line-height: 1.2;
}

.record-badge {
    font-size: 16px;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255,255,255,0.06);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid #334155;
}

.profile-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 140px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
}

.stat-card .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b;
    font-weight: 700;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 900;
    display: block;
    line-height: 1.2;
}

.stat-card .record {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    display: block;
    margin-top: 4px;
}

.recent-form {
    margin-bottom: 30px;
}

.recent-form h3,
.highlights h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 12px;
    border-left: 4px solid #dc2626;
    padding-left: 12px;
}

.form-dots {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.form-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #334155;
    background: #1e293b;
}

.form-icon-empty {
    background: #17171c;
    border: 1px dashed #334155;
}

.form-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    background: #1e293b;
    border: 1px solid #334155;
}

.dot-1st {
    background: #facc15;
    color: #000;
    border-color: #facc15;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
}

.dot-top3 {
    background: #22c55e;
    color: #000;
    border-color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.dot-top8 {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.dot-other {
    background: #1e293b;
    color: #64748b;
    border-color: #334155;
}

.highlights {
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.highlight-item .placement {
    font-size: 18px;
    font-weight: 900;
    color: #facc15;
    min-width: 80px;
}

.highlight-item .event {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 16px;
}

.highlight-item .date {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* Abas */
.profile-tabs {
    margin-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
}

.tab-header {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 16px;
}

.tab-btn {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    cursor: pointer;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #fff;
    border-bottom-color: #dc2626;
}

.tab-btn:hover {
    color: #e2e8f0;
}

.event-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 13px;
    gap: 10px;
    flex-wrap: wrap;
}

.event-name {
    flex: 2;
    font-weight: 600;
    color: #e2e8f0;
}

.event-placement {
    flex: 1;
    font-weight: 700;
}

.event-record {
    flex: 1;
    color: #94a3b8;
}

.event-date {
    flex: 0.5;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 640px) {
    .player-profile {
        padding: 16px;
    }
    .profile-gamertag {
        font-size: 24px;
    }
    .winrate-badge {
        font-size: 22px;
    }
    .profile-summary {
        flex-direction: column;
    }
    .stat-card {
        min-width: auto;
    }
    .highlight-item {
        flex-wrap: wrap;
        gap: 6px;
    }
    .highlight-item .event {
        margin: 0;
        width: 100%;
        order: 3;
        font-size: 13px;
    }
    .highlight-item .placement {
        font-size: 16px;
        min-width: 60px;
    }
    .highlight-item .date {
        font-size: 11px;
    }
    .event-row {
        font-size: 12px;
    }
    .event-name {
        flex: 1 1 100%;
    }
}