/* Article Show Page Styles */

/* Progress Bar */
.article-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.article-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    width: 0%;
    transition: width 0.1s ease;
}

/* Article Page Layout */
.article-page {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.article-breadcrumb {
    margin-bottom: 2rem;
}

.article-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.article-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #9ca3af;
}

.article-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: #2563eb;
}

.article-breadcrumb li[aria-current="page"] {
    color: #1a1a1a;
    font-weight: 500;
}

/* Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Article Header */
.article-header {
    margin-bottom: 2rem;
}

.article-category {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2563eb;
    margin-bottom: 1rem;
}

.article-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-initials {
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

.author-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.9375rem;
}

.article-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.reading-time {
    color: #9ca3af;
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-linkedin:hover {
    background: #0077b5;
    color: white;
}

.share-twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-facebook:hover {
    background: #1877f2;
    color: white;
}

.share-whatsapp:hover {
    background: #25d366;
    color: white;
}

/* Featured Image */
.article-featured-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video Embed */
.article-video {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Key Takeaways */
.article-takeaways {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.takeaways-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.takeaways-header svg {
    color: #2563eb;
    flex-shrink: 0;
}

.takeaways-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.takeaways-content {
    color: #374151;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Table of Contents */
.article-toc {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.toc-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin-bottom: 0.5rem;
}

.toc-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.toc-nav a:hover,
.toc-nav a.active {
    background: #eff6ff;
    color: #2563eb;
}

.toc-nav .toc-level-2 {
    padding-left: 1rem;
}

.toc-nav .toc-level-3 {
    padding-left: 1.75rem;
}

/* Article Content */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    scroll-margin-top: 100px;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 100px;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-content blockquote {
    border-left: 4px solid #2563eb;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #6b7280;
    font-style: italic;
}

.article-content a {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: #1d4ed8;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.tags-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
}

.tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #f3f4f6;
    color: #374151;
    border-radius: 20px;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* CTA Section */
.article-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.cta-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* Reactions */
.article-reactions {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.reactions-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.reactions-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reaction-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
}

.reaction-btn.active {
    background: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
}

.reaction-count {
    font-size: 0.875rem;
}

/* Newsletter */
.article-newsletter {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.newsletter-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 0.75rem;
    background: white;
    border-radius: 10px;
    padding: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.newsletter-input {
    flex: 1;
    border: none;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    outline: none;
    border-radius: 8px;
}

.btn-newsletter {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Related Articles */
.article-related {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.related-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.related-image {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.25rem;
}

.related-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.related-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.related-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card-title a:hover {
    color: #2563eb;
}

.related-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Sidebar */
.article-sidebar {
    position: relative;
}

.sidebar-toc {
    position: sticky;
    top: 100px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        display: none;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-page {
        padding-top: 1rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-share {
        width: 100%;
        justify-content: flex-start;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.75rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .article-cta {
        padding: 2rem 1.5rem;
    }
    
    .article-newsletter {
        padding: 2rem 1.5rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .btn-newsletter {
        width: 100%;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .reactions-buttons {
        flex-direction: column;
    }
    
    .reaction-btn {
        width: 100%;
        justify-content: center;
    }
}
