/* ===== ARTICLE PAGE STYLES - MOBILE FIRST ===== */

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: #6c757d;
    font-weight: bold;
}

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

.breadcrumb a:hover {
    color: #357abd;
    text-decoration: underline;
}

.breadcrumb .current {
    color: #6c757d;
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Article Main */
.article-main {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 70vh;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Article Content */
.article-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Article Header */
.article-header {
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-category {
    background: #4a90e2;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-date,
.article-views {
    color: #6c757d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

.article-excerpt {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #4a90e2;
    border-radius: 0 8px 8px 0;
}

/* Author Info */
.article-author {
    margin-top: 1.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.author-details strong {
    display: block;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-details span {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Article Body */
.article-body {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.article-body h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

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

.article-body p {
    margin-bottom: 1.2rem;
}

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

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

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #4a90e2;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

.article-body blockquote::before {
    content: '"';
    font-size: 3rem;
    color: #4a90e2;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    line-height: 1;
}

.article-body blockquote p {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.article-body blockquote footer {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: normal;
    font-weight: 500;
}

.article-body .author-signature {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #e3f2fd;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #bbdefb;
}

/* Article Footer */
.article-footer {
    padding: 2rem;
    border-top: 1px solid #e9ecef;
}

.article-tags h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #bbdefb;
}

/* Article Sidebar */
.article-sidebar {
    display: grid;
    gap: 1.5rem;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.sidebar-widget h3 i {
    color: #4a90e2;
    margin-right: 0.5rem;
}

/* Author Card */
.author-card-content {
    text-align: center;
}

.author-card-avatar {
    width: 80px;
    height: 80px;
    background: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1rem auto;
}

.author-card h3 {
    border: none;
    padding: 0;
    margin-bottom: 0.5rem;
}

.author-title {
    color: #4a90e2;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.author-description {
    color: #555;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.author-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Table of Contents */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: #555;
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.toc-list a:hover {
    color: #4a90e2;
    border-bottom-color: #4a90e2;
}

.toc-h2 {
    font-weight: 500;
}

.toc-h3 {
    padding-left: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.no-toc {
    color: #6c757d;
    font-style: italic;
    margin: 0;
}

/* Quick Actions */
.actions-list {
    display: grid;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: #e9ecef;
    color: #4a90e2;
    transform: translateY(-1px);
}

.action-btn i {
    color: #4a90e2;
    width: 18px;
    text-align: center;
}

.action-btn span {
    font-weight: 500;
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 2px solid #e9ecef;
}

.related-articles h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.related-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-2px);
}

.related-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.related-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card h3 a:hover {
    color: #4a90e2;
}

.related-card p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.related-card time {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Call to Action */
.article-cta {
    margin-top: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    overflow: hidden;
    color: white;
}

.cta-content {
    padding: 3rem 2rem;
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.cta-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.cta-actions .btn {
    min-width: 200px;
}

/* ===== TABLET STYLES ===== */
@media (min-width: 768px) {
    .breadcrumb .current {
        max-width: none;
    }
    
    .article-layout {
        grid-template-columns: 1fr 300px;
        gap: 3rem;
    }
    
    .article-title {
        font-size: 2.5rem;
    }
    
    .article-body {
        font-size: 1.15rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .cta-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .article-sidebar {
        position: sticky;
        top: 2rem;
    }
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 1024px) {
    .article-main {
        padding: 3rem 0;
    }
    
    .article-layout {
        grid-template-columns: 1fr 350px;
        gap: 4rem;
    }
    
    .article-header {
        padding: 3rem;
    }
    
    .article-body {
        padding: 3rem;
        font-size: 1.2rem;
    }
    
    .article-footer {
        padding: 3rem;
    }
    
    .related-articles {
        margin-top: 4rem;
    }
}

/* ===== MOBILE SPECIFIC ===== */
@media (max-width: 767px) {
    .article-main {
        padding: 1.5rem 0;
    }
    
    .article-header {
        padding: 1.5rem;
    }
    
    .article-body {
        padding: 1.5rem;
        font-size: 1.05rem;
    }
    
    .article-footer {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .author-avatar {
        width: 60px;
        height: 60px;
    }
    
    .article-body h2 {
        font-size: 1.4rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
    
    .cta-content {
        padding: 2rem 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .related-articles h2 {
        font-size: 1.5rem;
    }
    
    .sidebar-widget {
        padding: 1.25rem;
    }
    
    .article-excerpt {
        font-size: 1rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .breadcrumb,
    .article-sidebar,
    .related-articles,
    .article-cta {
        display: none;
    }
    
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .article-body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .article-title {
        font-size: 18pt;
        page-break-after: avoid;
    }
    
    .article-body h2,
    .article-body h3 {
        page-break-after: avoid;
    }
} 