/* ============================================
   BLOG POST - PÁGINA INDIVIDUAL
   Design moderno para artigos
   ============================================ */

.post-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    color: #718096;
    font-size: 0.95em;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumb span:last-child {
    color: #2d3748;
    font-weight: 600;
}

/* ============================================
   ARTIGO
   ============================================ */

.post-article {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .post-article {
        padding: 30px 20px;
    }
}

.post-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.post-article h1,
.post-article .post-title {
    font-size: 3em;
    color: #2d3748;
    margin: 20px 0;
    line-height: 1.2;
    font-weight: 800;
}

@media (max-width: 768px) {
    .post-article h1,
    .post-article .post-title {
        font-size: 2em;
    }
}

.post-article .post-subtitle {
    font-size: 1.4em;
    color: #4a5568;
    margin: 20px 0;
    line-height: 1.5;
    font-weight: 400;
}

@media (max-width: 768px) {
    .post-article .post-subtitle {
        font-size: 1.2em;
    }
}

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

.post-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    color: #718096;
    font-size: 0.95em;
    flex-wrap: wrap;
}

.post-date,
.post-views {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-date i,
.post-views i {
    color: #667eea;
}

/* ============================================
   IMAGEM DESTACADA
   ============================================ */

.post-featured-image {
    margin: 40px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.post-featured-image:hover img {
    transform: scale(1.05);
}

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

.post-content {
    font-size: 1.15em;
    line-height: 1.8;
    color: #2d3748;
    margin: 40px 0;
    text-align: left;
}

.post-content * {
    display: block;
}

.post-content p {
    margin: 25px 0;
    display: block !important;
    text-align: left;
}

.post-content > p:first-of-type {
    margin-top: 0;
}

.post-content > p:last-of-type {
    margin-bottom: 0;
}

.post-content strong,
.post-content em,
.post-content a {
    display: inline;
}

.post-content br {
    display: block;
    content: "";
    margin: 10px 0;
}

.post-article .post-content h2,
.post-article .post-content h3,
.post-article .post-content h4 {
    margin: 35px 0 20px 0;
    color: #2d3748;
    font-weight: 700;
    line-height: 1.3;
    display: block !important;
    text-align: left;
}

.post-article .post-content h2 {
    font-size: 2em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
    margin-top: 50px;
    display: block !important;
}

.post-article .post-content h3 {
    font-size: 1.6em;
    color: #667eea;
    display: block !important;
    margin-top: 40px;
    margin-bottom: 15px;
}

.post-article .post-content h4 {
    font-size: 1.3em;
    display: block !important;
    margin-top: 35px;
    margin-bottom: 15px;
}

.post-content ul,
.post-content ol {
    margin: 25px 0;
    padding-left: 30px;
    display: block !important;
}

.post-content li {
    margin: 10px 0;
    display: list-item !important;
}

.post-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.post-content a:hover {
    border-bottom-color: #667eea;
}

.post-content blockquote {
    border-left: 5px solid #667eea;
    margin: 30px 0;
    padding: 20px 30px;
    background: #f7fafc;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #4a5568;
}

.post-content code {
    background: #f7fafc;
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e53e3e;
}

.post-content pre {
    background: #2d3748;
    color: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 25px 0;
}

.post-content pre code {
    background: transparent;
    color: #f7fafc;
    padding: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.post-content strong {
    color: #2d3748;
    font-weight: 700;
}

.post-content em {
    font-style: italic;
}

/* ============================================
   RODAPÉ DO POST
   ============================================ */

.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e2e8f0;
    color: #2d3748;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #cbd5e0;
    transform: translateX(-5px);
}

/* ============================================
   BOTÕES DE COMPARTILHAMENTO
   ============================================ */

.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-buttons p {
    margin: 0;
    color: #718096;
    font-weight: 600;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.linkedin {
    background: #0077b5;
}

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

.related-posts {
    margin-top: 80px;
    width: 100%;
}

.post-container .related-posts h2 {
    font-size: 2.2em;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: left;
    font-weight: 700;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
}

@media (max-width: 900px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.related-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.related-image {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.related-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-card h3,
.related-content h3 {
    font-size: 1.1em;
    color: #2d3748;
    margin: 0 0 10px 0;
    line-height: 1.3;
    font-weight: 700;
    transition: color 0.3s ease;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card:hover h3,
.related-card:hover .related-content h3 {
    color: #667eea;
}

.related-content p {
    color: #a0aec0;
    font-size: 0.85em;
    margin: 0;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .share-buttons {
        width: 100%;
        justify-content: center;
    }

    .btn-back {
        width: 100%;
        justify-content: center;
    }
    
    .post-container .related-posts h2 {
        font-size: 1.8em;
    }
}

/* ============================================
   TABELAS NO CONTEÚDO
   ============================================ */

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.post-content table th,
.post-content table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.post-content table th {
    background: #667eea;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.post-content table tr:last-child td {
    border-bottom: none;
}

.post-content table tr:hover {
    background: #f7fafc;
}

@media (max-width: 768px) {
    .post-content table {
        font-size: 0.9em;
    }

    .post-content table th,
    .post-content table td {
        padding: 10px;
    }
}

