/* ========================================
   PROFESSIONAL BLOG DESIGN SYSTEM
   Modern, Clean & Responsive Blog Styles
   ======================================== */

/* === Blog Archive Page (index.php) === */

/* Hero Section */
.modern-blog-hero {
    background: linear-gradient(135deg, #0F2027 0%, #203A43 50%, #2C5364 100%);
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
}

.modern-blog-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(193, 122, 74, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.modern-blog-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(193, 122, 74, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-hero-title {
    font-size: 3.5rem;
    margin: 0 0 20px;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.blog-hero-subtitle {
    font-size: 1.3rem;
    margin: 0 auto;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.6;
}

/* Category Tabs */
.blog-categories-tabs {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.blog-categories-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cat-tab {
    padding: 10px 25px;
    background: #f5f5f5;
    color: #666;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

.cat-tab.active {
    background: #C17A4A;
    color: white;
    box-shadow: 0 4px 12px rgba(193, 122, 74, 0.3);
}

.cat-tab:hover:not(.active) {
    background: #C17A4A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 122, 74, 0.2);
}

/* Blog Layout */
.blog-modern-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    align-items: start;
}

.blog-modern-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Blog Cards */
.modern-blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fadeInUp 0.6s ease backwards;
}

.modern-blog-card:nth-child(1) {
    animation-delay: 0.1s;
}

.modern-blog-card:nth-child(2) {
    animation-delay: 0.2s;
}

.modern-blog-card:nth-child(3) {
    animation-delay: 0.3s;
}

.modern-blog-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(193, 122, 74, 0.2);
}

/* Featured Post (First Post) */
.modern-blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
}

.featured .post-content-modern {
    padding: 40px;
}

.featured .entry-title-modern {
    font-size: 2.2rem;
}

.featured .entry-excerpt-modern {
    font-size: 1.05rem;
}

/* Post Thumbnail */
.post-thumb-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.featured .post-thumb-wrapper {
    height: 100%;
}

.post-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-blog-card:hover .post-thumb-wrapper img {
    transform: scale(1.1);
}

/* Category Badge */
.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(193, 122, 74, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

/* Post Content */
.post-content-modern {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Post Meta */
.post-meta-modern {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #999;
    font-size: 13px;
}

.meta-separator {
    width: 4px;
    height: 4px;
    background: #ddd;
    border-radius: 50%;
}

/* Entry Title */
.entry-title-modern {
    font-size: 1.4rem;
    margin: 0 0 15px;
    line-height: 1.3;
    font-weight: 800;
}

.entry-title-modern a {
    text-decoration: none;
    color: #1E3A5F;
    transition: color 0.3s ease;
}

.entry-title-modern a:hover {
    color: #C17A4A;
}

/* Excerpt */
.entry-excerpt-modern {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Author & Read More Section */
.post-footer-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.post-author-card {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.author-name {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.author-label {
    font-size: 12px;
    color: #999;
}

.modern-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #C17A4A;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.3s ease;
    font-size: 14px;
}

.modern-read-more:hover {
    gap: 14px;
    color: #1E3A5F;
}

/* === Single Post Page (single.php) === */

/* Article Hero */
.article-hero {
    width: 100%;
    height: 500px;
    position: relative;
    margin-bottom: 50px;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: 60px 20px 40px;
}

.article-hero-title {
    color: white;
    font-size: 2.8rem;
    margin: 0;
    font-weight: 800;
    line-height: 1.3;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
}

/* Article Container */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* Article Header (No Featured Image) */
.article-header-simple {
    margin-bottom: 40px;
    text-align: center;
}

.article-header-simple .article-title {
    font-size: 2.8rem;
    color: #1E3A5F;
    margin: 0 0 20px;
    font-weight: 800;
    line-height: 1.3;
}

/* Article Meta */
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-author-avatar {
    border-radius: 50%;
}

.meta-author-name {
    font-weight: 600;
    color: #1E3A5F;
}

.meta-author-label {
    font-size: 13px;
    color: #999;
}

.meta-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.meta-category-badge {
    background: #C17A4A;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.meta-category-badge:hover {
    background: #a0633d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 122, 74, 0.3);
}

/* Article Body */
.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #333;
}

.article-body h2 {
    color: #1E3A5F;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 800;
}

.article-body h3 {
    color: #C17A4A;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-right: 25px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body blockquote {
    border-right: 4px solid #C17A4A;
    padding: 20px 25px;
    background: #f9f9f9;
    margin: 30px 0;
    font-style: italic;
    border-radius: 8px;
    font-size: 1.05rem;
}

.article-body a {
    color: #C17A4A;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-body a:hover {
    color: #1E3A5F;
}

/* Article Tags */
.article-tags {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.article-tags h4 {
    margin: 0 0 15px;
    color: #1E3A5F;
    font-size: 1.1rem;
    font-weight: 700;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    padding: 8px 18px;
    background: #f5f5f5;
    border-radius: 25px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tag-link:hover {
    background: #C17A4A;
    color: white;
    transform: translateY(-2px);
}

/* Post Navigation */
.post-navigation {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-link {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    border-color: #C17A4A;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 122, 74, 0.15);
}

.nav-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    font-weight: 600;
}

.nav-title {
    font-weight: 700;
    color: #1E3A5F;
    font-size: 1rem;
}

.nav-link-next {
    text-align: left;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
}

.related-posts-title {
    text-align: center;
    font-size: 2rem;
    margin: 0 0 40px;
    color: #1E3A5F;
    font-weight: 800;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-post-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

.related-post-title a {
    text-decoration: none;
    color: #1E3A5F;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #C17A4A;
}

.related-post-date {
    font-size: 13px;
    color: #999;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .blog-modern-layout {
        grid-template-columns: 1fr;
    }

    .blog-modern-grid {
        grid-template-columns: 1fr;
    }

    .modern-blog-card.featured {
        grid-column: 1;
        grid-template-columns: 1fr;
    }

    .blog-hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .article-hero {
        height: 350px;
    }

    .article-hero-title {
        font-size: 2rem;
    }

    .blog-hero-title {
        font-size: 2rem;
    }

    .blog-hero-subtitle {
        font-size: 1rem;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .blog-categories-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .article-header-simple .article-title {
        font-size: 2rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .post-footer-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .featured .post-content-modern {
        padding: 25px;
    }

    .featured .entry-title-modern {
        font-size: 1.6rem;
    }
}

@media (max-width: 640px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}