/* News Detail Page Styles */
.news-detail-container {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb-section {
    background: white;
    padding: 15px 0;
    margin-top: 70px; /* Reduced top margin for better spacing */
    border-bottom: 1px solid #e1e5e9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    margin: 0;
}

.breadcrumb-item {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: #667eea;
}

.breadcrumb-item.active {
    color: #2c3e50;
    font-weight: 600;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: #6c757d;
    font-size: 0.8rem;
}

/* Article Header */
.article-header {
    background: white;
    padding: 40px 0 30px;
    border-bottom: 1px solid #e1e5e9;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.category-badge:hover {
    transform: translateY(-2px);
    color: white;
}

.article-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat i {
    font-size: 0.8rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 18px;
    max-width: 800px;
}

.article-excerpt {
    font-size: 1.2rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
}

.article-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-name {
    font-weight: 600;
    color: #2c3e50;
}

.publish-date {
    font-size: 0.9rem;
    color: #6c757d;
}

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

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

.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;
    font-size: 0.9rem;
}

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

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

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

.share-btn.email {
    background: #ea4335;
}

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

/* Featured Image */
.featured-image-section {
    background: white;
    padding: 40px 0;
}

.featured-image-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-content-section {
    padding: 60px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 40px;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-body h1 { font-size: 2rem; }
.content-body h2 { font-size: 1.8rem; }
.content-body h3 { font-size: 1.6rem; }
.content-body h4 { font-size: 1.4rem; }
.content-body h5 { font-size: 1.2rem; }
.content-body h6 { font-size: 1.1rem; }

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

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

.content-body li {
    margin-bottom: 10px;
}

.content-body blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #6c757d;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 10px 10px 0;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.content-body a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.content-body a:hover {
    border-bottom-color: #667eea;
}

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

.tags-section {
    margin-bottom: 30px;
}

.tags {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: #6c757d;
}

.tag {
    background: #f8f9fa;
    color: #6c757d;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #e1e5e9;
}

.article-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #e1e5e9;
    background: white;
    color: #6c757d;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.action-btn.liked {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.action-btn.bookmarked {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

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

.sidebar-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Related News */
.related-news {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

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

.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 {
    flex: 1;
}

.related-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

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

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

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

/* Recent News */
.recent-news {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.recent-item {
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
}

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

.recent-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recent-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-title a:hover {
    color: #667eea;
}

.recent-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.sidebar-action {
    text-align: center;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.newsletter-section .sidebar-title {
    color: white;
}

.newsletter-section .sidebar-title::after {
    background: white;
}

.newsletter-text {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-input {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    color: #2c3e50;
}

.newsletter-input:focus {
    outline: none;
    background: white;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2.2rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-author {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-share {
        align-self: stretch;
        justify-content: center;
    }
    
    .article-content {
        padding: 25px;
    }
    
    .content-body {
        font-size: 1rem;
    }
    
    .article-actions {
        justify-content: center;
    }
    
    .sidebar-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 40px 0 30px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-excerpt {
        font-size: 1.1rem;
    }
    
    .featured-image-section {
        padding: 20px 0;
    }
    
    .article-content-section {
        padding: 40px 0;
    }
    
    .content-body h1 { font-size: 1.6rem; }
    .content-body h2 { font-size: 1.4rem; }
    .content-body h3 { font-size: 1.3rem; }
    .content-body h4 { font-size: 1.2rem; }
    .content-body h5 { font-size: 1.1rem; }
    .content-body h6 { font-size: 1rem; }
}

/* Print Styles */
@media print {
    .news-detail-container {
        background: white;
    }
    
    .breadcrumb-section,
    .social-share,
    .article-sidebar,
    .article-actions {
        display: none;
    }
    
    .article-header {
        border-bottom: 2px solid #000;
    }
    
    .article-content {
        box-shadow: none;
        border: 1px solid #000;
    }
} 