/* Rich Editor CSS - Estilos adicionais para o editor */

.youtube-embed-container {
    position: relative;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.youtube-embed-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, #ff4444);
    border-radius: 14px;
    z-index: -1;
}

.youtube-embed-container iframe {
    transition: transform 0.3s ease;
}

.youtube-embed-container:hover iframe {
    transform: scale(1.02);
}

/* Melhorar aparência dos posts */
.post-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
}

.post-content h2 {
    border-bottom: 3px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.post-content h3 {
    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 blockquote {
    position: relative;
    font-style: italic;
    font-size: 1.1em;
}

.post-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #3b82f6;
    position: absolute;
    left: -1rem;
    top: -1rem;
    line-height: 1;
    opacity: 0.3;
}

.post-content pre {
    position: relative;
}

.post-content pre::before {
    content: 'Código';
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 0.75rem;
    color: #10b981;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-content img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-content img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.post-content ul li {
    position: relative;
    padding-left: 1.5rem;
}

.post-content ul li::before {
    content: '●';
    color: #3b82f6;
    font-size: 1.2em;
    position: absolute;
    left: 0;
}

.post-content ol li {
    counter-increment: list-counter;
    position: relative;
    padding-left: 2rem;
}

.post-content ol {
    counter-reset: list-counter;
}

.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.8rem;
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
    .post-content {
        font-size: 0.95rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.25rem;
        margin-top: 1.25rem;
    }
    
    .youtube-embed-container {
        margin: 1.5rem 0;
    }
    
    .post-content blockquote::before {
        font-size: 2.5rem;
        left: -0.5rem;
        top: -0.5rem;
    }
}