/* Article Detail Page Styles */

/* Main Layout */
.article-detail-container {
    
    margin: 0 auto;
    padding: 2rem 1rem;
}
.breadcrumb{
    font-size:18px;
}

.article-grid {
    margin-bottom: 2rem;
}

/* Remove grid layout, use Bootstrap columns instead */

/* Column spacing */
.col-lg-8 {
    margin-bottom: 2rem;
}

.col-lg-4 {
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .col-lg-8 {
        padding-right: 1rem;
        margin-bottom: 0;
    }
    
    .col-lg-4 {
        padding-left: 1rem;
        margin-bottom: 0;
    }
}

/* Article Content */
.article-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    color: white;
    text-decoration: none;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.875rem;
    }
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 1.5rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .article-featured-image {
        height: 250px;
    }
}

.article-body {
    padding: 2rem;
    line-height: 1.8;
    color: #374151;
}

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

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: #111827;
}

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

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Tags */
.article-tags {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
}

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

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

.tag:hover {
    background: #e5e7eb;
    color: #111827;
    text-decoration: none;
}

/* Social Share */
.social-share {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.social-share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

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

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

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

.social-btn.copy {
    background: #6b7280;
    color: white;
}

/* Comments Section */
.comments-section {
    padding: 2rem;
    border-top: 1px solid #e5e7eb;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
}

.comment-form {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Comments List */
.comments-list {
    space-y: 1.5rem;
}

.comment {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.comment-author {
    font-weight: 600;
    color: #111827;
}

.comment-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.comment-content {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-action {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.comment-action:hover {
    color: #3b82f6;
}

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

.sidebar-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidebar-header {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.sidebar-content {
    padding: 1.5rem;
}

/* Related Articles */
.related-article {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.related-article:hover {
    background: #f9fafb;
    transform: translateX(4px);
}

.related-article:last-child {
    margin-bottom: 0;
}

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

.related-content {
    flex: 1;
    min-width: 0;
}

.related-title {
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.related-title a:hover {
    color: #3b82f6;
}

.related-date {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Quick Share */
.quick-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-share-btn {
    flex: 1;
    min-width: 0;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    text-decoration: none;
    text-align: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.quick-share-btn:hover {
    background: #f3f4f6;
    color: #111827;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #10b981;
}

.notification.error {
    background: #ef4444;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-detail-container {
        padding: 1rem;
    }
    
    .article-header,
    .article-body,
    .article-tags,
    .social-share,
    .comments-section {
        padding: 1.5rem;
    }
    
    .social-share-buttons {
        justify-content: center;
    }
    
    .quick-share-buttons {
        flex-direction: column;
    }
    
    .quick-share-btn {
        flex: none;
    }
}