﻿p {
    margin: 0px;
}

.main-container {
    display: flex;
    justify-self: center;
    flex-direction: column;
    width: 100%;
    max-width: 522px;
    margin: 0 auto;
    padding: 20px;
    gap: 24px;
    box-sizing: border-box;
}

.profile-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.profile-info-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.user-avatar {
    width: 88px;
    max-width: 88px;
    height: 88px;
    max-height: 88px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-family: var(--font3);
    font-weight: 600;
    font-size: 20px;
    line-height: 150%;
    text-align: center;
    color: var(--text-gray-dark-color);
}

.user-email-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.button-edit-profile {
    box-sizing: border-box;
    border-radius: 12px;
    padding: 8px;
    width: 40px;
    height: 40px;
    background: transparent;
}

    .button-edit-profile > svg {
        stroke: var(--gray-600);
    }

    .button-edit-profile:hover {
        background: #f6f6f7;
    }

        .button-edit-profile:hover > svg {
            stroke: var(--blue-700);
        }

.user-email {
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    text-align: center;
    color: var(--text-gray-dark-color);
}

.profile-stats-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.stats-item {
    position: relative;
    box-sizing: border-box;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 80px;
    overflow: hidden;
}

    .stats-item > img {
        position: absolute;
        align-self: flex-end;
        justify-self: start;
    }

.stats-title {
    margin: 16px 16px 0px 16px;
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 16px;
    color: #fff;
}

.stats-value {
    margin: 0px 16px 16px 16px;
    font-family: var(--font3);
    font-weight: 600;
    font-size: 24px;
    color: #fff;
}

.pass-stat-items {
    background-color: var(--blue-color);
}

.created-stat-items {
    background-color: var(--yellow-color);
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.p-button {
    box-sizing: border-box;
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    cursor: pointer;
}

.button-title {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 156%;
    color: #fff;
}

.button-subtitle {
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 13px;
    line-height: 143%;
    color: #fff;
}

.testoria-plus-button {
    background-color: var(--green-color);
    min-height: 72px;
}

    .testoria-plus-button > #crown {
        display: none;
    }

.settings-button {
    background-color: var(--blue-color);
    min-height: 64px;
}

.feedback-button {
    background-color: var(--red-color);
    min-height: 64px;
}

/* ---------- Tablet adjustments ---------- */
@media (min-width: 768px) {
    .main-container {
        padding: 24px;
        gap: 28px;
    }

    .profile-container {
        gap: 28px;
    }

    .user-avatar {
        width: 96px;
        height: 96px;
    }

    .user-name {
        font-size: 22px;
    }

    .user-email {
        font-size: 15px;
    }

    .profile-stats-container {
        gap: 16px;
    }

    .stats-item {
        border-radius: 14px;
        padding: 18px;
        min-height: 88px;
        justify-content: space-between;
    }

    .stats-title {
        font-size: 17px;
    }

    .stats-value {
        font-size: 28px;
    }

    .p-button {
        padding: 14px 18px;
    }

    .button-title {
        font-size: 17px;
    }

    .button-subtitle {
        font-size: 14px;
    }

    .testoria-plus-button > #crown {
        display: block;
    }
}

@media (min-width: 1024px) {

    .main-container {
        width: 522px;
        max-width: 522px;
        padding: 0;
        gap: 40px;
    }

    .profile-container {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }

    .profile-info-container {
        gap: 16px;
    }

    .user-avatar {
        width: 100px;
        height: 100px;
    }

    .user-name {
        font-size: 24px;
    }

    .user-email {
        font-size: 16px;
    }

    .profile-stats-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .stats-item {
        border-radius: 16px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0;
        min-height: 120px;
        justify-content: space-between;
    }

    .stats-title {
        margin-top: 20px;
        margin-left: 20px;
        font-size: 18px;
        color: #fff;
    }

    .stats-value {
        margin-bottom: 20px;
        margin-left: 20px;
        font-size: 32px;
        color: #fff;
    }

    .buttons-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .p-button {
        border-radius: 16px;
        gap: 16px;
        padding: 0px 16px;
    }

    .testoria-plus-button {
        min-height: 96px;
    }

    .settings-button,
    .feedback-button {
        min-height: 64px;
    }
}
