﻿/* ═══════════════════════════════════════
   Módulo: Perfil Publico Espectador
   ═══════════════════════════════════════ */

.pub-page-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9fafb;
    min-height: 100vh;
    padding-bottom: 64px;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ── Alerta Topo (Preview) ── */
.pub-preview-alert {
    width: calc(100% - 52px);
    max-width: 730px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 24px;
    display: flex;
    justify-content: center;
    margin-top: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pub-alert-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pub-alert-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
    font-weight: 500;
}

.pub-alert-link {
    font-size: 13px;
    color: #0ea5e9;
    font-weight: 600;
    text-decoration: none;
}

/* ── Estilos de Placeholders ── */
.placeholder-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
}

.placeholder-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .placeholder-box i {
        font-size: 48px;
        color: rgba(255, 255, 255, 0.4);
    }

.placeholder-video-icon {
    font-size: 64px !important;
    color: rgba(255, 255, 255, 0.2) !important;
}

/* ── Container Principal ── */
.pub-container {
    width: 100%;
    max-width: 800px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ── Componentes Básicos ── */
.pub-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.pub-section-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pub-section h2 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
}

.pub-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .pub-section-header h2 {
        margin: 0;
    }

    /* Links do cabeçalho "Ver mais" (Alterado para Preto) */
    .pub-section-header a {
        font-size: 13px;
        color: #111827;
        font-weight: 600;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 4px;
    }

.text-blue {
    color: #0ea5e9;
}

.cursor-pointer {
    cursor: pointer;
}

.bg-dark {
    background-color: #111827 !important;
    color: #ffffff !important;
}

/* Botões */
.pub-btn-primary {
    background: #0ea5e9;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pub-btn-outline {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pub-btn-outline-small {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    width: max-content;
}

/* ── Header do Perfil ── */
.pub-cover-image {
    height: 180px;
    width: 100%;
}

.pub-header-info {
    padding: 0 24px 24px;
    position: relative;
}

.pub-avatar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -50px;
    margin-bottom: 16px;
}

.pub-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #ffffff;
}

.pub-header-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.pub-name {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pub-id {
    font-size: 12px;
    color: #6b7280;
    display: block;
    margin-bottom: 12px;
}

.pub-job {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.pub-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 24px;
}

    .pub-meta span {
        display: flex;
        align-items: center;
        gap: 6px;
    }

.pub-stats-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.pub-stat {
    display: flex;
    flex-direction: column;
}

    .pub-stat strong {
        font-size: 16px;
        color: #111827;
    }

    .pub-stat span {
        font-size: 12px;
        color: #6b7280;
    }

.pub-mutual-connections {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
}

.pub-mutual-avatars {
    display: flex;
}

.pub-m-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;
}

    .pub-m-avatar:first-child {
        margin-left: 0;
    }

/* ── Carrosséis (Produtos e Serviços) ── */
.pub-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}

    .pub-carousel::-webkit-scrollbar {
        height: 6px;
    }

    .pub-carousel::-webkit-scrollbar-thumb {
        background-color: #d1d5db;
        border-radius: 10px;
    }

.pub-product-card {
    min-width: 245px;
    width: 220px;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.pub-product-img {
    height: 180px;
}

.pub-heart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: #6b7280;
}

.pub-product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pub-product-seller {
    font-size: 11px;
    color: #6b7280;
}

.pub-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.4;
}

.pub-product-price {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-top: 4px;
}

.pub-service-card {
    min-width: 245px;
    width: 260px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pub-service-img {
    width: 100%;
    height: 120px;
}

.pub-service-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.pub-service-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.pub-service-desc {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.pub-service-price {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

/* ── Vídeo ── */
.pub-video-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
}

.pub-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: #111827;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pub-video-overlay-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px 24px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* ── Listas Simples (Sobre, Igreja, Empresas) ── */
.pub-about-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.pub-list-card, .pub-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.pub-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pub-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pub-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.pub-list-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.pub-list-info p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* Links das Listas (Alterado para Preto) */
.pub-link {
    font-size: 13px;
    color: #111827;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pub-divider {
    border: 0;
    border-top: 1px solid #f3f4f6;
    margin: 0;
}

/* ── Timeline de Experiência (AJUSTADO CONFORME REFERÊNCIA) ── */
.pub-timeline-card {
    padding: 24px;
}

.pub-timeline-container {
    display: flex;
    flex-direction: column;
}

.pub-timeline-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pub-timeline-company {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.pub-timeline-period {
    font-size: 12px;
    color: #6b7280;
    display: block; 
    text-align: left;
    margin: 0;
}

/* Novo visual idêntico à aba de carreira */
.pub-timeline-jobs {
    margin-top: 16px;
    margin-left: 16px;
    padding-left: 24px;
    position: relative;
}

.pub-timeline-item {
    position: relative;
    padding-bottom: 24px;
}

    .pub-timeline-item:last-child {
        padding-bottom: 0;
    }

    /* A linha vertical mágica */
    .pub-timeline-item::before {
        content: '';
        position: absolute;
        top: 18px; /* Começa logo abaixo do centro da bolinha */
        bottom: -6px; /* Desce até o centro da próxima */
        left: -24px; /* Trava no eixo X das bolinhas */
        width: 2px;
        background-color: #e5e7eb;
        z-index: 1;
    }

    .pub-timeline-item:last-child::before {
        display: none; /* Último item não tem linha vazando! */
    }

/* A bolinha sobreposta à linha */
.pub-timeline-dot {
    position: absolute;
    left: -29px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cbd5e1; /* Preenchimento da bolinha */
    border: 2px solid #ffffff; /* Borda branca igual a referência */
    z-index: 2;
}

.pub-job-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.pub-job-period {
    font-size: 12px;
    color: #6b7280;
    display: block;
    margin-bottom: 8px;
}

.pub-job-desc {
    font-size: 13px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* ═══════════════════════════════════════
   MÓDULO TEMPORÁRIO: BOTÃO DE DEBUG
   ═══════════════════════════════════════ */
.debug-toggle-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #fef2f2;
    border: 2px dashed #ef4444;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.debug-label {
    font-size: 11px;
    font-weight: 700;
    color: #b91c1c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.debug-btn {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    line-height: 1.4;
}

    .debug-btn strong {
        font-weight: 700;
    }

    .debug-btn small {
        font-size: 11px;
        font-weight: 400;
        opacity: 0.9;
    }

    .debug-btn:hover {
        background-color: #dc2626;
    }


/* ── Responsivo Geral ── */
@media (max-width: 600px) {
    .pub-alert-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .pub-preview-alert {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .pub-avatar-row {
        flex-direction: column;
        align-items: flex-start;        
    }

    .pub-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .pub-stats-row {
        justify-content: space-between;
    }

    .pub-video-container {
        height: 250px;
    }

    .pub-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
