/* Estilos específicos para páginas individuales de noticias */

.noticia-individual {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.noticia-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e67e22;
}

.noticia-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.noticia-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.noticia-fecha {
    color: #7f8c8d;
    font-size: 0.95rem;
    font-weight: 500;
}

.noticia-autor {
    color: #e67e22;
    font-size: 0.95rem;
    font-weight: 600;
}

.noticia-imagen-principal {
    text-align: center;
    margin: 30px 0;
}

.noticia-imagen-principal img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.noticia-contenido {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    margin: 30px 0;
}

.noticia-contenido p {
    margin-bottom: 20px;
    text-align: justify;
}

.noticia-contenido p:first-child {
    font-size: 1.2rem;
    font-weight: 500;
    color: #34495e;
}

.noticia-footer-individual {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #ecf0f1;
}

.compartir {
    margin-bottom: 30px;
}

.compartir h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.social-share {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn.facebook {
    background: #3b5998;
    color: white;
}

.share-btn.facebook:hover {
    background: #2d4373;
    transform: translateY(-2px);
}

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

.share-btn.twitter:hover {
    background: #0d8bd9;
    transform: translateY(-2px);
}

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

.share-btn.whatsapp:hover {
    background: #1ebe57;
    transform: translateY(-2px);
}

.volver {
    text-align: center;
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-volver:hover {
    background: #5a6268;
    transform: translateY(-2px);
    color: white;
}

/* Dark Mode Styles */
body.dark-mode .noticia-header h1,
body.dark-mode .noticia-contenido,
body.dark-mode .noticia-contenido p:first-child,
body.dark-mode .compartir h4 {
    color: var(--gray-dark);
}

body.dark-mode .noticia-fecha {
    color: var(--gray-subtitle);
}

body.dark-mode .noticia-footer-individual {
    border-top-color: var(--gray-medium);
}

/* Responsive */
@media (max-width: 768px) {
    .noticia-header h1 {
        font-size: 2rem;
    }
    
    .noticia-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .noticia-contenido {
        font-size: 1rem;
    }
    
    .social-share {
        justify-content: center;
    }
    
    .share-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .noticia-individual {
        padding: 0 15px;
    }
    
    .noticia-header h1 {
        font-size: 1.8rem;
    }
    
    .social-share {
        flex-direction: column;
    }
    
    .share-btn {
        text-align: center;
    }
}
