/* 
 * Blog Styles - SpendWise
 * Combina modern-styles.css (header/footer) + styles.css (conteúdo do post)
 */

/* Importar estilos modernos para header/footer */
@import url('modern-styles.css');

/* Estilos específicos para posts */


.post-page {
    background-color: var(--background);
    min-height: 100vh;
    position: static !important;
}

.post-full-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.post-full-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.post-body-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.post-body-content h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.post-body-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

.post-body-content ul,
.post-body-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-body-content li {
    margin-bottom: 0.75rem;
}

.post-body-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.post-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-body-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-body-content code {
    background-color: var(--secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.post-body-content pre {
    background-color: var(--secondary);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

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

/* CTA dentro do post */
.post-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #0d8a3a 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.post-cta h3 {
    color: white !important;
    margin-top: 0 !important;
    margin-bottom: 1rem;
}

.post-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* Botões de compartilhamento */
.share-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 40px 0;
}

.share-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.share-button:hover {
    transform: translateY(-2px);
}

.share-button.facebook {
    background-color: #1877f2;
    color: white;
}

.share-button.twitter {
    background-color: #1da1f2;
    color: white;
}

.share-button.linkedin {
    background-color: #0077b5;
    color: white;
}

.share-button.whatsapp {
    background-color: #25d366;
    color: white;
}

.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-twitter { background: #1DA1F2; }
.share-linkedin { background: #0A66C2; }

/* Responsividade */
@media (max-width: 768px) {
    .post-full-content h1 {
        font-size: 1.875rem;
    }
    
    .post-body-content {
        font-size: 1rem;
    }
    
    .post-body-content h2 {
        font-size: 1.5rem;
    }
    
    .post-body-content h3 {
        font-size: 1.25rem;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .share-button {
        flex: 1 1 45%;
        justify-content: center;
    }
    

    
}

.legal-modal {
  position: fixed !important;
  inset: 0;
}

body.modal-open {
  overflow: hidden;
}