/* ==========================================================
   PROFILE EXPANDABLE BIOGRAPHY
   Native details, tanpa JavaScript.
   ========================================================== */

.profile-expand {
    width: 100%;
    margin-top: 26px;

    border-top: 1px solid var(--theme-palette-color-5);
    border-bottom: 1px solid var(--theme-palette-color-5);
}


/* ==========================================================
   TRIGGER
   ========================================================== */

.profile-expand__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    width: 100%;
    padding: 18px 0;

    box-sizing: border-box;

    color: var(--theme-palette-color-1);

    font-family: Manrope, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    cursor: pointer;
    list-style: none;

    transition: color 180ms ease;
}


/* Hilangkan marker bawaan browser */

.profile-expand__trigger::-webkit-details-marker {
    display: none;
}

.profile-expand__trigger::marker {
    display: none;
    content: "";
}


/* ==========================================================
   GARIS AKSEN
   ========================================================== */

.profile-expand__trigger::before {
    content: "";

    display: block;
    flex: 0 0 36px;

    width: 36px;
    height: 1px;

    background-color: var(--theme-palette-color-1);

    transition:
        width 180ms ease,
        flex-basis 180ms ease,
        background-color 180ms ease;
}


/* ==========================================================
   TRIGGER TEXT
   ========================================================== */

.profile-expand__closed,
.profile-expand__opened {
    margin-right: auto;
}

.profile-expand__opened {
    display: none;
}

.profile-expand[open] .profile-expand__closed {
    display: none;
}

.profile-expand[open] .profile-expand__opened {
    display: inline;
}


/* ==========================================================
   PLUS / MINUS ICON
   ========================================================== */

.profile-expand__icon {
    position: relative;

    display: block;
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    box-sizing: border-box;

    border: 1px solid var(--theme-palette-color-5);

    color: var(--theme-palette-color-1);
}


/* Garis horizontal */

.profile-expand__icon::before,
.profile-expand__icon::after {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    width: 10px;
    height: 1px;

    background-color: currentColor;

    transform: translate(-50%, -50%);

    transition: transform 180ms ease;
}


/* Garis vertikal untuk ikon plus */

.profile-expand__icon::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}


/* Saat dibuka berubah menjadi minus */

.profile-expand[open] .profile-expand__icon::after {
    transform:
        translate(-50%, -50%)
        rotate(0deg);
}


/* ==========================================================
   EXPANDABLE CONTENT
   Tanpa padding kanan dan kiri.
   ========================================================== */

.profile-expand__content {
    width: 100%;
    padding: 8px 0 28px;

    box-sizing: border-box;

    color: var(--theme-palette-color-4);
}

.profile-expand__content p {
    width: 100%;
    max-width: none;

    margin: 0 0 20px;
    padding: 0;

    color: var(--theme-palette-color-4);
    line-height: 1.8;
}

.profile-expand__content p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   INTERACTION
   ========================================================== */

.profile-expand__trigger:hover {
    color: var(--theme-palette-color-2);
}

.profile-expand__trigger:hover::before {
    flex-basis: 44px;
    width: 44px;

    background-color: var(--theme-palette-color-2);
}

.profile-expand__trigger:focus-visible {
    outline: 2px solid var(--theme-palette-color-1);
    outline-offset: 5px;
}


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

@media (max-width: 689px) {
    .profile-expand {
        margin-top: 20px;
    }

    .profile-expand__trigger {
        gap: 12px;
        padding: 16px 0;

        font-size: 9px;
        letter-spacing: 0.09em;
    }

    .profile-expand__trigger::before {
        flex-basis: 24px;
        width: 24px;
    }

    .profile-expand__trigger:hover::before {
        flex-basis: 30px;
        width: 30px;
    }

    .profile-expand__icon {
        flex-basis: 32px;

        width: 32px;
        height: 32px;
    }

    .profile-expand__content {
        padding: 6px 0 24px;
    }

    .profile-expand__content p {
        margin-bottom: 18px;
        line-height: 1.75;
    }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    .profile-expand__trigger,
    .profile-expand__trigger::before,
    .profile-expand__icon::before,
    .profile-expand__icon::after {
        transition: none;
    }
}