/* Single Article Page Styles */

/* Article Hero Section */
.article-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
    color: white;
    overflow: hidden;
}

.article-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.article-hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 58, 138, 0.3) 0%,
        rgba(30, 58, 138, 0.7) 70%,
        rgba(30, 58, 138, 0.9) 100%
    );
    z-index: 1;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.article-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.article-hero .breadcrumb a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-hero .breadcrumb a:hover {
    color: #d4af37;
}

.article-hero .breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.7;
}

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

.article-category {
    background: #d4af37;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

#articleTitleDisplay {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.article-excerpt {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-share span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Article Content Section */
.article-content-section {
    padding: 4rem 0;
    background: white;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
}

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

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.article-body h2 {
    font-size: 1.8rem;
    color: #1e3a8a;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.article-body h3 {
    font-size: 1.4rem;
    color: #1e3a8a;
    margin: 1.5rem 0 0.8rem;
    font-weight: 600;
}

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

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

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

.article-body blockquote {
    border-left: 4px solid #d4af37;
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
    background: #f8fafc;
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    border-radius: 0 8px 8px 0;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.article-body a {
    color: #d4af37;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-body a:hover {
    color: #b8941f;
}

/* Article Tags */
.article-tags {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

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

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

.tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #d4af37;
    color: white;
}

/* Social Share Bottom */
.article-share-bottom {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    text-align: center;
}

.article-share-bottom h4 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.social-share-large {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

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

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

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

.share-btn-large.email {
    background: #6b7280;
}

.share-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.sidebar-widget h4 {
    color: #1e3a8a;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

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

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.author-text h5 {
    color: #1e3a8a;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.author-text p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

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

.related-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.related-item:hover {
    transform: translateX(5px);
}

.related-image {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content h6 {
    color: #1e3a8a;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

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

/* Newsletter Widget */
.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-newsletter-form input {
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
}

.sidebar-newsletter-form input:focus {
    outline: none;
    border-color: #d4af37;
}

.sidebar-newsletter-form button {
    justify-content: center;
}

/* Contact Widget */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #666;
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f8fafc;
    color: #1e3a8a;
}

.contact-item i {
    color: #d4af37;
    width: 20px;
    font-size: 1.1rem;
}

/* More Articles Section */
.more-articles-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.more-articles-section h2 {
    text-align: center;
    color: #1e3a8a;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.more-articles-section .text-center {
    text-align: center;
    margin-top: 3rem;
}

/* Loading and Error States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: #1e3a8a;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.loading-spinner p {
    font-size: 1.1rem;
    margin: 0;
}

.article-not-found {
    padding: 8rem 0 4rem;
    text-align: center;
    background: #f8fafc;
}

.not-found-content i {
    font-size: 5rem;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.not-found-content h2 {
    color: #1e3a8a;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.not-found-content p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .article-sidebar {
        position: static;
        order: -1;
    }
    
    .sidebar-widget {
        display: none;
    }
    
    .sidebar-widget.newsletter-widget {
        display: block;
    }
}

@media (max-width: 768px) {
    .article-hero {
        min-height: 50vh;
        padding-bottom: 2rem;
    }
    
    #articleTitleDisplay {
        font-size: 2rem;
    }
    
    .article-excerpt {
        font-size: 1rem;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .social-share {
        width: 100%;
    }
    
    .article-content-section {
        padding: 2rem 0;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .social-share-large {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .article-hero {
        padding-bottom: 1.5rem;
    }
    
    #articleTitleDisplay {
        font-size: 1.5rem;
    }
    
    .article-excerpt {
        font-size: 0.9rem;
    }
    
    .social-share {
        flex-wrap: wrap;
    }
    
    .share-btn {
        width: 35px;
        height: 35px;
    }
}