/* Article Page Specific Styles */

.main-content {
    min-height: calc(100vh - 140px);
}

/* Article Header */
.article-header {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e2e8f0 100%);
    padding: 2rem 0 3rem;
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-light);
}

.article-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.article-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.article-image {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Article Content */
.article-content {
    background: var(--white);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.article-body {
    max-width: none;
}

.article-intro {
    margin-bottom: 3rem;
}

.lead {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 0;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 3rem 0 1.5rem;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem;
    line-height: 1.4;
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.article-body li {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.article-body li strong {
    color: var(--text-dark);
    font-weight: 600;
}

.article-body blockquote {
    background: var(--light-teal);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-dark);
    border-radius: 0 8px 8px 0;
}

.article-body blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1;
    float: left;
    margin-right: 0.5rem;
    margin-top: -0.5rem;
}

.article-cta {
    background: var(--gradient-warm);
    color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
}

.article-cta h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.article-cta p {
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 2rem;
}

.article-cta .btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
}

.article-cta .btn:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.sidebar-section {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.sidebar-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Related Articles */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-article {
    display: block;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.related-article:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-color);
}

.related-article h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.share-btn.twitter {
    background: #1da1f2;
    color: var(--white);
}

.share-btn.facebook {
    background: #4267b2;
    color: var(--white);
}

.share-btn.linkedin {
    background: #0077b5;
    color: var(--white);
}

.share-btn.copy {
    background: var(--primary-color);
    color: var(--white);
}

.share-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Author Info */
.author-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.author-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.author-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .sidebar-section {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .meta-item {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .article-body h2 {
        font-size: 1.8rem;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
    }
    
    .lead {
        font-size: 1.2rem;
    }
    
    .article-body p,
    .article-body li {
        font-size: 1rem;
    }
    
    .article-cta {
        padding: 2rem;
    }
    
    .sidebar-section {
        padding: 1.5rem;
    }
    
    .share-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .share-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-image img {
        height: 250px;
    }
    
    .article-body {
        padding: 0 1rem;
    }
    
    .article-body ul,
    .article-body ol {
        padding-left: 1.5rem;
    }
    
    .article-body blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .article-cta {
        padding: 1.5rem;
    }
    
    .sidebar-section {
        padding: 1rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        align-self: center;
    }
}

/* Print Styles */
@media print {
    .article-sidebar,
    .article-cta {
        display: none !important;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        color: #000 !important;
        font-size: 2rem;
    }
    
    .article-body h2,
    .article-body h3 {
        color: #000 !important;
    }
    
    .article-body p,
    .article-body li {
        color: #333 !important;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .article-body blockquote {
        background: #f5f5f5 !important;
        border-left: 4px solid #333 !important;
    }
}

/* Loading states for images */
.article-image img,
.author-avatar img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-image img.loaded,
.author-avatar img.loaded {
    opacity: 1;
}
