@charset "utf-8";


/* ==========================================================
   Zwag Profile Detail Component
   ========================================================== */

.profile-page {
    padding: 0 0 clamp(28px, 5vw, 60px);
}


.profile-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}


/* ==========================================================
   Profile Card
   ========================================================== */

.profile-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);

    overflow: hidden;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}


/* ==========================================================
   Profile Details
   ========================================================== */

.profile-details {
    display: flex;
    min-width: 0;

    padding: clamp(30px, 5vw, 54px);

    flex-direction: column;
}


.profile-heading {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}


.profile-heading h1 {
    margin-top: 7px;

    font-size: clamp(2.35rem, 4vw, 3.9rem);
    line-height: 1.04;
}


.profile-heading h1 span {
    color: var(--color-muted);
    font-weight: 500;
}


/* ==========================================================
   User Information
   ========================================================== */

.profile-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    margin: 28px 0 0;
}


.profile-info__item {
    min-width: 0;

    padding: 14px 16px;

    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}


.profile-info__item--location {
    grid-column: 1 / -1;
}


.profile-info dt {
    margin: 0 0 4px;

    color: var(--color-muted);
    font-size: var(--font-size-sm);
    font-weight: 650;
}


.profile-info dd {
    margin: 0;

    color: var(--color-text);
    font-weight: 800;

    overflow-wrap: anywhere;
}


/* ==========================================================
   Like / Message Actions
   ========================================================== */

.profile-actions {
    flex: 0 0 auto;
	margin: 30px;
}


.profile-action-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}


.profile-action-bar form {
    margin: 0;
}

.profile-action {
    display: inline-flex;
	width: 110px;
	
    min-height: 44px;
    margin: 0;
    padding: 10px;

    align-items: center;
    justify-content: center;
    gap: 8px;

    font: inherit;
    font-size: var(--font-size-xs);
    font-weight: 500;

    border: 1px solid var(--color-border);
    border-radius: 999px;
    box-shadow: none;

    cursor: pointer;
}


.profile-action__icon {
    font-size: 1.1rem;
    line-height: 1;
}


.profile-action--like {
    color: #ffffff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}


.profile-action--like.is-like-back {
    background: var(--color-success);
    border-color: var(--color-success);
}


.profile-action--liked {
    color: var(--color-primary);
    background: var(--color-surface);
    border-color: var(--color-primary);
}


.profile-action--message {
    color: var(--color-text);
    background: var(--color-surface-soft);
}


.profile-action--matched {
    color: var(--color-success);
    background: var(--color-surface-soft);
    border-color: var(--color-success);
    opacity: 1;
    cursor: default;
}


/* ==========================================================
   About
   ========================================================== */

.profile-about {
    margin-top: 34px;
    padding-top: 30px;

    border-top: 1px solid var(--color-border);
}


.profile-about h2 {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}


.profile-about p {
    min-height: 150px;
    margin-top: 16px;
    padding: 20px;

    color: var(--color-text);
    line-height: 1.8;
    white-space: normal;
    overflow-wrap: anywhere;

    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}


.profile-about__empty {
    color: var(--color-muted) !important;
    font-style: italic;
}


/* ==========================================================
   Report Profile
   ========================================================== */

.profile-report {
    margin-top: 24px;
}


.profile-report__details,
.profile-report__form {
    padding: 20px 22px;

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}


.profile-report__details summary {
    width: fit-content;

    color: var(--color-muted);
    font-size: var(--font-size-sm);
    font-weight: 750;

    cursor: pointer;
}


.profile-report__body {
    display: grid;
    gap: 14px;

    margin-top: 16px;
}


.profile-report__body p {
    color: var(--color-muted);
    font-size: var(--font-size-sm);
}


.profile-report__heading {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 24px;
}


.profile-report__close {
    color: var(--color-muted);
    font-size: var(--font-size-sm);
    font-weight: 750;
}


/* ==========================================================
   Message Modal
   ========================================================== */

.profile-message-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;

    display: grid;
    padding: 20px;

    place-items: center;
	
}


.profile-message-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(20, 15, 18, 0.72);
    backdrop-filter: blur(3px);
}


.profile-message-modal__panel {
    position: relative;
    z-index: 1;

    width: min(560px, 100%);
    max-height: calc(100svh - 40px);
    overflow-y: auto;

    padding: clamp(24px, 5vw, 38px);

    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}


.profile-message-modal__close-form {
    position: absolute;
    top: 14px;
    right: 14px;

    margin: 0;
}

/*
.profile-message-modal__close {
    display: grid;
	
    width: 42px;
    height: 42px;
    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 0;

    place-items: center;

    color: var(--color-muted);
    font-size: 1.7rem;

    background: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    box-shadow: none;
}
*/

.profile-message-modal__header {
    padding-right: 52px;
}


.profile-message-modal__header > p:last-child {
    margin-top: 10px;
    color: var(--color-muted);
}


.profile-message-form {
    display: grid;
    gap: 22px;

    margin-top: 28px;
}


/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1200px) {

    .profile-card {
        grid-template-columns: 1fr;
    }


    .profile-heading {
        flex-direction: column;
    }


    .profile-action-bar {
        justify-content: flex-start;
    }
}


@media (max-width: 620px) {

    .profile-shell {
        width: min(calc(100% - 20px), 1180px);
    }


    .profile-details {
        padding: 24px 20px 30px;
    }


    .profile-info {
        grid-template-columns: 1fr;
    }


    .profile-info__item--location {
        grid-column: auto;
    }


    .profile-action-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        width: 100%;
    }


    .profile-action-bar form {
        width: 100%;
    }


    .profile-message-modal {
        padding: 10px;
    }


    .profile-message-modal__panel {
        max-height: calc(100svh - 20px);
    }
}


@media (max-width: 420px) {

    .profile-shell {
        width: 100%;
    }

	.profile-details {
		padding: 20px 8px;
	}
	
	.profile-about p {
		padding: 20px 8px;
	}
}
