/* Blog Detail Styles */

/* Blog Hero Section */
.blog-hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.95) 0%, rgba(107, 52, 16, 0.98) 100%),
                url('https://images.unsplash.com/photo-1510812431401-41d2bd2722f3?w=1920') center/cover;
    position: relative;
    color: var(--white);
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.blog-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.blog-breadcrumb a:hover {
    color: var(--secondary);
}

.blog-breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.blog-hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease;
}

.blog-hero-category {
    display: inline-block;
    background: var(--secondary);
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.blog-hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.blog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.meta-item svg {
    opacity: 0.8;
}

/* Blog Detail Grid */
.blog-detail {
    padding: 80px 0;
    background: var(--light);
}

.blog-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}

/* Main Article */
.blog-article {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.article-featured-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 60px;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--dark);
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 2.2rem;
}

.article-content h3 {
    font-size: 1.8rem;
    color: var(--primary);
}

.article-content h4 {
    font-size: 1.4rem;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content ul,
.article-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.article-content strong {
    color: var(--primary);
    font-weight: 600;
}

.article-content blockquote {
    margin: 40px 0;
    padding: 30px 40px;
    background: var(--light);
    border-left: 5px solid var(--secondary);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text);
    border-radius: 0 10px 10px 0;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
}

/* Share Section */
.article-share {
    padding: 40px 60px;
    border-top: 2px solid var(--light);
    border-bottom: 2px solid var(--light);
}

.article-share h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--white);
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.pinterest {
    background: #e60023;
}

.share-btn.email {
    background: var(--primary);
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 30px;
    padding: 50px 60px;
    background: var(--light);
    margin: 0;
    align-items: start;
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--secondary);
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.author-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.author-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* Article Navigation */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px 60px;
}

.nav-prev,
.nav-next {
    padding: 30px;
    background: var(--light);
    border-radius: 10px;
    transition: all 0.3s ease;
    display: block;
}

.nav-prev:hover,
.nav-next:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.nav-prev:hover .nav-label,
.nav-next:hover .nav-label {
    color: var(--secondary);
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.nav-prev:hover .nav-title,
.nav-next:hover .nav-title {
    color: var(--white);
}

.nav-next {
    text-align: right;
}

.nav-next .nav-label {
    justify-content: flex-end;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary);
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--secondary);
}

.search-form button {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Categories Widget */
.categories-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--light);
    border-radius: 8px;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s ease;
}

.categories-list li a:hover {
    background: var(--primary);
    color: var(--white);
    padding-left: 25px;
}

.categories-list li a span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.categories-list li a:hover span {
    color: var(--secondary);
}

/* Recent Posts Widget */
.recent-post-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--light);
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-item:hover .recent-post-thumb img {
    transform: scale(1.1);
}

.recent-post-content h5 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.recent-post-item:hover .recent-post-content h5 {
    color: var(--primary);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Newsletter Widget */
.newsletter-widget p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 12px 20px;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary);
}

.newsletter-form .btn {
    width: 100%;
    padding: 12px;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 18px;
    background: var(--light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* CTA Widget */
.cta-widget {
    background: var(--gradient);
    color: var(--white);
    text-align: center;
}

.cta-widget h3 {
    color: var(--white);
    border-bottom-color: var(--secondary);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    line-height: 1.7;
}

.cta-widget .btn {
    width: 100%;
}

/* Related Posts Section */
.related-posts {
    padding: 80px 0;
    background: var(--white);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-detail-grid {
        grid-template-columns: 1fr 320px;
        gap: 40px;
    }
    
    .blog-hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 1024px) {
    .blog-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .article-content {
        padding: 40px;
    }
    
    .article-share,
    .author-bio,
    .article-navigation {
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .blog-hero-title {
        font-size: 2.2rem;
    }
    
    .blog-hero-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .article-content {
        padding: 30px 25px;
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.8rem;
    }
    
    .article-content h3 {
        font-size: 1.5rem;
    }
    
    .article-share,
    .author-bio,
    .article-navigation {
        padding: 25px;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .nav-next .nav-label {
        justify-content: flex-start;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-widget {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 1.8rem;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-featured-image {
        height: 300px;
    }
    
    .share-buttons {
        justify-content: center;
    }
}
