﻿body {
}

/* ===== BLOG DETAIL PAGE STYLES ===== */

/* Blog Detail Container */
.blog-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 15px;
}

/* Breadcrumb */
.blog-breadcrumb {
    margin-bottom: 30px;
}

.blog-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.blog-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #999;
    font-weight: bold;
}

.blog-breadcrumb .breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-breadcrumb .breadcrumb-item a:hover {
    color: #e8950f;
}

.blog-breadcrumb .breadcrumb-item.active {
    color: #666;
}

/* Blog Article */
.blog-article {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
}

/* Blog Header */
.blog-header {
    padding: 40px 50px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.blog-category-badge {
    margin-bottom: 20px;
}

.blog-category-badge .category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 169, 20, 0.3);
}

.blog-category-badge .category-link:hover {
    background: #e8950f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 169, 20, 0.4);
    color: white;
}

.blog-title {
    font-family: 'DM Serif Text', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: 25px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #FFB84D);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
}

.blog-date {
    font-size: 0.9rem;
    color: #666;
}

.blog-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 169, 20, 0.3);
}

/* Blog Image */
.blog-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blog Content */
.blog-content {
    padding: 50px;
}

.blog-detail-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.blog-detail-text p {
    margin-bottom: 20px;
}

.blog-detail-text h2,
.blog-detail-text h3,
.blog-detail-text h4 {
    font-family: 'DM Serif Text', serif;
    color: var(--dark-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-detail-text h2 {
    font-size: 1.8rem;
}

.blog-detail-text h3 {
    font-size: 1.5rem;
}

.blog-detail-text h4 {
    font-size: 1.3rem;
}

.blog-detail-text blockquote {
    border-left: 4px solid var(--primary-color);
    background: #f8f9fa;
    padding: 20px 25px;
    margin: 25px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.blog-detail-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Blog Footer */
.blog-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 30px;
    margin-top: 40px;
}

.blog-tags {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-right: 5px;
}

.tag {
    background: #f8f9fa;
    color: #666;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.blog-share-section {
    text-align: center;
}

.share-title {
    font-family: 'DM Serif Text', serif;
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 130px;
    justify-content: center;
}

.twitter-share {
    background: #1DA1F2;
    color: white;
}

.twitter-share:hover {
    background: #0d8bd9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.facebook-share {
    background: #4267B2;
    color: white;
}

.facebook-share:hover {
    background: #365899;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 103, 178, 0.3);
}

.linkedin-share {
    background: #0077B5;
    color: white;
}

.linkedin-share:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.whatsapp-share {
    background: #25D366;
    color: white;
}

.whatsapp-share:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.copy-link {
    background: #6c757d;
    color: white;
}

.copy-link:hover {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Related Blogs Section */
.related-blogs-section {
    margin-bottom: 50px;
}

.section-title {
    font-family: 'DM Serif Text', serif;
    font-size: 2rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 30px;
}

.related-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.related-blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.related-empty {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #191919 0%, #2c2c2c 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
    text-align: center;
    color: white;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-icon {
    flex-shrink: 0;
}

.newsletter-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.newsletter-text {
    flex: 1;
    text-align: left;
}

.newsletter-text h3 {
    font-family: 'DM Serif Text', serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.newsletter-form {
    flex: 1;
}

.newsletter-form .input-group {
    max-width: 400px;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px 0 0 25px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 169, 20, 0.25);
    color: white;
}

.newsletter-form .btn {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 0 25px 25px 0;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-form .btn:hover {
    background: #e8950f;
    border-color: #e8950f;
}

/* Error State */
.error-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.error-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
}

.error-icon {
    margin-bottom: 20px;
}

.error-icon i {
    font-size: 4rem;
    color: #dc3545;
}

.error-content h1 {
    font-family: 'DM Serif Text', serif;
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.error-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Share Modal */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 25px;
}

.modal-title {
    font-family: 'DM Serif Text', serif;
    color: var(--dark-color);
}

.modal-body {
    padding: 25px;
}

.share-url label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
    display: block;
}

.share-url .input-group .form-control {
    border: 1px solid #e9ecef;
    background: #f8f9fa;
}

.share-url .btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.share-url .btn:hover {
    background: #e8950f;
    border-color: #e8950f;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .blog-detail-container {
        padding: 30px 15px;
    }
    
    .blog-header {
        padding: 30px 40px 25px;
    }
    
    .blog-title {
        font-size: 2.4rem;
    }
    
    .blog-content {
        padding: 40px;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .newsletter-text {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .blog-detail-container {
        padding: 20px 15px;
    }
    
    .blog-header {
        padding: 25px 30px 20px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .blog-actions {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .blog-image-container {
        height: 300px;
    }
    
    .blog-content {
        padding: 30px;
    }
    
    .blog-detail-text {
        font-size: 1.05rem;
        line-height: 1.7;
    }
    
    .share-buttons {
        gap: 10px;
    }
    
    .share-btn {
        min-width: auto;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .related-blogs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .newsletter-section {
        padding: 30px 25px;
    }
    
    .newsletter-text h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .blog-header {
        padding: 20px 25px 15px;
    }
    
    .blog-title {
        font-size: 1.8rem;
    }
    
    .blog-content {
        padding: 25px;
    }
    
    .blog-detail-text {
        font-size: 1rem;
    }
    
    .author-avatar {
        width: 45px;
        height: 45px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-btn {
        width: 100%;
        padding: 12px;
    }
    
    .newsletter-section {
        padding: 25px 20px;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: 25px;
    }
}
