﻿.profile-page {
    padding: 28px 0 60px;
}

.profile-back-btn {
    display: inline-flex;
    align-items: center;
    background: #0f172a;
    color: white;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 16px;
    font-weight: 800;
    margin-bottom: 24px;
}

.profile-card,
.skill-card {
    background: white;
    border-radius: 28px;
    padding: 28px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
}

.profile-card {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 34px;
}

.profile-photo-box {
    width: 100%;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    background: #f3f4f6;
}

    .profile-photo-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.profile-no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-weight: 800;
}

.profile-info h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 28px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.05rem;
}

    .profile-row span {
        color: #374151;
        font-weight: 600;
    }

    .profile-row b {
        color: #111827;
        font-weight: 900;
    }

.profile-level,
.skill-badge {
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 900;
}

    /* BADGE COLORS */

    .skill-badge.lv1,
    .profile-level.lv1 {
        background: #f1f5f9;
        color: #64748b !important;
    }

    .skill-badge.lv2,
    .profile-level.lv2 {
        background: #dcfce7;
        color: #16a34a !important;
    }

    .skill-badge.lv3,
    .profile-level.lv3 {
        background: #ffedd5;
        color: #ea580c !important;
    }

    .skill-badge.lv4,
    .profile-level.lv4 {
        background: #dbeafe;
        color: #2563eb !important;
    }

    .skill-badge.lv5,
    .profile-level.lv5 {
        background: #ede9fe;
        color: #7c3aed !important;
    }

    .skill-badge.lv6,
    .profile-level.lv6 {
        background: #fef9c3;
        color: #ca8a04 !important;
        box-shadow: 0 0 12px rgba(234,179,8,.35);
    }

    .skill-badge.lv7,
    .profile-level.lv7 {
        background: #450a0a;
        color: #ff6b6b !important;
        box-shadow: 0 0 15px rgba(239,68,68,.55);
    }

/* STATS */

.profile-stat-card {
    margin-top: 26px;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 22px;
    background: #fff;
}

    .profile-stat-card h4 {
        font-size: 1.4rem;
        font-weight: 900;
        margin-bottom: 18px;
    }

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    text-align: center;
}

    .profile-stat-grid div {
        border-right: 1px solid #e5e7eb;
    }

        .profile-stat-grid div:last-child {
            border-right: none;
        }

    .profile-stat-grid span {
        display: block;
        font-size: .9rem;
        color: #374151;
        margin-bottom: 6px;
    }

    .profile-stat-grid b {
        font-size: 1.4rem;
        font-weight: 900;
        color: #111827;
    }

/* SKILL CARD */

.skill-card {
    margin-top: 28px;
}

    .skill-card h2 {
        font-size: 1.6rem;
        font-weight: 900;
        margin-bottom: 20px;
        color: #111827;
    }

.skill-item {
    display: grid;
    grid-template-columns: 54px 1fr 70px;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eef2f7;
    border-radius: 18px;
}

    .skill-item:last-child {
        border-bottom: none;
    }

.skill-emoji {
    font-size: 2rem;
    text-align: center;
}

.skill-text b {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    color: #111827;
}

.skill-text span {
    display: block;
    color: #374151;
    margin-top: 4px;
    line-height: 1.4;
}

.skill-lv {
    font-size: 1rem;
    font-weight: 900;
    color: #111827;
    text-align: right;
}

/* ACTIVE SKILL COLORS */

.skill-item.lv1.active {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}

.skill-item.lv2.active {
    background: #dcfce7;
    border: 1px solid #22c55e;
}

.skill-item.lv3.active {
    background: #ffedd5;
    border: 1px solid #f97316;
}

.skill-item.lv4.active {
    background: #dbeafe;
    border: 1px solid #3b82f6;
}

.skill-item.lv5.active {
    background: #ede9fe;
    border: 1px solid #8b5cf6;
}

.skill-item.lv6.active {
    background: #fef9c3;
    border: 2px solid #eab308;
    box-shadow: 0 0 15px rgba(234,179,8,.35);
}

.skill-item.lv7.active {
    background: #2b0a0a;
    border: 2px solid #ef4444;
    box-shadow: 0 0 25px rgba(239,68,68,.55);
}

.skill-item.lv1.active .skill-text b,
.skill-item.lv1.active .skill-lv {
    color: #64748b;
}

.skill-item.lv2.active .skill-text b,
.skill-item.lv2.active .skill-lv {
    color: #16a34a;
}

.skill-item.lv3.active .skill-text b,
.skill-item.lv3.active .skill-lv {
    color: #ea580c;
}

.skill-item.lv4.active .skill-text b,
.skill-item.lv4.active .skill-lv {
    color: #2563eb;
}

.skill-item.lv5.active .skill-text b,
.skill-item.lv5.active .skill-lv {
    color: #7c3aed;
}

.skill-item.lv6.active .skill-text b,
.skill-item.lv6.active .skill-lv {
    color: #ca8a04;
}

.skill-item.lv7.active .skill-text b,
.skill-item.lv7.active .skill-text span,
.skill-item.lv7.active .skill-lv {
    color: #ff6b6b;
}

/* MOBILE */

@media (max-width: 768px) {
    .profile-page {
        padding: 18px 0 44px;
    }

    .profile-back-btn {
        margin-left: 8px;
        padding: 12px 18px;
        font-size: .95rem;
        border-radius: 14px;
    }

    .profile-card {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 18px;
        border-radius: 24px;
    }

    .profile-photo-box {
        height: 380px;
        border-radius: 22px;
    }

    .profile-info h1 {
        font-size: 2.2rem;
        margin-bottom: 18px;
    }

    .profile-row {
        font-size: .95rem;
        padding: 13px 0;
    }

    .profile-stat-card {
        padding: 18px;
        border-radius: 20px;
    }

        .profile-stat-card h4 {
            font-size: 1.2rem;
        }

    .profile-stat-grid span {
        font-size: .75rem;
    }

    .profile-stat-grid b {
        font-size: 1rem;
    }

    .skill-card {
        padding: 18px;
        border-radius: 24px;
    }

        .skill-card h2 {
            font-size: 1.3rem;
        }

    .skill-item {
        grid-template-columns: 42px 1fr 48px;
        gap: 10px;
        padding: 12px 8px;
    }

    .skill-emoji {
        font-size: 1.7rem;
    }

    .skill-text b {
        font-size: .98rem;
    }

    .skill-text span {
        font-size: .85rem;
    }

    .skill-lv {
        font-size: .9rem;
    }
}
