/* Article Styles */

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

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

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

.breadcrumb a:hover {
    color: #764ba2;
}

.breadcrumb-separator {
    color: #999;
}

.breadcrumb-current {
    color: #666;
    font-weight: 500;
}

/* Article Layout */
.article-main {
    padding: 40px 0;
    background: #f8f9fa;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.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: 40px 40px 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.article-category {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.article-date {
    color: #666;
    font-weight: 500;
}

.article-read-time {
    color: #999;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
}

.article-excerpt {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.article-featured-image {
    margin: 0 -40px;
}

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

/* Article Body */
.article-body {
    padding: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.article-body .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.article-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #333;
}

.article-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 25px 0 10px;
    color: #333;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

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

.inline-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.inline-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Step Guide */
.step-guide {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.step-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.step-content ol {
    margin: 0;
    padding-left: 20px;
}

.step-content li {
    margin-bottom: 10px;
    font-weight: 500;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.highlight-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: white;
}

.highlight-box p {
    margin-bottom: 0;
    opacity: 0.95;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-item h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #333;
}

.feature-item p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    margin: 30px 0;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.faq-item h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.1rem;
}

.faq-item p {
    margin: 0;
    color: #666;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.cta-section h3 {
    margin: 0 0 15px;
    font-size: 1.8rem;
    color: white;
}

.cta-section p {
    margin: 0 0 25px;
    opacity: 0.9;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

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

.article-tags {
    margin-bottom: 25px;
}

.tags-label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.tag {
    display: inline-block;
    background: #e9ecef;
    color: #666;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 5px 5px 0;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #667eea;
    color: white;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-weight: 600;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

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

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

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

.share-btn.copy {
    background: #6c757d;
    color: white;
}

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

/* Table of Contents */
.toc-widget {
    position: sticky;
    top: 20px;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.table-of-contents a:hover {
    color: #667eea;
}

/* Related Posts */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-post {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.related-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-post-content h4 {
    margin: 0 0 5px;
    font-size: 0.9rem;
    line-height: 1.3;
}

.related-post-content a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-content a:hover {
    color: #667eea;
}

.related-post-date {
    font-size: 0.8rem;
    color: #999;
}

/* Download Widget */
.download-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.download-widget .widget-title::after {
    background: rgba(255,255,255,0.3);
}

.download-widget p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.quick-download {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-download input {
    padding: 12px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.9rem;
}

.quick-download input::placeholder {
    color: rgba(255,255,255,0.7);
}

.quick-download input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
}

.quick-download button {
    padding: 12px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-download button:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-sidebar {
        order: -1;
    }
    
    .sidebar-widget {
        display: inline-block;
        width: calc(50% - 15px);
        margin-right: 30px;
        vertical-align: top;
    }
    
    .sidebar-widget:nth-child(even) {
        margin-right: 0;
    }
    
    .toc-widget {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-header,
    .article-body,
    .article-footer {
        padding: 25px;
    }
    
    .article-featured-image {
        margin: 0 -25px;
    }
    
    .article-featured-image img {
        height: 250px;
    }
    
    .step-guide {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sidebar-widget {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-excerpt {
        font-size: 1.1rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body .lead {
        font-size: 1.1rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .breadcrumb .container {
        flex-wrap: wrap;
    }
}