/* ========================================
   RELAXMO BLOG POST STYLES
   Subir a: /css/relaxmo-blog-post.css
======================================== */

/* Reset y Base */
.relaxmo-post-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.relaxmo-post-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1e293b;
    line-height: 1.7;
}

.relaxmo-post-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER NAVIGATION
======================================== */
.relaxmo-post-container .post-header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.relaxmo-post-container .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.relaxmo-post-container .header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.relaxmo-post-container .header-breadcrumb a {
    color: #8b5cf6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.relaxmo-post-container .header-breadcrumb a:hover {
    color: #7c3aed;
}

.relaxmo-post-container .header-breadcrumb span {
    color: #1e293b;
    font-weight: 600;
}

.relaxmo-post-container .header-breadcrumb svg {
    color: #cbd5e1;
}

.relaxmo-post-container .reading-progress {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
    width: 200px;
}

.relaxmo-post-container .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    width: 0%;
    transition: width 0.3s ease;
}

/* ========================================
   HERO SECTION
======================================== */
.relaxmo-post-container .post-hero {
    background: white;
    border-radius: 24px;
    margin: 40px 20px 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
}

.relaxmo-post-container .hero-image {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.relaxmo-post-container .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.relaxmo-post-container .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 40px;
    color: white;
}

.relaxmo-post-container .post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.95;
    flex-wrap: wrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.relaxmo-post-container .post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.relaxmo-post-container .post-excerpt {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* ========================================
   MAIN CONTENT
======================================== */
.relaxmo-post-container .post-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    margin: 40px 20px;
    align-items: start;
}

.relaxmo-post-container .post-content {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.relaxmo-post-container .post-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #8b5cf6;
}

.relaxmo-post-container .post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin: 30px 0 15px;
}

.relaxmo-post-container .post-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.relaxmo-post-container .post-content ul, 
.relaxmo-post-container .post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.relaxmo-post-container .post-content li {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.relaxmo-post-container .post-content blockquote {
    background: #f8fafc;
    border-left: 4px solid #8b5cf6;
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 10px 10px 0;
}
.relaxmo-post-container .post-content img {
    border-radius: 12px;
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* ========================================
   SIDEBAR
======================================== */
.relaxmo-post-container .post-sidebar {
    position: sticky;
    top: 120px;
}

.relaxmo-post-container .sidebar-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.relaxmo-post-container .sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Table of Contents */
.relaxmo-post-container .toc-list {
    list-style: none;
    padding: 0;
}

.relaxmo-post-container .toc-item {
    margin-bottom: 8px;
}

.relaxmo-post-container .toc-link {
    display: block;
    color: #64748b;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.relaxmo-post-container .toc-link:hover, 
.relaxmo-post-container .toc-link.active {
    background: #f1f5f9;
    color: #8b5cf6;
    transform: translateX(5px);
}

/* Share Buttons */
.relaxmo-post-container .share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.relaxmo-post-container .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.relaxmo-post-container .share-btn:hover {
    transform: translateY(-2px);
}

.relaxmo-post-container .share-btn.twitter { background: #1da1f2; }
.relaxmo-post-container .share-btn.facebook { background: #4267b2; }
.relaxmo-post-container .share-btn.linkedin { background: #0077b5; }
.relaxmo-post-container .share-btn.whatsapp { background: #25d366; }

/* ========================================
   RELATED POSTS
======================================== */
.relaxmo-post-container .related-posts {
    margin: 60px 20px;
}

.relaxmo-post-container .related-header {
    text-align: center;
    margin-bottom: 50px;
}

.relaxmo-post-container .related-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.relaxmo-post-container .related-header .highlight {
    color: #8b5cf6;
}

.relaxmo-post-container .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 340px));
    gap: 30px;
    justify-content: center;
}

.relaxmo-post-container .related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.relaxmo-post-container .related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

.relaxmo-post-container .related-image {
    height: 160px;
    overflow: hidden;
}

.relaxmo-post-container .related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.relaxmo-post-container .related-card:hover .related-image img {
    transform: scale(1.05);
}

.relaxmo-post-container .related-content {
    padding: 20px;
}

.relaxmo-post-container .related-date {
    color: #8b5cf6;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.relaxmo-post-container .related-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.relaxmo-post-container .related-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.relaxmo-post-container .related-title a:hover {
    color: #8b5cf6;
}

.relaxmo-post-container .related-excerpt {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}
.relaxmo-post-container .related-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.relaxmo-post-container .related-card-link:hover .related-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

/* ========================================
   CTA SECTION
======================================== */
.relaxmo-post-container .cta-section {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    margin: 60px 20px;
    text-align: center;
}

.relaxmo-post-container .cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.relaxmo-post-container .cta-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.relaxmo-post-container .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #8b5cf6;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.relaxmo-post-container .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

/* ========================================
   SCROLL TO TOP BUTTON
======================================== */
.relaxmo-post-container .scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 50px;
    height: 50px;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.relaxmo-post-container .scroll-to-top:hover {
    background: #7c3aed;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

.relaxmo-post-container .scroll-to-top.show {
    display: flex !important;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
    .relaxmo-post-container .post-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .relaxmo-post-container .post-sidebar {
        position: static;
        order: -1;
    }
    
    .relaxmo-post-container .sidebar-section {
        display: inline-block;
        margin-right: 20px;
        margin-bottom: 20px;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .relaxmo-post-container .post-title {
        font-size: 2rem;
    }
    
    .relaxmo-post-container .post-content {
        padding: 30px 25px;
    }
    
    .relaxmo-post-container .hero-image {
        height: 250px;
    }
    
    .relaxmo-post-container .hero-overlay {
        padding: 25px;
    }
    
    .relaxmo-post-container .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .relaxmo-post-container .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .relaxmo-post-container .reading-progress {
        width: 100%;
    }
    
    .relaxmo-post-container .header-breadcrumb {
        font-size: 0.85rem;
    }

    .relaxmo-post-container .scroll-to-top {
        bottom: 20px;
        right: 80px;
        width: 45px;
        height: 45px;
    }
    
    .relaxmo-post-container .related-grid {
        grid-template-columns: 1fr;
    }
}
