/* =========================================================
   EXISTING PROFILE STYLES
========================================================= */

.profile-main {

    max-width: 600px;

    margin: 0 auto;

    padding: 2rem 1rem;

}

.profile-list {

    background-color: var(--color-surface);

    border: 1px solid var(--color-border);

    border-radius: var(--radius);

    padding: 1.25rem;

}

.profile-list dt {

    font-weight: 600;

    color: var(--color-text-muted);

    font-size: 0.85rem;

    margin-top: 0.75rem;

}

.profile-list dd {

    margin: 0;

    font-size: 1rem;

}

.session-list {

    list-style: none;

    padding: 0;

}

.session-list li {

    background-color: var(--color-surface);

    border: 1px solid var(--color-border);

    border-radius: var(--radius);

    padding: 0.75rem 1rem;

    margin-bottom: 0.5rem;

    font-size: 0.9rem;

}


/* =========================================================
   PROFILE PAGE FOUNDATION
========================================================= */

.profile-main {

    width: 100%;

    max-width: none;

    margin: 0;

    padding: 0;

    overflow: hidden;

}

.profile-main section {

    width: 100%;

}


/* =========================================================
   PROFILE BRAND
========================================================= */

.profile-brand {

    display: flex;

    align-items: center;

    gap: 0.75rem;

}

.profile-brand h1 {

    margin: 0;

    font-size: 1.25rem;

    font-weight: 800;

    letter-spacing: -0.02em;

}

.profile-brand span {

    padding-left: 0.75rem;

    border-left: 1px solid var(--color-border);

    color: var(--color-text-muted);

    font-size: 0.78rem;

}


/* =========================================================
   SECTION LABEL
========================================================= */

.profile-main .section-label {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0.45rem 0.9rem;

    margin-bottom: 1.25rem;

    border: 1px solid rgba(29, 78, 216, 0.16);

    border-radius: 999px;

    background: rgba(29, 78, 216, 0.06);

    color: var(--color-primary);

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;

}


/* =========================================================
   PROFILE HERO
========================================================= */

.profile-hero {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 420px;

    padding: 6rem 1.5rem;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(29, 78, 216, 0.09),
            transparent 48%
        ),
        var(--color-background);

    text-align: center;

    border-bottom: 1px solid var(--color-border);

}

.profile-hero::before {

    content: "";

    position: absolute;

    width: 380px;

    height: 380px;

    top: -220px;

    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    background: rgba(29, 78, 216, 0.05);

}

.profile-hero-content {

    position: relative;

    z-index: 2;

    max-width: 820px;

    margin: 0 auto;

}

.profile-hero-content h2 {

    margin: 0;

    font-size: clamp(3rem, 7vw, 5rem);

    line-height: 1;

    font-weight: 800;

    letter-spacing: -0.05em;

}

.profile-hero-content p {

    max-width: 680px;

    margin: 1.5rem auto 0;

    color: var(--color-text-muted);

    font-size: clamp(1rem, 2vw, 1.15rem);

    line-height: 1.8;

}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.profile-section-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 3rem;

    max-width: 1100px;

    margin: 0 auto 2.75rem;

}

.profile-section-heading h3 {

    margin: 0;

    font-size: clamp(1.9rem, 4vw, 2.8rem);

    line-height: 1.1;

    letter-spacing: -0.035em;

}

.profile-section-heading > p {

    max-width: 380px;

    margin: 0;

    color: var(--color-text-muted);

    font-size: 0.92rem;

    line-height: 1.7;

}


/* =========================================================
   PROFILE INFORMATION
========================================================= */

.profile-information {

    padding: 7rem 1.5rem;

    background: var(--color-surface);

    border-bottom: 1px solid var(--color-border);

}

.profile-information-card {

    max-width: 1100px;

    margin: 0 auto;

    padding: 2rem;

    border: 1px solid var(--color-border);

    border-radius: calc(var(--radius) + 2px);

    background: var(--color-background);

}

.profile-card-heading {

    display: flex;

    align-items: center;

    gap: 1rem;

    padding-bottom: 1.75rem;

    margin-bottom: 1.75rem;

    border-bottom: 1px solid var(--color-border);

}

.profile-avatar {

    display: flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 auto;

    width: 58px;

    height: 58px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            var(--color-primary),
            var(--color-primary-dark)
        );

    color: #ffffff;

    font-size: 1.2rem;

    font-weight: 800;

}

.profile-card-label {

    display: block;

    margin-bottom: 0.25rem;

    color: var(--color-text-muted);

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.07em;

    text-transform: uppercase;

}

