/* ==========================================================
   VAHU PROFILE
   ========================================================== */

.vp-profile {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 2rem;
}


/* ==========================================================
   HERO CARD
   ========================================================== */
.vp-profile-hero {
    display: flex;
    align-items: center;

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

    width: 100%;
    min-height: 170px;


    gap: 2rem;

    padding: 2rem 2.5rem;

    border-radius: var(--vahu-radius-xl);
    background: var(--vahu-gradient);

    box-shadow: var(--vahu-shadow-lg);
}

/* ==========================================================
   AVATAR
   ========================================================== */

.vp-profile-avatar {
    flex-shrink: 0;

    width: 88px;
    height: 88px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;

    border: 3px solid rgba(255, 255, 255, .65);

    font-size: 2rem;
    font-weight: 700;

    color: var(--vahu-text);

    box-shadow: var(--vahu-shadow-sm);
}


/* ==========================================================
   HEADER
   ========================================================== */

.vp-profile-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vp-profile-header h2 {
    margin: 0;

    font-size: 1.9rem;
    font-weight: 700;

    color: var(--vahu-text);
}

.vp-profile-header p {
    margin: 0;

    max-width: 700px;

    line-height: 1.6;

    color: var(--vahu-text-light);
}

/*személyes adatok kártya*/

.vp-profile-card {
    margin-top: 2rem;

    background: #fff;
    border-radius: var(--vahu-radius-xl);
    box-shadow: var(--vahu-shadow-lg);

    padding: 2.5rem;

    width: 100%;
}

/* ==========================================================
   SZEMÉLYES ADATOK KÁRTYA
   ========================================================== */

.vp-profile-card {
    width: 100%;
    padding: 2.5rem;

    background: var(--vahu-surface-light);
    border: 1px solid var(--vahu-border-light);
    border-radius: var(--vahu-radius-xl, 24px);

    box-shadow: var(--vahu-shadow-lg, var(--vahu-shadow));
}


/* ==========================================================
   FEJLÉC
   ========================================================== */

.vp-profile-card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vp-profile-card-heading h3 {
    margin: 0;

    color: var(--vahu-text);
    font-size: 1.5rem;
    font-weight: 700;
}

.vp-profile-card-icon {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    background: var(--vahu-mint-hover);
    border-radius: 50%;

    color: var(--vahu-text);
    font-size: 1.4rem;
}


/* ==========================================================
   TARTALOM
   ========================================================== */

.vp-profile-card-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) auto minmax(260px, 1fr);
    gap: 32px;
    align-items: stretch;
}

.vp-profile-data-list {
    display: flex;
    flex-direction: column;
    gap: 22px;

    margin: 0;
}

.vp-profile-data-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.vp-profile-data-row dt {
    margin: 0;

    color: var(--vahu-text);
    font-weight: 600;
}

.vp-profile-data-row dd {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 0;

    color: var(--vahu-text);
}

.vp-profile-readonly-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 10px;

    background: var(--vahu-border-light);
    border-radius: var(--vahu-radius-pill, 999px);

    color: var(--vahu-text-light);
    font-size: .8rem;
    line-height: 1;
}


/* ==========================================================
   PROFILKÉP PANEL
   ========================================================== */

.vp-profile-picture-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    gap: 10px;
}

.vp-profile-picture-placeholder {
    display: grid;
    place-items: center;


    width: 130px;
    height: 130px;

    background:
        linear-gradient(135deg,
            var(--vahu-peach-light),
            var(--vahu-surface-light));

    border-radius: 50%;

    color: var(--vahu-text);
    font-size: 2rem;
    font-weight: 700;
}

.vp-profile-picture-panel button {
    min-width: 150px;
}

.vp-profile-coming-soon {
    color: var(--vahu-text-light);
    font-size: .9rem;
}


/* ==========================================================
   MŰVELETEK
   ========================================================== */

.vp-profile-card-actions {
    display: flex;
    align-items: center;

    margin-top: 30px;
}

#vp-profile-edit {
    min-width: 210px;
}

.vp-profile-card-actions .vahu-btn {
    min-width: 160px;
}

/* ==========================================================
   PROFIL SZERKESZTÉSI MÓD
   ========================================================== */

.vp-profile-data-row dd {
    min-height: 40px;
}

.vp-profile-value,
.vp-profile-input {
    width: 280px;
    max-width: 100%;
    box-sizing: border-box;
}

.vp-profile-value {
    display: flex;
    align-items: center;
    min-height: 38px;
}

.vp-profile-input {
    display: none;
    height: 38px;
    padding: 0 12px;

    border: 1px solid transparent;
    border-radius: var(--vahu-radius);

    background: transparent;
    color: var(--vahu-text);

    font: inherit;
    line-height: 38px;

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.vp-profile-input:focus {
    outline: none;
    border-color: var(--vahu-mint);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(168, 230, 207, .28);
}

#vp-profile-save,
#vp-profile-cancel {
    display: none;
}

.vp-profile.is-editing .vp-profile-value {
    display: none;
}

.vp-profile.is-editing .vp-profile-input {
    display: block;
    border-color: var(--vahu-border);
    background: #ffffff;
}

.vp-profile.is-editing #vp-profile-edit {
    display: none;
}

.vp-profile.is-editing #vp-profile-save,
.vp-profile.is-editing #vp-profile-cancel {
    display: inline-flex;
}

.vp-profile-card-actions {
    gap: 12px;
    flex-wrap: wrap;
}



/* ==========================================================
   RESZPONZÍV
   ========================================================== */

@media (max-width: 900px) {

    .vp-profile-card-content {
        grid-template-columns: 1fr;
    }

    .vp-profile-picture-panel {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {

    .vp-profile-card {
        padding: 1.5rem;
    }

    .vp-profile-data-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .vp-profile-card-actions,
    #vp-profile-edit {
        width: 100%;
    }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 768px) {

    .vp-profile {
        padding: 1rem;
    }

    .vp-profile-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .vp-profile-avatar {
        width: 72px;
        height: 72px;

        font-size: 1.6rem;
    }

    .vp-profile-header h2 {
        font-size: 1.5rem;
    }

}