/**
 * Estilos para el Sistema de Blog
 * Archivo: blog-styles.css
 * 
 * Incluye este archivo en ScriptsHeader.php agregando:
 * <link rel="stylesheet" href="css/blog-styles.css" type="text/css" />
 */

/* ===================================
   ESTILOS PARA CONTENIDO DE ARTÍCULOS
   =================================== */

/* Párrafos generales (sin clase específica) */
.article-content p {
    font-size: 18px ;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: left;
    font-family: Arial ; 
    margin-top: 15px; 
}

/* Separación adicional entre párrafos consecutivos */
.article-content p + p {
    margin-top: 15px;
}

/* Título principal de sección */
.titulo {
    font-family: Arial !important; 
    font-size: 26px !important;
    font-weight: bold !important;
    color: #333 !important;
    text-transform: none !important;
    margin-top: 10px !important;
    margin-bottom: 30px !important;
    line-height: 1.4 !important;
}

/* Subtítulo de sección */
.subtitulo {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #555 !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
    line-height: 1.4 !important;
}

/* Párrafo normal con clase */
.parrafo {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #333;
    margin-bottom: 20px !important;
    margin-top: 20px !important;
    text-align: left !important;
}

/* Texto destacado o introducción - Para intros y cierres de artículo */
.intro {
    font-size: 22px !important;
    font-style: italic !important;
    color: #555 !important;
    line-height: 1.7 !important;
    margin: 25px 0 !important;
    padding: 20px 25px !important;
    background: #f9f9f9 !important;
    border-left: 5px solid #C58180 !important;
    font-weight: 400 !important;
    font-family: Arial !important; 
}

.intro em {
    font-style: italic;
}

/* Frase inspiradora o cita de autor/filósofo */
.frase {
    font-size: 24px !important;
    font-style: italic !important;
    color: #C58180 !important;
    text-align: left !important;
    margin: 35px auto !important;
    margin-left: 0px !important;
    padding: 25px 45px !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    max-width: 800px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    position: relative !important;
    background: transparent !important;
    background-color:#F6F6F6 !important;
    background-image: none !important;
}

/* Comillas decorativas para las frases */
.frase:before {
    content: '"' !important;
    font-size: 60px !important;
    color: rgba(197, 129, 128, 0.2) !important;
    position: absolute !important;
    top: -15px !important;
    left: 5px !important;
    font-family: Georgia, serif !important;
}

.frase:after {
    content: '"' !important;
    font-size: 60px !important;
    color: rgba(197, 129, 128, 0.2) !important;
    position: absolute !important;
    bottom: -45px !important;
    right: 15px !important;
    font-family: Georgia, serif !important;
}

/* ===================================
   ESTILOS PARA LISTADO DE ARTÍCULOS
   =================================== */

.badgeFecha {
    position: absolute;
    top: 20px;
    left: 10px;
    background-color: #000;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 13px;
    z-index: 5;
}

.article-item {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.article-item:last-child {
    border-bottom: none;
}

.article-thumbnail-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.article-thumbnail-container img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.article-thumbnail-container:hover img {
    transform: scale(1.05);
}

.article-title {
    line-height: 150%;
    text-transform: none;
    font-weight: normal;
    margin-bottom: 15px;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #C58180;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

/* ===================================
   ESTILOS PARA VISTA DE ARTÍCULO
   =================================== */

.article-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.article-meta i {
    margin-right: 5px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

.article-content a {
    color: #C58180;
    text-decoration: underline;
}

.article-content a:hover {
    color: #a86968;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-content blockquote {
    border-left: 4px solid #C58180;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-content table th,
.article-content table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.article-content table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* ===================================
   ESTILOS PARA ADMINISTRACIÓN
   =================================== */

.admin-container {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.articulo-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.articulo-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.articulo-thumbnail {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 20px;
}

.articulo-info {
    flex: 1;
}

.articulo-titulo {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.badge-estado {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
}

.badge-publicado {
    background-color: #4CAF50;
    color: white;
}

.badge-borrador {
    background-color: #FFC107;
    color: #333;
}

.badge-preview {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: #f0ad4e;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.filtros-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.stats-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.stats-numero {
    font-size: 36px;
    font-weight: bold;
}

.stats-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ===================================
   ESTILOS PARA FORMULARIO
   =================================== */

.form-container {
    padding: 40px 0;
    background: #f9f9f9;
}

.form-box {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #C58180;
}

.preview-image {
    max-width: 200px;
    margin-top: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.help-text {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.character-count {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-top: 5px;
}

.quick-buttons {
    margin-bottom: 15px;
}

.quick-btn {
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 12px;
    padding: 5px 10px;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .titulo {
        font-size: 20px;
    }
    
    .subtitulo {
        font-size: 16px;
    }
    
    .parrafo {
        font-size: 15px;
        text-align: left;
    }
    

    

    
    .article-thumbnail-container {
        margin-bottom: 15px;
    }
    
    .articulo-thumbnail {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .articulo-card {
        padding: 15px;
    }
    
    .stats-numero {
        font-size: 28px;
    }
    
    .form-box {
        padding: 20px;
    }
    
    .badge-preview {
        position: fixed;
        top: auto;
        bottom: 20px;
        right: 20px;
        font-size: 12px;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .titulo {
        font-size: 18px;
    }
    

    .article-title {
        font-size: 18px;
    }
    
    .quick-btn {
        width: 100%;
        margin-right: 0;
    }
}

/* ===================================
   UTILIDADES
   =================================== */

.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-articles i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* Animaciones suaves */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   MEJORAS DE ACCESIBILIDAD
   =================================== */

.article-content :focus,
.btn:focus,
.form-control:focus {
    outline: 2px solid #C58180;
    outline-offset: 2px;
}

/* Mejora de contraste para enlaces */
.article-content a:focus {
    background-color: rgba(197, 129, 128, 0.1);
}

/* Skip to content para lectores de pantalla */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #C58180;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}