/* Article Detail Page Styles - Mood Thérapie */

.article-detail-page {
    background-color: #FFFFFF;
}

/* Article Header */
.article-header-container {
    background-color: #4361EE;
    padding: 150px 20px 80px;
    text-align: center;
}

.article-breadcrumb {
    font-family: 'Poppins-Regular';
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.article-breadcrumb a {
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.article-breadcrumb a:hover {
    opacity: 0.7;
}

.article-breadcrumb .separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
}

.article-breadcrumb .current {
    color: rgba(255, 255, 255, 0.9);
}

.article-main-title {
    font-family: 'Imbue-SemiBold';
    font-size: 50px;
    color: #FFFFFF;
    margin: 0 auto 30px;
    max-width: 900px;
    line-height: 1.2;
    text-transform: none;
}

.article-meta {
    font-family: 'Poppins-Regular';
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.meta-separator {
    margin: 0 5px;
    color: rgba(255, 255, 255, 0.6);
}

.article-category-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Featured Image */
.article-featured-image-section {
    background-color: #FFFFFF;
    padding: 60px 20px;
}

.featured-image-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-content-section {
    background-color: #FAFAFA;
    padding: 80px 20px;
}

.article-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

.article-body {
    background-color: #FFFFFF;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.article-body h2 {
    font-family: 'Imbue-SemiBold';
    font-size: 32px;
    color: #4361EE;
    margin: 40px 0 20px;
    line-height: 1.3;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-family: 'Imbue-Medium';
    font-size: 24px;
    color: #202020;
    margin: 30px 0 15px;
}

.article-body p {
    font-family: 'Poppins-Regular';
    font-size: 17px;
    color: #333333;
    line-height: 1.8;
    margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
    font-family: 'Poppins-Regular';
    font-size: 17px;
    color: #333333;
    line-height: 1.8;
    margin: 0 0 20px;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    border-left: 4px solid #4361EE;
    padding-left: 25px;
    margin: 30px 0;
    font-family: 'Imbue-Light';
    font-size: 20px;
    color: #4361EE;
    font-style: italic;
}

.article-body a {
    color: #4361EE;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-body a:hover {
    color: #2a4bb8;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    display: block;
}

.article-body .article-image-container {
    margin: 40px 0;
    text-align: center;
}

.article-body .article-image-container img {
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-body .image-caption {
    font-family: 'Poppins-Italic';
    font-size: 14px;
    color: #666666;
    margin-top: 10px;
    font-style: italic;
}

.article-body strong {
    font-family: 'Poppins-Bold';
    color: #202020;
    font-weight: 600;
}

.article-body em {
    font-family: 'Poppins-Italic';
    font-style: italic;
}

.article-body h4 {
    font-family: 'Imbue-Medium';
    font-size: 20px;
    color: #202020;
    margin: 25px 0 15px;
}

.article-body ol {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

.article-body ol > li {
    counter-increment: item;
    position: relative;
    padding-left: 45px;
    margin-bottom: 15px;
}

.article-body ol > li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: #4361EE;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins-Bold';
    font-size: 14px;
    font-weight: 600;
}

.article-body hr {
    border: none;
    border-top: 2px solid #BBD0FF;
    margin: 40px 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-family: 'Poppins-Regular';
    font-size: 15px;
}

.article-body table th {
    background-color: #4361EE;
    color: white;
    padding: 12px;
    text-align: left;
    font-family: 'Poppins-SemiBold';
}

.article-body table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.article-body table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.article-body pre {
    background-color: #f4f4f4;
    border-left: 4px solid #4361EE;
    padding: 15px 20px;
    overflow-x: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.article-body code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    color: #d63384;
}

.article-body pre code {
    background-color: transparent;
    padding: 0;
    color: #202020;
}

/* Info boxes */
.article-body .info-box {
    background-color: #e7f3ff;
    border-left: 4px solid #4361EE;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.article-body .info-box h4 {
    margin-top: 0;
    color: #4361EE;
}

.article-body .warning-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.article-body .success-box {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

/* Highlight text */
.article-body mark {
    background-color: #fff3cd;
    padding: 2px 5px;
    border-radius: 3px;
}

/* First paragraph special styling */
.article-body > p:first-of-type {
    font-size: 19px;
    line-height: 1.9;
    color: #2c2c2c;
}

/* Dropcap for first letter */
.article-body > p:first-of-type::first-letter {
    font-family: 'Imbue-SemiBold';
    font-size: 60px;
    line-height: 1;
    float: left;
    margin: 0 10px 0 0;
    color: #4361EE;
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-card h3 {
    font-family: 'Imbue-SemiBold';
    font-size: 20px;
    color: #4361EE;
    margin: 0 0 20px;
}

/* Author Card */
.author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid #4361EE;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-family: 'Poppins-Bold';
    font-size: 16px;
    color: #202020;
    margin: 0 0 10px;
}

.author-bio {
    font-family: 'Poppins-Regular';
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* Categories Card */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list a {
    font-family: 'Poppins-Regular';
    font-size: 15px;
    color: #555555;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.categories-list a:hover,
.categories-list a.active {
    background-color: #4361EE;
    color: #FFFFFF;
}

/* Related Articles */
.related-articles-section {
    background-color: #BBD0FF;
    padding: 80px 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}

.section-header .vertical-line {
    width: 2px;
    height: 80px;
    background-color: #4361EE;
}

.section-header h2 {
    font-family: 'Imbue-SemiBold';
    font-size: 35px;
    color: #4361EE;
    margin: 0;
    text-align: center;
}

.related-articles-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.related-article-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.15);
}

.related-article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #BBD0FF;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #BBD0FF 0%, #4361EE 100%);
}

.related-article-content {
    padding: 25px;
}

.related-category {
    font-family: 'Poppins-Medium';
    font-size: 12px;
    color: #4361EE;
    text-transform: uppercase;
    background-color: rgba(67, 97, 238, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.related-article-content h3 {
    font-family: 'Imbue-SemiBold';
    font-size: 20px;
    color: #202020;
    margin: 0 0 12px;
    line-height: 1.3;
}

.related-article-content p {
    font-family: 'Poppins-Regular';
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.article-cta-section {
    background-color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Imbue-SemiBold';
    font-size: 36px;
    color: #4361EE;
    margin: 0 0 20px;
}

.cta-content p {
    font-family: 'Poppins-Regular';
    font-size: 18px;
    color: #333333;
    line-height: 1.7;
    margin: 0 0 40px;
}

.article-button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.buttonWrapper {
    display: inline-block;
}

.customButton {
    font-family: 'Poppins-Medium';
    font-size: 14px;
    color: #4361EE;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 15px 35px;
    border: 2px solid #4361EE;
    border-radius: 5px;
    background-color: transparent;
    transition: all 0.3s ease;
    display: inline-block;
}

.customButton:hover {
    background-color: #4361EE;
    color: #FFFFFF;
}

.customButton.secondary {
    color: #202020;
    border-color: #202020;
}

.customButton.secondary:hover {
    background-color: #202020;
    color: #FFFFFF;
}

/* Back to Blog */
.back-to-blog {
    background-color: #FAFAFA;
    padding: 40px 20px;
    text-align: center;
}

.back-link {
    font-family: 'Poppins-Medium';
    font-size: 16px;
    color: #4361EE;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

/* Responsive Design */

@media (max-width: 1050px) {
    .article-content-wrapper {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        order: 2;
    }

    .article-main-title {
        font-size: 40px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .cta-content h2 {
        font-size: 30px;
    }
}

@media (max-width: 750px) {
    .article-header-container {
        padding: 120px 20px 60px;
    }

    .article-main-title {
        font-size: 32px;
    }

    .article-meta {
        font-size: 13px;
    }

    .article-featured-image-section {
        padding: 40px 20px;
    }

    .article-content-section {
        padding: 50px 20px;
    }

    .article-body {
        padding: 30px 20px;
    }

    .article-body h2 {
        font-size: 26px;
    }

    .article-body h3 {
        font-size: 20px;
    }

    .article-body p {
        font-size: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 20px;
    }

    .section-header .vertical-line {
        height: 60px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .related-articles-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-cta-section {
        padding: 60px 20px;
    }

    .cta-content h2 {
        font-size: 26px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .article-button-container {
        flex-direction: column;
        align-items: center;
    }

    .customButton {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 450px) {
    .article-header-container {
        padding: 100px 15px 50px;
    }

    .article-main-title {
        font-size: 26px;
    }

    .article-meta {
        font-size: 12px;
        flex-direction: column;
        gap: 8px;
    }

    .meta-separator {
        display: none;
    }

    .article-featured-image-section {
        padding: 30px 15px;
    }

    .article-content-section {
        padding: 40px 15px;
    }

    .article-body {
        padding: 25px 15px;
    }

    .article-body h2 {
        font-size: 22px;
    }

    .article-body h3 {
        font-size: 18px;
    }

    .article-body p {
        font-size: 15px;
    }

    .sidebar-card {
        padding: 20px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .cta-content h2 {
        font-size: 22px;
    }

    .cta-content p {
        font-size: 15px;
    }

    .customButton {
        font-size: 12px;
        padding: 12px 25px;
    }
}
