/* 
* BLOG CSS
* Portfolio Cécilia Remark - SEO Manager
*/

/* Imports */
@import url('variables.css');

/* ====== Article Page Styles ====== */

/* Article Header */
.article-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: var(--header-height);
}

.article-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-12);
    color: var(--white);
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-4);
    font-size: var(--text-sm);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.article-meta-icon {
    width: 18px;
    height: 18px;
}

.article-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--spacing-4);
    line-height: 1.2;
    color: #ffffff;
}

.article-subtitle {
    font-size: var(--text-xl);
    max-width: 800px;
    opacity: 0.9;
    line-height: 1.5;
}

/* Article Content */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-12) var(--spacing-6);
    color: var(--dark-gray);
    justify-content: left;
}

.article-content p {
    margin-bottom: var(--spacing-6);
    line-height: 1.8;
    font-size: var(--text-base);
}

.article-content h2 {
    font-size: var(--text-2xl);
    margin-top: var(--spacing-12);
    margin-bottom: var(--spacing-6);
    color: var(--vert-profond);
    font-weight: var(--font-bold);
    line-height: 1.3;
}

.article-content h3 {
    font-size: var(--text-xl);
    margin-top: var(--spacing-8);
    margin-bottom: var(--spacing-4);
    color: var(--vert-profond);
    font-weight: var(--font-semibold);
    line-height: 1.3;
}

.article-content ul, 
.article-content ol {
    margin-bottom: var(--spacing-6);
    padding-left: var(--spacing-6);
    list-style-position: outside;
}

.article-content li {
    margin-bottom: var(--spacing-2);
    line-height: 1.7;
}

.article-content img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin: var(--spacing-8) 0;
    box-shadow: var(--shadow-md);
}

.article-content blockquote {
    border-left: 4px solid var(--rose-doux);
    padding: var(--spacing-4) var(--spacing-6);
    margin: var(--spacing-8) 0;
    background-color: rgba(213, 177, 200, 0.1);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--gray);
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content code {
    background-color: var(--light-gray);
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius-md);
    font-family: monospace;
    font-size: 0.9em;
}

.article-content pre {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: var(--spacing-4);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: var(--spacing-6) 0;
}

.article-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    display: block;
    line-height: 1.6;
}

.article-content a {
    color: var(--vert-profond);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: var(--transition-normal);
}

.article-content a:hover {
    color: var(--rose-doux);
    text-decoration-thickness: 2px;
}

.article-content strong {
    font-weight: var(--font-bold);
    color: var(--vert-profond-dark);
}

/* Author Section */
.article-author {
    display: flex;
    align-items: center;
    margin-top: var(--spacing-12);
    padding-top: var(--spacing-8);
    border-top: 1px solid var(--light-gray);
    gap: var(--spacing-4);
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--vert-eau);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--vert-profond);
    margin-bottom: var(--spacing-2);
}

.author-bio {
    font-size: var(--text-sm);
    color: var(--gray);
    margin-bottom: var(--spacing-3);
    line-height: 1.6;
}

.author-social {
    display: flex;
    gap: var(--spacing-3);
}

.author-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--vert-eau);
    color: var(--vert-profond);
    transition: var(--transition-normal);
}

.author-social-link:hover {
    background-color: var(--rose-doux);
    color: var(--white);
    transform: translateY(-2px);
}

/* Related Articles Section */
.related-articles {
    background-color: var(--vert-eau);
    background-color: rgba(215, 233, 230, 0.2);
    padding: var(--spacing-16) 0;
}

.related-articles .section-title {
    text-align: center;
    margin-bottom: var(--spacing-12);
    position: relative;
}

.related-articles .section-title span {
    color: var(--vert-profond);
}

.related-articles .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--rose-doux);
    margin: var(--spacing-4) auto 0;
}

/* Comments Section */
.comments-section {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-16) var(--spacing-6);
}

.comments-title {
    font-size: var(--text-2xl);
    color: var(--vert-profond);
    margin-bottom: var(--spacing-8);
    text-align: center;
}

.comment {
    border-bottom: 1px solid var(--light-gray);
    padding: var(--spacing-6) 0;
    display: flex;
    gap: var(--spacing-4);
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--vert-eau);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    color: var(--vert-profond);
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: var(--font-semibold);
    color: var(--vert-profond);
    margin-bottom: var(--spacing-2);
}

.comment-date {
    font-size: var(--text-sm);
    color: var(--gray);
    margin-bottom: var(--spacing-3);
}

.comment-text {
    color: var(--dark-gray);
    line-height: 1.6;
}

.comment-form {
    margin-top: var(--spacing-8);
}

.comment-form-title {
    font-size: var(--text-xl);
    color: var(--vert-profond);
    margin-bottom: var(--spacing-6);
}

/* Article Table of Contents */
.article-toc {
    background-color: var(--vert-eau);
    background-color: rgba(215, 233, 230, 0.3);
    padding: var(--spacing-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-8);
}

.toc-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--vert-profond);
    margin-bottom: var(--spacing-4);
}

.toc-list {
    list-style-type: none;
    padding-left: 0;
}

.toc-item {
    margin-bottom: var(--spacing-2);
}

.toc-link {
    color: var(--vert-profond);
    text-decoration: none;
    display: block;
    padding: var(--spacing-1) 0;
    transition: var(--transition-normal);
}

.toc-link:hover {
    color: var(--rose-doux);
    transform: translateX(3px);
}

.toc-sublist {
    list-style-type: none;
    padding-left: var(--spacing-4);
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    margin-top: var(--spacing-8);
    gap: var(--spacing-4);
}

.share-title {
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--dark-gray);
}

.share-buttons {
    display: flex;
    gap: var(--spacing-2);
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    transition: var(--transition-normal);
}

.share-button.facebook:hover {
    background-color: #1877f2;
    color: white;
}

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

.share-button.linkedin:hover {
    background-color: #0077b5;
    color: white;
}

.share-button.email:hover {
    background-color: var(--rose-doux);
    color: white;
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 40;
}

.reading-progress-bar {
    height: 100%;
    background-color: var(--rose-doux);
    width: 0%;
    transition: width 0.1s ease;
}

/* Responsive Styles for Blog */
@media (max-width: 767px) {
    .article-header {
        height: 300px;
    }
    
    .article-header-overlay {
        padding: var(--spacing-6);
    }
    
    .article-title {
        font-size: var(--text-3xl);
    }
    
    .article-subtitle {
        font-size: var(--text-base);
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-2);
    }
    
    .article-content {
        padding: var(--spacing-8) var(--spacing-4);
    }
    
    .article-content h2 {
        font-size: var(--text-xl);
    }
    
    .article-content h3 {
        font-size: var(--text-lg);
    }
    
    .article-author {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .author-image {
        margin: 0 auto var(--spacing-4);
    }
    
    .author-social {
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .article-header {
        height: 350px;
    }
    
    .article-header-overlay {
        padding: var(--spacing-8);
    }
    
    .article-content {
        padding: var(--spacing-10) var(--spacing-6);
    }
}

@media (min-width: 1024px) {
    .article-content {
        font-size: var(--text-lg);
    }
    
    .article-content p {
        line-height: 1.9;
    }
    
    .article-title {
        font-size: var(--text-5xl);
    }
    
    .article-subtitle {
        font-size: var(--text-2xl);
    }
}