.profile-card-heading h3 {

    margin: 0;

    color: var(--color-text);

    font-size: 1.15rem;

}


/* =========================================================
   PROFILE DETAILS
========================================================= */

.profile-list {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 0;

    padding: 0;

    margin: 0;

    background: transparent;

    border: none;

    border-radius: 0;

}

.profile-detail {

    min-width: 0;

    padding: 1.25rem 1rem;

    border-bottom: 1px solid var(--color-border);

}

.profile-detail:nth-last-child(-n + 2) {

    border-bottom: none;

}

.profile-detail dt {

    margin: 0 0 0.45rem;

    color: var(--color-text-muted);

    font-size: 0.76rem;

    font-weight: 700;

    letter-spacing: 0.06em;

    text-transform: uppercase;

}

.profile-detail dd {

    margin: 0;

    color: var(--color-text);

    font-size: 0.98rem;

    font-weight: 600;

    overflow-wrap: anywhere;

}


/* =========================================================
   ACTIVE SESSIONS
========================================================= */

.profile-sessions {

    padding: 7rem 1.5rem;

    background: var(--color-background);

    border-bottom: 1px solid var(--color-border);

}

.session-container {

    max-width: 1100px;

    margin: 0 auto;

}

.session-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 1.25rem 0.9rem;

    color: var(--color-text-muted);

    font-size: 0.75rem;

    font-weight: 700;

    letter-spacing: 0.07em;

    text-transform: uppercase;

}

.session-list {

    display: grid;

    gap: 0.75rem;

    margin: 0;

}

.session-list li {

    position: relative;

    display: flex;

    align-items: center;

    min-height: 70px;

    margin: 0;

    padding: 1rem 1.25rem 1rem 3.25rem;

    background: var(--color-surface);

    border: 1px solid var(--color-border);

    border-radius: var(--radius);

    color: var(--color-text);

    font-size: 0.9rem;

    line-height: 1.5;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}

.session-list li::before {

    content: "";

    position: absolute;

    left: 1.25rem;

    width: 10px;

    height: 10px;

    border-radius: 50%;

    background: var(--color-primary);

    box-shadow:
        0 0 0 5px rgba(29, 78, 216, 0.08);

}

.session-list li:hover {

    transform: translateY(-2px);

    border-color: rgba(29, 78, 216, 0.22);

    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.06);

}


/* =========================================================
   EMPTY SESSION STATE
========================================================= */

.session-list:empty {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 180px;

    padding: 2rem;

    border: 1px dashed var(--color-border);

    border-radius: var(--radius);

    background: var(--color-surface);

}

.session-list:empty::after {

    content: "Your active sessions will appear here.";

    color: var(--color-text-muted);

    font-size: 0.9rem;

    text-align: center;

}


/* =========================================================
   PROFILE GUIDANCE
========================================================= */

.profile-guidance {

    padding: 8rem 1.5rem;

    background: var(--color-surface);

}

.profile-guidance-content {

    max-width: 820px;

    margin: 0 auto;

    text-align: center;

}

.profile-guidance-content h3 {

    margin: 0;

    font-size: clamp(2rem, 4vw, 3.2rem);

    line-height: 1.08;

    letter-spacing: -0.04em;

}

.profile-guidance-content p {

    max-width: 680px;

    margin: 1.4rem auto 0;

    color: var(--color-text-muted);

    font-size: 1rem;

    line-height: 1.8;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .profile-section-heading {

        align-items: flex-start;

        flex-direction: column;

        gap: 0.75rem;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .profile-brand span {

        display: none;

    }

    .profile-hero {

        min-height: 390px;

        padding: 5rem 1.25rem;

    }

    .profile-hero-content h2 {

        font-size: 3.5rem;

    }

    .profile-information,
    .profile-sessions,
    .profile-guidance {

        padding: 5rem 1.25rem;

    }

    .profile-information-card {

        padding: 1.5rem;

    }

    .profile-list {

        grid-template-columns: 1fr;

    }

    .profile-detail:nth-last-child(-n + 2) {

        border-bottom: 1px solid var(--color-border);

    }

    .profile-detail:last-child {

        border-bottom: none;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .profile-hero-content h2 {

        font-size: 3rem;

    }

    .profile-information,
    .profile-sessions,
    .profile-guidance {

        padding-left: 1rem;

        padding-right: 1rem;

    }

    .profile-information-card {

        padding: 1.25rem;

    }

    .profile-card-heading {

        align-items: flex-start;

    }

    .session-header span:last-child {

        display: none;

    }

}