/**
 * Estilos para posts individuales del blog
 * Microdental QH Theme
 */

/* ========================================
   BREADCRUMB SECTION
   ======================================== */
.post-breadcrumb-section {
    background: #f8f9fa;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

/* ========================================
   POST HERO SECTION - LIMPIO
   ======================================== */
.post-hero {
    background: linear-gradient(135deg, #B85170 0%, #9A3E5C 100%);
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="30" r="1.5" fill="white" opacity="0.08"/><circle cx="40" cy="60" r="2" fill="white" opacity="0.06"/><circle cx="70" cy="80" r="1.2" fill="white" opacity="0.09"/></svg>') repeat;
    z-index: 0;
}

.post-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.post-hero .hero-content {
    position: relative;
    z-index: 2;
}

/* ========================================
   BREADCRUMB NAVIGATION - FUERA DEL HERO
   ======================================== */
.post-breadcrumb {
    margin: 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    position: relative;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '→';
    margin-left: 1rem;
    color: #999;
}

.breadcrumb-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #B85170;
}

/* ========================================
   POST CATEGORY BADGE
   ======================================== */
.post-category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

/* ========================================
   POST TITLE
   ======================================== */
.post-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   POST META SECTION - LIMPIA Y SEPARADA
   ======================================== */
.post-meta-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

.post-meta-clean {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #666;
}

.meta-item svg {
    flex-shrink: 0;
    color: #B85170;
}

/* ========================================
   POST MAIN CONTENT
   ======================================== */
.post-main {
    padding: 3rem 0;
    background: #f8f9fa;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
}

/* ========================================
   POST CONTENT ARTICLE
   ======================================== */
.post-content {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(183, 73, 110, 0.05);
}

.post-featured-image {
    margin-bottom: 0;
}

.featured-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.post-body {
    padding: 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

/* Estilos para contenido WordPress */
.post-body h2 {
    color: #333;
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    font-weight: 600;
    border-left: 4px solid #B85170;
    padding-left: 1.5rem;
}

.post-body h3 {
    color: #444;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.post-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.post-body ul,
.post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body blockquote {
    background: #f8f9fa;
    border-left: 4px solid #B85170;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    font-style: italic;
    font-size: 1.2rem;
    color: #666;
}

.post-body a {
    color: #B85170;
    text-decoration: none;
    border-bottom: 1px solid rgba(183, 73, 110, 0.3);
    transition: all 0.3s ease;
}

.post-body a:hover {
    color: #9A3E5C;
    border-bottom-color: #9A3E5C;
}

/* ========================================
   POST TAGS
   ======================================== */
.post-tags {
    padding: 2rem 3rem;
    border-top: 1px solid #eee;
}

.post-tags h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag-link {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.tag-link:hover {
    background: #B85170;
    color: white;
    border-color: #B85170;
    transform: translateY(-2px);
}

/* ========================================
   POST AUTHOR BOX
   ======================================== */
.post-author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2.5rem 3rem;
    background: #f8f9fa;
    margin-top: 1px;
    border-radius: 0 0 20px 20px;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid #B85170;
}

.author-info h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.author-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-social a {
    color: #B85170;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.author-social a:hover {
    color: #9A3E5C;
}

/* ========================================
   POST SIDEBAR
   ======================================== */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(183, 73, 110, 0.05);
}

.sidebar-widget h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.8rem;
}

/* ========================================
   RELATED POSTS
   ======================================== */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.related-post-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.related-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post-thumb {
    flex-shrink: 0;
}

.related-post-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.related-post-content h4 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.related-post-content a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-content a:hover {
    color: #B85170;
}

.related-post-date {
    color: #888;
    font-size: 0.85rem;
}

/* ========================================
   CTA SIDEBAR WIDGET
   ======================================== */
.cta-widget {
    background: linear-gradient(135deg, #B85170 0%, #9A3E5C 100%);
    color: white;
    text-align: center;
}

.cta-widget h3 {
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

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

.cta-icon {
    margin-bottom: 1rem;
}

.cta-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #B85170;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ========================================
   POST NAVIGATION
   ======================================== */
.post-navigation {
    padding: 4rem 0;
    background: white;
    border-top: 1px solid #eee;
}

.nav-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.nav-post {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.nav-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(183, 73, 110, 0.15);
    border-color: rgba(183, 73, 110, 0.2);
}

.nav-label {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    display: block;
}

.nav-post h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.nav-post h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-post:hover h3 a {
    color: #B85170;
}

.nav-post-thumb {
    margin-top: 1rem;
}

.nav-post-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

/* ========================================
   POST CTA SECTION
   ======================================== */
.post-cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #B85170 0%, #9A3E5C 100%);
    color: white;
    text-align: center;
}

.cta-final h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-final p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: white;
    color: #B85170;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #B85170;
    transform: translateY(-3px);
}

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

/* Tablets */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .post-sidebar {
        order: -1;
    }
    
    .post-title {
        font-size: 2.5rem;
    }
    
    .post-body {
        padding: 2rem;
    }
    
    .post-tags,
    .post-author-box {
        padding: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .post-hero {
        padding: 3rem 0 2rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta-clean {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .post-breadcrumb-section {
        padding: 1rem 0;
    }
    
    .breadcrumb-list {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .breadcrumb-list li:not(:last-child)::after {
        margin-left: 0.5rem;
    }
    
    .post-body {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .post-body h2 {
        font-size: 1.5rem;
        padding-left: 1rem;
    }
    
    .post-author-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .nav-posts {
        grid-template-columns: 1fr;
    }
    
    .cta-final h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .post-hero {
        padding: 3rem 0 2rem;
    }
    
    .post-main {
        padding: 3rem 0;
    }
    
    .post-cta-section {
        padding: 3rem 0;
    }
    
    .breadcrumb-list li:nth-last-child(2) {
        display: none; /* Ocultar categoría en móvil muy pequeño */
    }
}