/**
 * CSS específico para páginas de post individual (single.php)
 * Blog Caminhoneiro Theme
 * 
 * Classes específicas para evitar conflitos com o CSS principal
 */

/* ========================================
   ARTIGO PRINCIPAL - SINGLE POST
======================================== */

.single-post {
    background: var(--branco);
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    /*margin-bottom: 3rem;*/
}

/* Imagem destacada do post */
.single-post .post-featured-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.single-post .post-featured-image .post-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-post .post-featured-image:hover .post-image {
    transform: scale(1.02);
}

/* ========================================
   CABEÇALHO DO POST
======================================== */

.single-post .post-header {
    padding: 2.5rem 2.5rem 1.5rem 2.5rem;
    border-bottom: 1px solid var(--cinza-claro);
}

.single-post .post-header .post-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--azul-escuro);
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

/* post-meta styles moved to main style.css for better organization and responsiveness */

.single-post .post-header .post-date,
.single-post .post-header .post-categories {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post .post-header .post-categories a {
    color: var(--laranja);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-post .post-header .post-categories a:hover {
    color: var(--laranja-hover);
}

/* ========================================
   CONTEÚDO DO POST
======================================== */

.single-post .post-content {
    padding: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--preto);
}

.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--azul-escuro);
}

.single-post .post-content h2 {
    font-size: 2.2rem;
    border-bottom: 3px solid var(--laranja);
    padding-bottom: 0.5rem;
}

.single-post .post-content h3 {
    font-size: 1.8rem;
    color: var(--azul-medio);
}

.single-post .post-content h4 {
    font-size: 1.5rem;
}

.single-post .post-content p {
    margin-bottom: 1.5rem;
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.single-post .post-content blockquote {
    background: var(--cinza-claro);
    border-left: 4px solid var(--laranja);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.single-post .post-content ul,
.single-post .post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post .post-content li {
    margin-bottom: 0.8rem;
}

/* Links de páginas */
.single-post .page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cinza-claro);
    text-align: center;
}

.single-post .page-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: var(--azul-medio);
    color: var(--branco);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.single-post .page-links a:hover {
    background: var(--azul-escuro);
}

/* ========================================
   RODAPÉ DO POST
======================================== */

.single-post .post-footer {
    padding: 2rem 2.5rem 2.5rem 2.5rem;
    background: var(--cinza-claro);
    border-top: 1px solid #e0e0e0;
}

/* Tags do post */
.single-post .post-footer .post-tags {
    margin-bottom: 2rem;
}

.single-post .post-footer .post-tags h3 {
    font-size: 1.2rem;
    color: var(--azul-escuro);
    margin-bottom: 1rem;
    font-weight: 600;
}

.single-post .post-footer .post-tags a {
    display: inline-block;
    background: var(--branco);
    color: var(--azul-medio);
    padding: 0.4rem 0.8rem;
    margin: 0.2rem 0.3rem 0.2rem 0;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--azul-medio);
    transition: all 0.3s ease;
}

.single-post .post-footer .post-tags a:hover {
    background: var(--azul-medio);
    color: var(--branco);
}

/* Compartilhamento */
.single-post .post-footer .post-share {
    margin-top: 2rem;
}

.single-post .post-footer .post-share h3 {
    font-size: 1.2rem;
    color: var(--azul-escuro);
    margin-bottom: 1rem;
    font-weight: 600;
}

.single-post .post-footer .share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.single-post .post-footer .share-button {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.single-post .post-footer .share-button.facebook {
    background: #1877f2;
    color: white;
}

.single-post .post-footer .share-button.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.single-post .post-footer .share-button.twitter {
    background: #1da1f2;
    color: white;
}

.single-post .post-footer .share-button.twitter:hover {
    background: #1a91da;
    transform: translateY(-2px);
}

.single-post .post-footer .share-button.whatsapp {
    background: #25d366;
    color: white;
}

.single-post .post-footer .share-button.whatsapp:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

/* ========================================
   NAVEGAÇÃO ENTRE POSTS
======================================== */

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--branco);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    max-width: 45%;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    display: block;
    padding: 1rem 1.5rem;
    background: var(--azul-medio);
    color: var(--branco);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.post-navigation a:hover {
    background: var(--azul-escuro);
    transform: translateY(-2px);
}

/* ========================================
   POSTS RELACIONADOS
======================================== */

.related-posts {
    margin: 4rem 0;
    padding: 2.5rem;
    background: var(--branco);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.related-posts h2 {
    font-size: 2rem;
    color: var(--azul-escuro);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    position: relative;
}

.related-posts h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--laranja);
    border-radius: 2px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.related-post {
    background: var(--cinza-claro);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.related-post .related-post-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover .related-post-thumbnail {
    transform: scale(1.05);
}

.related-post .related-post-title {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    margin: 0;
}

.related-post .related-post-title a {
    color: var(--azul-escuro);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 0.7 !important;
    transition: color 0.3s ease;
}

.related-post .related-post-title a:hover {
    color: var(--laranja);
}

.related-post .related-post-excerpt {
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    color: var(--cinza-escuro);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========================================
   RESPONSIVIDADE ESPECÍFICA
======================================== */

@media (max-width: 768px) {
    .single-post .post-header {
        padding: 2rem 1.5rem 1rem 1.5rem;
    }
    
    .single-post .post-header .post-title {
        font-size: 2.2rem;
    }
    
    .single-post .post-content {
        padding: 2rem 1.5rem;
        font-size: 1rem;
    }
    
    .single-post .post-footer {
        padding: 1.5rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        max-width: 100%;
        text-align: center;
    }
    
    .related-posts {
        padding: 2rem 1.5rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .single-post .post-footer .share-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .single-post .post-header .post-title {
        font-size: 1.8rem;
    }
    
    .single-post .post-content h2 {
        font-size: 1.8rem;
    }
    
    .single-post .post-content h3 {
        font-size: 1.5rem;
    }
    
    .single-post .post-footer .share-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}