/* Blog Detail Page Styles */
/* Hero Section with Background Image */
.blog-hero-with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0px;
    position: relative;
    min-height: 30vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(1px);
}

.blog-hero-with-bg .container {
    position: relative;
    z-index: 2;
}

/* Minimalist Breadcrumb */
.breadcrumb-minimal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: inline-flex;
}

.breadcrumb-link {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.breadcrumb-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.breadcrumb-separator {
    color: #cbd5e1;
    font-weight: 300;
}

.breadcrumb-current {
    color: #475569;
    font-weight: 500;
}

/* Clean Title */
.blog-title-clean {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Minimalist Meta */
.blog-meta-clean {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #64748b;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: inline-flex;
}

.meta-item-clean {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.meta-item-clean i {
    color: #3b82f6;
    font-size: 12px;
}

.meta-separator {
    color: #cbd5e1;
    font-weight: 300;
}

/* Clean Hashtags */
.hashtags-clean {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hashtag-clean {
    background: #f1f5f9;
    color: #3b82f6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.hashtag-clean:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

/* Clean Article Styles */
.blog-article {
    background: white;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
    border: 1px solid #f1f5f9;
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.featured-image img:hover {
    transform: scale(1.01);
}

.content-body {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #334155;
    font-weight: 400;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.content-body h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.content-body h3 {
    font-size: 1.5rem;
}

.content-body p {
    margin-bottom: 1.5rem;
    color: #475569;
}

.content-body blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 24px;
    margin: 2rem 0;
    font-style: italic;
    background: #f8faff;
    padding: 24px;
    border-radius: 0 8px 8px 0;
    color: #475569;
}

.content-body ul,
.content-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: #475569;
}

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

.content-body a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.content-body a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Share Buttons */
.share-buttons .btn {
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

/* Reading Time */
.reading-time {
    font-size: 0.9rem;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero-with-bg {
        padding: 0px;
        min-height: 20vh;
    }
    
    .blog-title-clean {
        font-size: 2rem;
    }
    
    .blog-meta-clean {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 16px;
    }
    
    .breadcrumb-minimal {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .blog-article {
        padding: 24px;
        margin-bottom: 24px;
    }
    
    .featured-image img {
        height: 250px;
    }
    
    .share-buttons {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .share-buttons .btn {
        margin-bottom: 10px;
    }
    
    .reading-time {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .blog-title-clean {
        font-size: 1.75rem;
    }
    
    .breadcrumb-minimal {
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    .blog-article {
        padding: 20px;
    }
    
    .content-body {
        font-size: 1rem;
    }
    
    .hashtags-clean {
        gap: 6px;
    }
    
    .hashtag-clean {
        font-size: 12px;
        padding: 3px 10px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-hero-with-bg .row {
    animation: fadeInUp 0.8s ease-out;
}

.blog-article {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.breadcrumb-item a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Blog Categories Menu */
.blog-categories-menu {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    margin-bottom: 32px;
}

.categories-title {
    color: #1e293b;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.categories-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.categories-list::-webkit-scrollbar {
    height: 6px;
}

.categories-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.categories-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.categories-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.category-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f8faff;
    color: #3b82f6;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

.category-item:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

.category-item.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.category-item i {
    font-size: 12px;
}

/* Recent Posts Section */
.recent-posts-section {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
}

.recent-posts-title {
    color: #1e293b;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.recent-posts-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.recent-posts-grid::-webkit-scrollbar {
    height: 6px;
}

.recent-posts-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.recent-posts-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.recent-posts-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.recent-post-card {
    background: #f8faff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    min-width: 280px;
    max-width: 320px;
    width: 100%;
}

.recent-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.recent-post-image {
    height: 200px;
    overflow: hidden;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post-card:hover .recent-post-image img {
    transform: scale(1.05);
}

.recent-post-content {
    padding: 20px;
}

.recent-post-title {
    margin-bottom: 12px;
}

.recent-post-title a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.recent-post-title a:hover {
    color: #3b82f6;
    text-decoration: none;
}

.recent-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #64748b;
}

.recent-post-date,
.recent-post-category {
    display: flex;
    align-items: center;
    gap: 4px;
}

.recent-post-date i,
.recent-post-category i {
    color: #3b82f6;
    font-size: 11px;
}

.recent-post-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.recent-post-link:hover {
    color: #1d4ed8;
    text-decoration: none;
    transform: translateX(4px);
}

.recent-post-link i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.recent-post-link:hover i {
    transform: translateX(2px);
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .categories-list {
        flex-direction: column;
        gap: 6px;
    }
    
    .category-item {
        justify-content: center;
        padding: 10px 16px;
    }
    
    .recent-posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .recent-post-card {
        margin-bottom: 16px;
    }
    
    .recent-post-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .blog-categories-menu,
    .recent-posts-section {
        padding: 20px;
    }
    
    .categories-title,
    .recent-posts-title {
        font-size: 1rem;
    }
    
    .recent-post-content {
        padding: 16px;
    }
    
    .recent-post-title a {
        font-size: 0.9rem;
    }
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    /* Hero Section Mobile Optimization */
    .blog-hero-with-bg {
        padding: 40px 0;
        min-height: 300px;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .blog-title-clean {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .blog-meta-clean {
        flex-direction: row;
        gap: 12px;
        margin-bottom: 1.5rem;
        text-align: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .meta-item-clean {
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .meta-separator {
        display: inline;
    }
    
    .hashtags-clean {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .hashtag-clean {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    /* Breadcrumb Mobile */
    .breadcrumb-minimal {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .breadcrumb-separator {
        margin: 0 4px;
    }
    
    /* Categories Menu Mobile */
    .blog-categories-menu {
        padding: 15px;
        margin: 15px 0;
    }
    
    .categories-title {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .categories-list {
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 0;
    }
    
    .category-item {
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: 8px;
        text-align: center;
    }
    
    /* Article Content Mobile */
    .blog-article {
        padding: 20px 15px;
    }
    
    .featured-image {
        margin-bottom: 20px;
    }
    
    .featured-image img {
        border-radius: 8px;
        width: 100%;
        height: auto;
    }
    
    .content-body {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .content-body h1,
    .content-body h2,
    .content-body h3 {
        font-size: 1.3rem;
        margin: 20px 0 10px 0;
        line-height: 1.4;
    }
    
    .content-body h4,
    .content-body h5,
    .content-body h6 {
        font-size: 1.1rem;
        margin: 15px 0 8px 0;
    }
    
    .content-body p {
        margin-bottom: 15px;
    }
    
    .content-body img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 15px 0;
    }
    
    .content-body ul,
    .content-body ol {
        padding-left: 1.5rem;
        margin-bottom: 15px;
    }
    
    .content-body li {
        margin-bottom: 8px;
    }
    
    .content-body blockquote {
        margin: 20px 0;
        padding: 15px;
        border-left: 4px solid #3b82f6;
        background: #f8faff;
        border-radius: 0 8px 8px 0;
    }
    
    /* Article Footer Mobile */
    .article-footer {
        padding: 20px 0;
        margin-top: 30px;
    }
    
    .article-footer .row {
        flex-direction: column;
        gap: 15px;
    }
    
    .share-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .share-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .reading-time {
        text-align: center;
        font-size: 0.85rem;
    }
    
    /* Recent Posts Mobile */
    .recent-posts-section {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .recent-posts-title {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .recent-posts-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 0;
    }
    
    .recent-post-card {
        flex-direction: column;
        text-align: center;
        flex-shrink: 0;
        min-width: 250px;
        max-width: 280px;
    }
    
    .recent-post-image {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }
    
    .recent-post-content {
        padding: 0;
    }
    
    .recent-post-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .recent-post-meta {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 15px;
    }
    
    .recent-post-date,
    .recent-post-category {
        font-size: 0.8rem;
        justify-content: center;
    }
    
    .recent-post-link {
        font-size: 0.9rem;
        justify-content: center;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .blog-hero-with-bg {
        padding: 30px 0;
        min-height: 250px;
    }
    
    .blog-title-clean {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .blog-meta-clean {
        gap: 8px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .meta-item-clean {
        font-size: 0.8rem;
    }
    
    .breadcrumb-minimal {
        font-size: 0.8rem;
    }
    
    .categories-list {
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px 0;
    }
    
    .category-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .blog-article {
        padding: 15px 10px;
    }
    
    .content-body {
        font-size: 0.95rem;
    }
    
    .content-body h1,
    .content-body h2,
    .content-body h3 {
        font-size: 1.2rem;
    }
    
    .share-buttons .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .recent-posts-section {
        padding: 15px 10px;
    }
    
    .recent-posts-grid {
        gap: 12px;
        padding: 8px 0;
    }
    
    .recent-post-card {
        min-width: 220px;
        max-width: 250px;
    }
    
    .recent-post-image {
        height: 180px;
    }
    
    .recent-post-title {
        font-size: 0.95rem;
    }
    
    .recent-post-meta {
        gap: 4px;
    }
    
    .recent-post-date,
    .recent-post-category {
        font-size: 0.75rem;
    }
    
    .recent-post-link {
        font-size: 0.85rem;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .blog-hero-with-bg {
        padding: 60px 0;
    }
    
    .blog-title-clean {
        font-size: 2.2rem;
    }
    
    .categories-list {
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 0;
    }
    
    .recent-posts-grid {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 0;
    }
    
    .recent-post-card {
        flex-direction: column;
        flex-shrink: 0;
        min-width: 260px;
        max-width: 300px;
    }
    
    .recent-post-image {
        height: 180px;
    }
}

/* Large Mobile Landscape */
@media (max-width: 896px) and (orientation: landscape) {
    .blog-hero-with-bg {
        padding: 30px 0;
        min-height: 200px;
    }
    
    .blog-title-clean {
        font-size: 1.6rem;
    }
    
    .blog-meta-clean {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        align-items: center;
    }
    
    .meta-separator {
        display: inline;
    }
}
