/**
 * Estilos para Single Post
 * 
 * @package NUBEDevelopment
 */

/* ========================================
   SINGLE POST ARTICLE
   ======================================== */
.single-post-article {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 50px;
}

/* ========================================
   IMAGEN DESTACADA
   ======================================== */

/* ========================================
   HEADER DEL POST
   ======================================== */
.single-entry-header {
    padding: 0 0px 30px;
    border-bottom: 1px solid #e1e8ed;
    margin: 7rem 40px 40px;
}

/* Categorías */
.single-categories {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #000000 0%, #3f3233 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all ease-in-out 0.3s;
}

.category-badge:hover {
    background: linear-gradient(270deg, #000000 0%, #3f3233 100%);
    transform: translateY(-2px);
    color: white;
    transition: all ease-in-out 0.3s;
}

/* Título */
.single-entry-title {
    font-size: 42px;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

/* Meta información */
.single-entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding-top: 20px;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #667eea;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-label {
    font-size: 11px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.author-name {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name:hover {
    color: #667eea;
}

.meta-date,
.meta-reading-time,
.meta-comments {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #5a6c7d;
}

.meta-date i,
.meta-reading-time i,
.meta-comments i {
    font-size: 16px;
    color: #667eea;
}

.meta-comments a {
    color: #5a6c7d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-comments a:hover {
    color: #667eea;
}

/* ========================================
   CONTENIDO DEL POST
   ======================================== */
.single-entry-content {
    padding: 0 40px;
    font-size: 18px;
    line-height: 1.8;
}

.single-entry-content p {
    margin-bottom: 14px;
}
/* 
.single-entry-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.single-entry-content h3 {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
}

.single-entry-content h4 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 14px;
} */

.single-entry-content ul,
.single-entry-content ol {
    margin-bottom: 24px;
    padding-left: 30px;
}

.single-entry-content li {
	margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

/* .single-entry-content blockquote {
    background: #f5f7fa;
    border-left: 4px solid #667eea;
    padding: 24px 30px;
    margin: 32px 0;
    font-style: italic;
    color: #5a6c7d;
} */

.single-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.single-entry-content a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-entry-content a:hover {
    color: #211718;
}

/* Paginación de contenido */
.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e1e8ed;
}

.page-links span,
.page-links a {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f7fa;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: #667eea;
    color: white;
}

/* ========================================
   FOOTER DEL POST
   ======================================== */
.single-entry-footer {
    padding: 40px;
    margin-top: 40px;
    border-top: 2px solid #e1e8ed;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.post-tags i {
    font-size: 18px;
    color: #667eea;
}

.tags-label {
    font-weight: 700;
    color: #2c3e50;
    margin-right: 4px;
}

.tag-item {
    display: inline-block;
    background: #f5f7fa;
    color: #5a6c7d;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Compartir en redes sociales */
.post-share {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.share-label {
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-facebook {
    background: #1877f2;
}

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

.share-linkedin {
    background: #0a66c2;
}

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

/* ========================================
   NAVEGACIÓN ENTRE POSTS
   ======================================== */
.post-navigation {
    background: #f5f7fa;
    padding: 30px 40px;
    border-radius: 16px;
    margin-bottom: 50px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-previous a:hover,
.nav-next a:hover {
    border-color: #211718;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.15);
}

.nav-next {
    text-align: right;
}

.nav-direction {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #211718;
    margin-bottom: 8px;
}

.nav-next .nav-direction {
    justify-content: flex-end;
}

.nav-title {
    font-size: 16px;
    font-weight: 700;
    color: #211718;
    display: block;
}

/* ========================================
   POSTS RELACIONADOS
   ======================================== */
.related-posts {
    padding: 40px;
    background: #f5f7fa;
    border-radius: 16px;
    margin-bottom: 50px;
}

.related-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.related-post-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.related-post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.related-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-post-item:hover .related-thumbnail img {
    transform: scale(1.1);
}

.related-content {
    padding: 20px;
}

.related-post-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.related-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #667eea;
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #7f8c8d;
}

.related-meta i {
    color: #667eea;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .single-entry-title {
        font-size: 32px;
    }
	
	.single-entry-header {
		border-bottom: 1px solid #e1e8ed;
		margin: 0rem 0px 40px !important;
		padding: 0px 0px 30px !important;
	}
    
    .single-entry-content {
        padding: 0 30px;
    }
    
    .single-entry-footer {
        padding: 0 30px;
    }
    
    .post-share {
        justify-content: flex-start;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .single-entry-title {
        font-size: 28px;
    }
    
    .single-entry-header,
    .single-entry-content {
        padding: 0 24px;
    }
    
    .single-entry-content {
        font-size: 16px;
    }
    
    .single-entry-meta {
        gap: 16px;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .nav-next .nav-direction {
        justify-content: flex-start;
    }
    
    .related-posts {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .single-featured-image {
        margin-bottom: 30px;
    }
    
    .single-entry-title {
        font-size: 24px;
    }
    
    .single-entry-header,
    .single-entry-content,
    .single-entry-footer {
        padding: 0 20px;
    }
    
    .single-entry-footer {
        padding: 30px 20px;
    }
    
    .post-navigation {
        padding: 20px;
    }
}