/*
Arquivo: style-single.css
Estilos da página single.php
*/

/* =========================
   ESTRUTURA GERAL
========================= */

.single-profile-page {
    background:
        radial-gradient(
            circle at top right,
            rgba(225, 29, 72, 0.08),
            transparent 430px
        ),
        var(--bg);
}

.single-breadcrumb-section {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(17, 17, 22, 0.75);
}

.single-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: #85858f;
    font-size: 13px;
}

.single-breadcrumb a {
    color: #ff6a8b;
    font-weight: 700;
    transition: color 0.25s;
}

.single-breadcrumb a:hover {
    color: #fff;
}

.single-profile-section {
    padding: 45px 0 75px;
}

.single-profile-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.single-profile-top {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
}

/* =========================
   GALERIA
========================= */

.single-profile-gallery {
    min-width: 0;
    padding: 22px;
    border-right: 1px solid var(--border);
    background: #0d0d11;
}

.profile-gallery-main {
    position: relative;
    min-height: 630px;
    overflow: hidden;
    border-radius: 18px;
    background: #060608;
}

.profile-main-image-button {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.profile-main-image-button img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #060608;
    transition: opacity 0.2s;
}

.profile-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: 0.25s;
}

.profile-gallery-arrow:hover {
    border-color: var(--accent);
    background: var(--accent);
    transform: translateY(-50%) scale(1.06);
}

.profile-gallery-prev {
    left: 18px;
}

.profile-gallery-next {
    right: 18px;
}

.profile-gallery-counter {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 10;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.profile-gallery-thumbnails {
    margin-top: 14px;
    padding: 2px 0 6px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) #16161c;
}

.profile-gallery-thumbnails::-webkit-scrollbar {
    height: 7px;
}

.profile-gallery-thumbnails::-webkit-scrollbar-track {
    background: #16161c;
    border-radius: 10px;
}

.profile-gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.profile-gallery-thumbnail {
    width: 82px;
    height: 100px;
    padding: 0;
    flex: 0 0 auto;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 11px;
    background: #111;
    opacity: 0.58;
    cursor: pointer;
    transition: 0.25s;
}

.profile-gallery-thumbnail:hover,
.profile-gallery-thumbnail.active {
    border-color: var(--accent);
    opacity: 1;
    transform: translateY(-2px);
}

.profile-gallery-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.single-profile-no-image {
    min-height: 580px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--border);
    border-radius: 18px;
    background:
        linear-gradient(145deg, #18181e, #0b0b0f);
    color: #74747e;
    font-weight: 700;
}

/* =========================
   INFORMAÇÕES
========================= */

.single-profile-info {
    padding: 42px 36px;
}

.single-profile-label {
    width: fit-content;
    margin-bottom: 17px;
    padding: 7px 12px;
    display: inline-block;
    border-radius: 30px;
    background: rgba(225, 29, 72, 0.13);
    color: #ff6a8b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.single-profile-title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(34px, 5vw, 55px);
    line-height: 1.05;
    letter-spacing: -1.8px;
}

.single-profile-summary {
    margin-bottom: 28px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.75;
}

.single-profile-summary p {
    margin: 0;
}

.single-profile-details {
    margin: 28px 0;
    padding: 20px 0;
    display: grid;
    gap: 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.detail-label {
    color: #7e7e88;
    font-size: 13px;
}

.single-profile-detail strong {
    color: #fff;
    font-size: 14px;
    text-align: right;
}

.single-profile-actions {
    display: grid;
    gap: 11px;
}

.single-profile-button,
.single-profile-secondary-button {
    width: 100%;
    min-height: 52px;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    transition: 0.25s;
}

.single-profile-button {
    border: 0;
    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-dark)
        );
    color: #fff;
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.22);
}

.single-profile-button:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(
            135deg,
            var(--accent-hover),
            var(--accent)
        );
}

.single-profile-whatsapp {
    background:
        linear-gradient(
            135deg,
            #16a34a,
            #15803d
        );
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.2);
}

.single-profile-whatsapp:hover {
    background:
        linear-gradient(
            135deg,
            #22c55e,
            #16a34a
        );
}

.single-profile-phone {
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );
}

.single-profile-secondary-button {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
}

.single-profile-secondary-button:hover {
    border-color: var(--accent);
    background: rgba(225, 29, 72, 0.1);
}

/* =========================
   CONTEÚDO DO POST
========================= */

.single-profile-content {
    padding: 42px;
    border-top: 1px solid var(--border);
}

.single-profile-content .entry-content {
    max-width: 980px;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.9;
}

.single-profile-content .entry-content h2,
.single-profile-content .entry-content h3,
.single-profile-content .entry-content h4 {
    margin: 35px 0 15px;
    color: #fff;
    line-height: 1.3;
}

