/* public/css/site/post-detail.css */

.body-wrap {
  background: linear-gradient(180deg, transparent 300px, var(--color-background) 600px);
}

/* --- Cabeçalho da Página --- */
.section-title {
    padding-top: 80px;
}

/* --- Seção de Conteúdo do Post --- */
.post-detail-section .section-container {
    padding-top: 0;
    max-width: 1200px; 
}

.post-layout-container {
    display: grid;
    grid-template-columns: 1fr 320px; 
    gap: 50px;
    align-items: flex-start;
}

.post-image-container {
    margin-bottom: 40px;
}

.post-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--color-bright-transparency-1);
}

.post-detail-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 10px;
}

.post-detail-excerpt {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 40px;
}

.post-meta-data {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.post-meta-item {
    color: #999;
    font-size: 18px;
    line-height: 1;
    font-family: "Roboto Condensed", sans-serif;
}

.post-meta-item i {
    margin-right: 8px;
}

.post-category a {
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: bold;
}

.post-category a:hover {
    color: #ffffff;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #c0c0c0;
}

.post-body p {
    margin-bottom: 1.5em;
}

.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
    color: #fff;
    margin-top: 2em;
    margin-bottom: 1em;
}

/* --- Seção de Compartilhamento --- */
.post-share-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-bright-transparency-1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.post-share-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

.social-share-buttons {
    display: flex;
    gap: 15px;
}

.social-share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1;
    box-shadow: inset 0 0 0 1px var(--color-bright-transparency-1);
}

.social-share-buttons a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.social-share-buttons a i {
    margin-right: 8px;
}

.btn-facebook { background-color: #254079; }
.btn-whatsapp { background-color: #188841; }


/* --- Estilos da Sidebar e Widgets --- */
.widget {
    margin-bottom: 60px;
}

.widget-title {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    line-height: 1;
}

.widget-title::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--color-primary-gradient);
    border-radius: 2px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 30px;
}

.widget ul li:last-child {
    margin-bottom: 0;
}

.widget ul li a {
    color: #c0c0c0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.widget ul li a:hover {
    color: var(--color-primary);
}

/* --- Widget de Pesquisa --- */
.widget-search .search-form-container {
    display: flex;
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

.widget-search .search-field {
    flex-grow: 1;
    border: 1px solid var(--color-bright-transparency-2);
    border-right: none;
    background: rgba(0, 0, 0, 0.5);
    color: #c0c0c0;
    padding: 0 15px;
    height: 45px;
    border-radius: 8px 0 0 8px;
    outline: none;
    transition: all 0.3s ease;
}

.widget-search .search-field:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--color-primary);
}

.widget-search .search-button {
    border: none;
    background: var(--color-primary-gradient);
    color: white;
    padding: 0 18px;
    height: 45px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.widget-search .search-button:hover {
    background: #7c1c1a;
}


/* --- Widget de Posts Recentes --- */
.widget-post-thumb {
    display: block;
    position: relative;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    border-bottom: 3px solid var(--color-primary);
}

.widget-post-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.widget-post-item:hover .widget-post-thumb img {
    transform: scale(1.05);
}

/* MODIFICADO: Estilo do overlay de data foi removido */
.widget-post-date {
    display: none;
}

.widget-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    padding: 25px 20px 20px; /* MODIFICADO: Padding ajustado */
    border: 1px solid var(--color-bright-transparency-1);
    border-top: none;
    border-radius: 0 0 8px 8px;
    width: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    gap: 0; /* MODIFICADO: Gap removido para usar margin */
}

/* MODIFICADO: Estilos para o link do título principal */
.widget-post-item .widget-post-title > a {
    color: #fff;
    transition: color 0.3s ease;
}

.widget-post-item .widget-post-title > a:hover {
    color: var(--color-primary);
}


/* ADICIONADO: Novos estilos para os metadados do widget */
.widget-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 5px;
}

.widget-post-meta-item {
    font-family: "Roboto Condensed", sans-serif;
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1;
    color: #666;
}

.widget-post-meta-item i {
    color: #666;
    margin-right: 6px;
    font-size: 1em;
}

.widget-post-meta-item.widget-post-category a {
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.widget-post-meta-item.widget-post-category a i {
    color: var(--color-primary);
}

.widget-post-meta-item.widget-post-category a:hover {
    color: #ffffff;
}

.widget-list ul li {
    padding-bottom: 15px;
    margin-bottom: 15px; /* Sobrescreve a margem genérica de 30px */
    border-bottom: 1px solid var(--color-bright-transparency-1);
}

.widget-list ul li:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

/* --- Estilos para Botão de Copiar Link Adicionado --- */
.btn-copy-link {
    /* Padrões dos botões de compartilhamento */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: inset 0 0 0 1px var(--color-bright-transparency-1);
    transition: all 0.3s ease;
    font-family: inherit; /* Garante a mesma fonte dos outros elementos */
    border: none;
    cursor: pointer;

    /* Cor de fundo específica */
    background-color: #4a4a4a; 
}

.btn-copy-link:hover:not(:disabled) {
    transform: translateY(-2px);
    background-color: #5a5a5a;
}

/* Estilo do botão quando desabilitado (após clicar) */
.btn-copy-link:disabled {
    background-color: #188841; /* Usa a mesma cor do WhatsApp para indicar sucesso */
    cursor: not-allowed;
    opacity: 1;
}

.btn-copy-link i {
    margin-right: 8px;
}

/* ============================================ */
/* === RESPONSIVIDADE PARA DETALHE DE POST === */
/* ============================================ */

@media (max-width: 992px) {
    .post-layout-container {
        /* Transforma em 1 coluna: conteúdo principal e depois a sidebar */
        grid-template-columns: 1fr;
        gap: 80px; /* Aumenta o espaço entre o post e a sidebar */
    }
}

@media (max-width: 768px) {
    .section-title {
        padding-top: 40px; /* Reduz o espaçamento do título da página */
    }

    .post-detail-title {
        font-size: 2.2rem; /* Reduz o tamanho da fonte do título do post */
    }

    .post-detail-excerpt {
        font-size: 1.2rem; /* Reduz o tamanho da fonte do resumo */
        margin-bottom: 30px;
    }

    .post-share-section {
        flex-direction: column; /* Empilha o "Compartilhe" e os botões */
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .social-share-buttons {
        /* Faz os botões ocuparem a largura toda e se empilharem */
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .social-share-buttons a,
    .social-share-buttons button {
        width: 100%;
        text-align: center;
    }
}