/* ===========================================
   ESTILOS PARA CONTENIDO DEL BLOG
   Archivo: public/css/blog-content.css
   =========================================== */

/* Contenedor principal del contenido */
.blog-content {
    line-height: 1.7;
    font-size: 16px;
    color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Títulos dentro del contenido */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
}

.blog-content h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid #fa510b;
    padding-bottom: 0.5rem;
}

.blog-content h2 {
    font-size: 2rem;
    color: #fa930a;
    border-left: 4px solid #fa510b;
    padding-left: 1rem;
}

.blog-content h3 {
    font-size: 1.5rem;
    color: #ffa726;
}

.blog-content h4 {
    font-size: 1.25rem;
    color: #ffb74d;
}

.blog-content h5,
.blog-content h6 {
    font-size: 1.1rem;
    color: #ffcc80;
}

/* Párrafos */
.blog-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-justify: inter-word;
}

.blog-content p:first-child {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2rem;
}

/* Enlaces */
.blog-content a {
    color: #fa510b;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.blog-content a:hover {
    color: #ff6d1f;
    border-bottom-color: #fa510b;
}

/* Listas */
.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content ul {
    list-style-type: none;
}

.blog-content ul li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.blog-content ul li:before {
    content: "▶";
    color: #fa510b;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
}

.blog-content ol {
    counter-reset: list-counter;
}

.blog-content ol li {
    counter-increment: list-counter;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 2rem;
}

.blog-content ol li:before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #fa510b;
    color: white;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Citas */
.blog-content blockquote {
    background: rgba(250, 81, 11, 0.1);
    border-left: 5px solid #fa510b;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    font-style: italic;
    font-size: 1.1rem;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.blog-content blockquote:before {
    content: """;
    font-size: 4rem;
    color: #fa510b;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}

.blog-content blockquote p {
    margin-bottom: 0;
    color: #ffffff;
}

/* Código */
.blog-content pre {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.blog-content code {
    background: rgba(250, 81, 11, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    color: #fa930a;
}

.blog-content pre code {
    background: transparent;
    padding: 0;
    color: #f5f5f5;
}

/* Imágenes */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 1.5rem 0;
    display: block;
}

.blog-content figure {
    margin: 2rem 0;
    text-align: center;
}

.blog-content figcaption {
    margin-top: 0.5rem;
    font-style: italic;
    color: #aaa;
    font-size: 0.9rem;
}

/* Tablas */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.blog-content table th,
.blog-content table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-content table th {
    background: #fa510b;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.blog-content table tr:hover {
    background: rgba(250, 81, 11, 0.1);
}

/* Separadores */
.blog-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fa510b, transparent);
    margin: 3rem 0;
}

/* Texto resaltado */
.blog-content strong,
.blog-content b {
    color: #fa930a;
    font-weight: 600;
}

.blog-content em,
.blog-content i {
    color: #ffb74d;
    font-style: italic;
}

.blog-content mark {
    background: rgba(250, 81, 11, 0.3);
    color: #ffffff;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

/* Elementos especiales */
.blog-content .highlight {
    background: linear-gradient(90deg, rgba(250, 81, 11, 0.2), rgba(250, 147, 10, 0.2));
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #fa510b;
    margin: 1.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-content {
        font-size: 15px;
    }
    
    .blog-content h1 {
        font-size: 2rem;
    }
    
    .blog-content h2 {
        font-size: 1.75rem;
    }
    
    .blog-content h3 {
        font-size: 1.4rem;
    }
    
    .blog-content ul,
    .blog-content ol {
        padding-left: 1.5rem;
    }
    
    .blog-content blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .blog-content pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

/* Animaciones sutiles */
.blog-content h1,
.blog-content h2,
.blog-content h3 {
    animation: fadeInUp 0.6s ease-out;
}

.blog-content p,
.blog-content ul,
.blog-content ol,
.blog-content blockquote {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Estilos adicionales para TinyMCE */
.blog-content .mce-content-body {
    color: #f5f5f5 !important;
}

/* Números en las listas */
.blog-content ol.decimal {
    list-style-type: decimal;
}

.blog-content ol.lower-alpha {
    list-style-type: lower-alpha;
}

.blog-content ol.upper-alpha {
    list-style-type: upper-alpha;
}

.blog-content ol.lower-roman {
    list-style-type: lower-roman;
}

.blog-content ol.upper-roman {
    list-style-type: upper-roman;
}