/* ===================================
   Article Page Styles
   =================================== */

.article-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Article Header */
.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px 60px;
    text-align: center;
    color: white;
}

.article-header-content {
    max-width: 900px;
    margin: 0 auto;
}

.article-category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 1rem;
    opacity: 0.95;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.article-date,
.article-reading-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Featured Image */
.article-featured-image {
    max-width: 1200px;
    margin: -40px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Article Content Wrapper */
.article-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* Article Content */
.article-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #334155;
}

.article-intro {
    font-size: 1.35rem;
    font-weight: 500;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8fafc;
    border-left: 5px solid #6366f1;
    border-radius: 10px;
}

.article-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 50px 0 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e2e8f0;
}

.article-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin: 35px 0 20px;
}

.article-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #334155;
    margin: 25px 0 15px;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content ul,
.article-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.article-content strong {
    color: #1e293b;
    font-weight: 700;
}

/* Blockquote */
.article-content blockquote {
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    border-left: 5px solid #6366f1;
    padding: 30px 40px;
    margin: 40px 0;
    border-radius: 15px;
    position: relative;
}

.article-content blockquote .fa-quote-left {
    font-size: 3rem;
    color: #6366f1;
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 20px;
}

.article-content blockquote p {
    font-size: 1.25rem;
    font-style: italic;
    color: #1e293b;
    margin: 0 0 15px 0;
    padding-left: 40px;
}

.article-content blockquote cite {
    display: block;
    text-align: right;
    font-size: 1rem;
    color: #6366f1;
    font-weight: 600;
    font-style: normal;
}

/* Highlight Box */
.article-highlight {
    background: white;
    border: 2px solid #e0e7ff;
    border-radius: 15px;
    padding: 30px;
    margin: 35px 0;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.article-highlight h3 {
    color: #6366f1;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-highlight h3 i {
    font-size: 1.8rem;
}

/* Stats */
.article-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.stat-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
}

/* Warning Box */
.article-warning {
    background: #fef3c7;
    border-left: 5px solid #f59e0b;
    padding: 30px;
    margin: 35px 0;
    border-radius: 10px;
}

.article-warning h3 {
    color: #92400e;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-warning ul {
    margin-bottom: 0;
}

/* Future Items */
.article-future {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 35px 0;
}

.future-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.future-item:hover {
    border-color: #6366f1;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
    transform: translateY(-5px);
}

.future-item i {
    font-size: 3rem;
    color: #6366f1;
    margin-bottom: 15px;
}

.future-item h4 {
    margin: 15px 0 10px;
    font-size: 1.3rem;
}

.future-item p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

/* Article Footer */
.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.article-tags i {
    color: #6366f1;
    font-size: 1.2rem;
}

.tag {
    background: #e0e7ff;
    color: #6366f1;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-share span {
    font-weight: 600;
    color: #475569;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Author Bio */
.article-author-bio {
    background: #f8fafc;
    border-radius: 20px;
    padding: 35px;
    margin-top: 50px;
    display: flex;
    gap: 25px;
    align-items: start;
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #6366f1;
    flex-shrink: 0;
}

.author-bio-content h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin: 0 0 10px 0;
}

.author-bio-content p {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* Related Articles */
.related-articles-section {
    background: #f8fafc;
    padding: 80px 20px;
    margin-top: 80px;
}

.related-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    color: #1e293b;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.related-title i {
    color: #f59e0b;
    font-size: 2.5rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.related-article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.related-article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.related-article-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-article-card:hover .related-article-image img {
    transform: scale(1.1);
}

.related-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #6366f1;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.related-article-content {
    padding: 25px;
}

.related-article-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.related-article-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.9rem;
}

.related-article-meta i {
    color: #6366f1;
}

/* Back to Blog */
.back-to-blog {
    text-align: center;
    padding: 60px 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #6366f1;
    border: 2px solid #6366f1;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .article-title {
        font-size: 2.5rem;
    }

    .article-meta {
        gap: 15px;
        font-size: 0.95rem;
    }

    .article-content {
        font-size: 1.05rem;
    }

    .article-intro {
        font-size: 1.2rem;
        padding: 20px;
    }

    .article-content h2 {
        font-size: 1.8rem;
    }

    .article-stats {
        grid-template-columns: 1fr;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-author-bio {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 60px 15px 40px;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-highlight,
    .article-warning {
        padding: 20px;
    }

    .article-future {
        grid-template-columns: 1fr;
    }
}