/* CSS específico para formatação de posts - Fandim Marketing */

.post-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.8;
    color: #374151;
    font-size: 1.125rem;
    max-width: none;
}

/* Headers */
.post-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.post-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.post-content h3:before {
    content: "▶";
    color: #3b82f6;
    margin-right: 0.5rem;
    font-size: 0.9em;
}

.post-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Paragraphs */
.post-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    text-align: justify;
}

/* Strong and emphasis */
.post-content strong {
    font-weight: 600;
    color: #111827;
}

.post-content em {
    font-style: italic;
    color: #6b7280;
}

/* Lists */
.post-content ul {
    margin: 1.5rem 0;
    padding-left: 0;
}

.post-content ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}

.post-content ul li:before {
    content: "•";
    color: #3b82f6;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
}

.post-content ol {
    margin: 1.5rem 0;
    padding-left: 0;
    counter-reset: list-counter;
}

.post-content ol li {
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    counter-increment: list-counter;
    line-height: 1.7;
}

.post-content ol li:before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #3b82f6;
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Links */
.post-content a {
    color: #3b82f6;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

/* Images */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Blockquotes */
.post-content blockquote {
    border-left: 4px solid #3b82f6;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 8px;
    font-style: italic;
    font-size: 1.1em;
    position: relative;
}

.post-content blockquote:before {
    content: """;
    font-size: 3rem;
    color: #3b82f6;
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    opacity: 0.3;
    line-height: 1;
}

/* Code */
.post-content code {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', 'Monaco', 'Cascadia Code', monospace;
    font-size: 0.875rem;
    font-weight: 500;
}

.post-content pre {
    background: #1f2937;
    color: #10b981;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.post-content pre:before {
    content: "Código";
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 0.75rem;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: system-ui, sans-serif;
}

/* Tables */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-content th {
    background: #f9fafb;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.post-content td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.post-content tbody tr:hover {
    background: #f9fafb;
}

/* YouTube embeds */
.post-content .youtube-embed-container {
    margin: 2.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-content .youtube-embed-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.post-content .youtube-embed-container iframe {
    border-radius: 12px;
}

/* Horizontal rules */
.post-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 3rem 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .post-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .post-content h1 {
        font-size: 1.875rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .post-content h3 {
        font-size: 1.25rem;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .post-content blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .post-content blockquote:before {
        font-size: 2rem;
        left: 0.5rem;
        top: 0.25rem;
    }
    
    .post-content .youtube-embed-container {
        margin: 1.5rem 0;
    }
    
    .post-content pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .post-content table {
        font-size: 0.875rem;
    }
    
    .post-content th,
    .post-content td {
        padding: 0.75rem 0.5rem;
    }
}