﻿.perfil-publico-page {
    min-height: 100vh;
    background: #f5f6fb;
    padding: 18px 14px 46px;
}

.perfil-hero {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    border-radius: 28px;
    background: linear-gradient(135deg, #26292b, #2e3239);
    color: #fff;
    padding: 30px 18px 24px;
    text-align: center;
    box-shadow: 0 18px 36px rgba(38, 41, 43, .22);
}

.perfil-favorito-form {
    position: absolute;
    top: 16px;
    right: 16px;
}

.perfil-favorito-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .perfil-favorito-btn .bi-heart-fill {
        color: #ff5f7a;
    }

.perfil-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    background: #5f7adb;
    border: 4px solid rgba(255,255,255,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.4rem;
}

    .perfil-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.perfil-hero h1 {
    font-size: 1.65rem;
    font-weight: 900;
    margin: 0 0 6px;
}

.perfil-localizacao {
    margin: 0 0 12px;
    color: #d7ddff;
    font-size: .88rem;
    font-weight: 700;
}

.perfil-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    margin: 14px 0 18px;
}

    .perfil-categorias span {
        border-radius: 999px;
        background: rgba(162, 178, 238, .18);
        color: #ffffff;
        border: 1px solid rgba(162, 178, 238, .35);
        padding: 5px 10px;
        font-size: .75rem;
        font-weight: 800;
    }

.perfil-stats {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: #5f7adb;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 12px 8px;
}

    .perfil-stats strong {
        display: block;
        font-size: 1.45rem;
        font-weight: 900;
        line-height: 1;
    }

    .perfil-stats span {
        display: block;
        margin-top: 4px;
        font-size: .68rem;
        font-weight: 800;
        color: #eef2ff;
    }

.perfil-chat-btn {
    height: 42px;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    border-radius: 999px;
    background: #ffffff;
    color: #5f7adb;
    text-decoration: none;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .perfil-chat-btn:hover {
        color: #5f7adb;
        background: #eef2ff;
    }

.perfil-content {
    width: 100%;
    max-width: 760px;
    margin: 18px auto 0;
    display: grid;
    gap: 16px;
}

.perfil-card {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e6ff;
    padding: 18px;
    box-shadow: 0 10px 26px rgba(38, 41, 43, .07);
}

.perfil-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

    .perfil-card-title i {
        width: 36px;
        height: 36px;
        border-radius: 14px;
        background: #eef2ff;
        color: #5f7adb;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
    }

    .perfil-card-title h2 {
        font-size: 1rem;
        font-weight: 900;
        color: #26292b;
        margin: 0;
    }

.perfil-bio {
    margin: 0;
    color: #4b5563;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.45rem;
}

.perfil-video-box {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #26292b;
}

    .perfil-video-box video {
        width: 100%;
        max-height: 420px;
        display: block;
        background: #26292b;
    }

.perfil-fotos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

    .perfil-fotos-grid figure {
        margin: 0;
        border-radius: 18px;
        background: #f7f8ff;
        overflow: hidden;
        border: 1px solid #e2e6ff;
    }

    .perfil-fotos-grid img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        display: block;
    }

    .perfil-fotos-grid figcaption {
        padding: 8px 10px;
        font-size: .78rem;
        font-weight: 800;
        color: #26292b;
    }

.perfil-servicos-list {
    display: grid;
    gap: 10px;
}

.perfil-servico-item {
    min-height: 76px;
    border-radius: 18px;
    background: #f7f8ff;
    border: 1px solid #e2e6ff;
    padding: 12px;
    color: #26292b;
    text-decoration: none;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    transition: .2s ease;
}

    .perfil-servico-item:hover {
        border-color: #5f7adb;
        transform: translateY(-2px);
        color: #26292b;
        box-shadow: 0 10px 24px rgba(95, 122, 219, .14);
    }

    .perfil-servico-item strong {
        display: block;
        font-size: .95rem;
        font-weight: 900;
        margin-bottom: 4px;
    }

    .perfil-servico-item span {
        display: -webkit-box;
        color: #6b7280;
        font-size: .78rem;
        font-weight: 600;
        line-height: 1.05rem;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.perfil-servico-preco {
    color: #5f7adb;
    font-size: .85rem;
    font-weight: 900;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perfil-empty {
    min-height: 88px;
    border-radius: 18px;
    border: 1px dashed #a2b2ee;
    background: #f7f8ff;
    color: #6b7280;
    font-size: .86rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
}

@media (max-width: 576px) {
    .perfil-publico-page {
        padding: 12px 10px 36px;
    }

    .perfil-hero {
        border-radius: 24px;
        padding-top: 28px;
    }

    .perfil-avatar {
        width: 98px;
        height: 98px;
    }

    .perfil-hero h1 {
        font-size: 1.42rem;
    }

    .perfil-stats strong {
        font-size: 1.25rem;
    }

    .perfil-card {
        border-radius: 20px;
        padding: 15px;
    }

    .perfil-servico-item {
        grid-template-columns: 1fr;
    }

    .perfil-servico-preco {
        justify-content: space-between;
    }
}

.perfil-ver-todas-fotos {
    width: 100%;
    max-width: 220px;
    height: 40px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: #5f7adb;
    color: #fff;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .perfil-ver-todas-fotos:hover {
        background: #536bc8;
        color: #fff;
    }

.perfil-visita-card {
    padding: 0;
    overflow: hidden;
}

.perfil-visita-btn {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 22px;
    cursor: pointer;
}

    .perfil-visita-btn p {
        margin: 14px 0 0;
        color: #1f2937;
        line-height: 1.5;
    }

    .perfil-visita-btn span {
        display: inline-flex;
        margin-top: 12px;
        color: #5f7adb;
        font-weight: 800;
    }

.perfil-visita-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(6px);
}

    .perfil-visita-modal.show {
        display: flex;
    }

.perfil-visita-modal-box {
    width: min(100%, 430px);
    background: #fff;
    border-radius: 26px;
    padding: 26px;
    position: relative;
    box-shadow: 0 25px 70px rgba(15, 23, 42, .25);
}

.perfil-visita-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    font-size: 22px;
}

.perfil-visita-modal-box > i {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #eef2ff;
    color: #5f7adb;
    font-size: 24px;
    margin-bottom: 14px;
}

.perfil-visita-modal-box h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 900;
    color: #111827;
}

.perfil-visita-modal-box strong {
    display: inline-flex;
    margin-bottom: 12px;
    font-size: 20px;
    color: #5f7adb;
}

.perfil-visita-modal-box p {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 20px;
}

.perfil-visita-modal-box button:not(.perfil-visita-close) {
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 13px 16px;
    background: #5f7adb;
    color: #fff;
    font-weight: 800;
}

.perfil-social-card {
    text-align: center;
}

.perfil-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

    .perfil-social-links a {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        background: #2e3239;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 1.25rem;
        transition: .2s ease;
    }

        .perfil-social-links a:hover {
            background: #5f7adb;
            transform: translateY(-2px);
        }