.single-profile-content .entry-content h2 {
    font-size: 30px;
}

.single-profile-content .entry-content h3 {
    font-size: 24px;
}

.single-profile-content .entry-content p {
    margin: 0 0 18px;
}

.single-profile-content .entry-content ul,
.single-profile-content .entry-content ol {
    margin: 20px 0 20px 24px;
}

.single-profile-content .entry-content li {
    margin-bottom: 9px;
}

.single-profile-content .entry-content strong {
    color: #fff;
}

.single-profile-content .entry-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: #111116;
    color: #d0d0d8;
}

.single-profile-content .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.single-profile-content .entry-content a {
    color: #ff6a8b;
    text-decoration: underline;
}

.single-profile-tags {
    margin-top: 35px;
    padding-top: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    border-top: 1px solid var(--border);
}

.single-profile-tags strong {
    margin-right: 4px;
    color: #fff;
}

.single-profile-tags a {
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-soft);
    font-size: 12px;
    transition: 0.25s;
}

.single-profile-tags a:hover {
    border-color: var(--accent);
    background: rgba(225, 29, 72, 0.08);
    color: #fff;
}

/* =========================
   RELACIONADOS
========================= */

.single-related-section {
    padding: 0 0 90px;
}

/* =========================
   LIGHTBOX
========================= */

.profile-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.profile-lightbox.active {
    display: flex;
}

.profile-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.profile-lightbox-content {
    position: relative;
    z-index: 2;
    width: min(96vw, 1400px);
    height: min(92vh, 950px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
}

.profile-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 5;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(20, 20, 24, 0.9);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: 0.25s;
}

.profile-lightbox-close:hover {
    border-color: var(--accent);
    background: var(--accent);
}

.profile-lightbox-arrow {
    position: fixed;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(20, 20, 24, 0.88);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    transition: 0.25s;
}

.profile-lightbox-arrow:hover {
    border-color: var(--accent);
    background: var(--accent);
}

.profile-lightbox-prev {
    left: 25px;
}

.profile-lightbox-next {
    right: 25px;
}

body.profile-lightbox-open {
    overflow: hidden !important;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 1000px) {
    .single-profile-top {
        grid-template-columns: 1fr;
    }

    .single-profile-gallery {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .profile-gallery-main {
        min-height: 680px;
    }

    .single-profile-info {
        padding: 36px 32px;
    }
}

@media (max-width: 700px) {
    .single-profile-section {
        padding: 25px 0 55px;
    }

    .single-profile-card {
        border-radius: 18px;
    }

    .single-profile-gallery {
        padding: 10px;
    }

    .profile-gallery-main {
        min-height: 520px;
        border-radius: 13px;
    }

    .profile-gallery-arrow {
        width: 42px;
        height: 42px;
        font-size: 29px;
    }

    .profile-gallery-prev {
        left: 10px;
    }

    .profile-gallery-next {
        right: 10px;
    }

    .profile-gallery-counter {
        right: 10px;
        bottom: 10px;
    }

    .profile-gallery-thumbnail {
        width: 68px;
        height: 84px;
    }

    .single-profile-info {
        padding: 28px 22px;
    }

    .single-profile-title {
        font-size: 36px;
    }

    .single-profile-content {
        padding: 28px 22px;
    }

    .single-profile-content .entry-content h2 {
        font-size: 26px;
    }

    .single-profile-detail {
        align-items: flex-start;
    }

    .profile-lightbox {
        padding: 10px;
    }

    .profile-lightbox-arrow {
        width: 43px;
        height: 43px;
        font-size: 30px;
    }

    .profile-lightbox-prev {
        left: 10px;
    }

    .profile-lightbox-next {
        right: 10px;
    }

    .profile-lightbox-close {
        top: 10px;
        right: 10px;
        width: 43px;
        height: 43px;
    }
}

@media (max-width: 480px) {
    .profile-gallery-main {
        min-height: 440px;
    }

    .single-profile-title {
        font-size: 32px;
    }

    .single-profile-info,
    .single-profile-content {
        padding-left: 18px;
        padding-right: 18px;
    }
    
   
}


.profile-gallery-thumbnails {
    position: relative;
    z-index: 50;
    pointer-events: auto;
}

.profile-gallery-thumbnail {
    position: relative;
    z-index: 51;
    pointer-events: auto;
    cursor: pointer;
}

.profile-gallery-thumbnail img {
    pointer-events: none;
}

.profile-gallery-arrow {
    z-index: 30;
    pointer-events: auto;
}

.profile-main-image-button {
    z-index: 1;
}

