/* ============================================
   BLOG STYLES — WDK
   ============================================ */

/* Container */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero */
.blog-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    padding: 2.5rem 0 2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #FFE177;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,225,119,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.blog-hero h1 {
    color: #FFE177;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    line-height: 1.2;
}

.blog-hero h1 i {
    color: #FFE177;
}

.blog-hero-accent {
    color: #FFE177;
    font-style: italic;
}

.blog-hero-desc {
    color: #ffffff !important;
    font-size: 1.1rem;
    margin: 0.75rem 0 0;
    max-width: 600px;
    line-height: 1.5;
}

.blog-hero-badge {
    display: inline-block;
    background: rgba(255,225,119,0.15);
    color: #FFE177;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255,225,119,0.25);
}

.blog-hero--article {
    padding: 2rem 0 1.5rem;
}

.blog-hero--article h1 {
    font-size: 2rem;
    max-width: 800px;
}

.blog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    color: #999;
    font-size: 0.9rem;
}

.blog-hero-meta span,
.blog-hero-meta a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-hero-meta a {
    color: #FFE177;
    text-decoration: none;
}

.blog-hero-meta a:hover {
    color: #fff;
}

.blog-hero-meta i {
    font-size: 0.95rem;
}

/* Featured image — article view (no negative margins since outside card now) */
.blog-article .blog-featured-image {
    margin: 0 0 2rem;
    border-radius: 1rem;
    overflow: hidden;
    max-height: 450px;
    position: relative;
}

.blog-article .blog-featured-image::after {
    display: none;
}

/* Layout */
.blog-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

/* ========================
   ARTICLE LIST
   ======================== */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-card {
    display: flex;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: #FFE177;
}

.blog-card--horizontal .blog-card-image {
    width: 280px;
    min-height: 200px;
    flex-shrink: 0;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-card-body h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.blog-card-body p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-card-cat {
    display: inline-block;
    background: linear-gradient(135deg, #FFE177, #f5d45e);
    color: #1a1a1a;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    width: fit-content;
}

.blog-card-date {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: auto;
}

/* ========================
   ARTICLE VIEW
   ======================== */
.blog-article {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.blog-article-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 1.25rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.blog-article-meta span,
.blog-article-meta a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-article-meta i {
    font-size: 1rem;
}

.blog-meta-cat {
    color: #d4a843;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.blog-meta-cat:hover {
    color: #FFE177;
}

/* Article content */
.blog-article-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #334155;
}

.blog-article-content p {
    margin-bottom: 1.25rem;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.blog-article-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: #1a1a1a;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FFE177;
}

.blog-article-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: #1a1a1a;
}

.blog-article-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: #334155;
}

.blog-article-content blockquote {
    border-left: 4px solid #FFE177;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: linear-gradient(to right, #fffdf5, #fff);
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #475569;
}

.blog-article-content ul,
.blog-article-content ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

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

.blog-article-content a {
    color: #d4a843;
    text-decoration: underline;
    text-decoration-color: rgba(212,168,67,0.3);
    text-underline-offset: 3px;
    transition: all 0.2s;
}

.blog-article-content a:hover {
    color: #FFE177;
    text-decoration-color: #FFE177;
}

.blog-article-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}

.blog-article-content code {
    background: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #d4a843;
}

.blog-article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.blog-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.blog-article-content th,
.blog-article-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.blog-article-content th {
    background: #1a1a1a;
    color: white;
    font-weight: 600;
}

.blog-article-content tr:nth-child(even) td {
    background: #f8fafc;
}

.blog-article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, #FFE177, transparent);
    margin: 2.5rem 0;
}

/* Tags */
.blog-article-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.blog-article-tags > i {
    color: #94a3b8;
    margin-right: 0.5rem;
}

.blog-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.blog-tag:hover,
.blog-tag--active {
    background: #FFE177;
    color: #1a1a1a;
    border-color: #e6c85e;
}

/* Featured image */
.blog-featured-image {
    margin: -3rem -3rem 2rem;
    border-radius: 1.5rem 1.5rem 0 0;
    overflow: hidden;
    max-height: 450px;
    position: relative;
}

.blog-featured-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, white, transparent);
    pointer-events: none;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Breadcrumbs */
.blog-breadcrumbs {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.blog-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-breadcrumbs a:hover {
    color: #FFE177;
}

.blog-breadcrumbs span {
    margin: 0 0.4rem;
}

.blog-breadcrumbs .current {
    color: #1a1a1a;
    font-weight: 600;
}

.blog-breadcrumbs--hero {
    margin-top: 0.75rem;
}

.blog-breadcrumbs--hero a,
.blog-breadcrumbs--hero span {
    color: #aaa;
}

.blog-breadcrumbs--hero .current {
    color: white;
}

/* ========================
   PAGINATION
   ======================== */
.blog-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.blog-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.blog-page-link:hover {
    border-color: #FFE177;
    background: #fffdf5;
}

.blog-page-active {
    background: #FFE177;
    border-color: #FFE177;
    color: #1a1a1a;
}

/* ========================
   RELATED ARTICLES
   ======================== */
.blog-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f5f9;
}

.blog-related h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.blog-grid .blog-card {
    flex-direction: column;
}

.blog-grid .blog-card-image {
    width: 100% !important;
    height: 160px;
}

/* ========================
   SIDEBAR
   ======================== */
.blog-sidebar {
    position: sticky;
    top: 80px;
}

.blog-sidebar-widget {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.blog-sidebar-widget h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #FFE177;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar-list li {
    margin-bottom: 0.25rem;
}

.blog-sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #475569;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.blog-sidebar-list a:hover,
.blog-sidebar-list a.active {
    background: #fffdf5;
    color: #1a1a1a;
}

.blog-sidebar-count {
    background: #f1f5f9;
    color: #94a3b8;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.blog-sidebar-recent a {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.blog-sidebar-recent small {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* ========================
   EMPTY STATE
   ======================== */
.blog-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: #94a3b8;
    background: white;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
}

.blog-empty i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    color: #d1d5db;
}

.blog-empty p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.blog-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #FFE177, #f5d45e);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255,225,119,0.3);
}

.blog-btn:hover {
    background: linear-gradient(135deg, #f5d45e, #e6c85e);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,225,119,0.4);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem 2rem;
    }

    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 2.5rem 0 2rem;
        margin-bottom: 2rem;
    }

    .blog-hero h1 {
        font-size: 1.6rem;
    }

    .blog-card--horizontal {
        flex-direction: column;
    }

    .blog-card--horizontal .blog-card-image {
        width: 100%;
        height: 180px;
    }

    .blog-article {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .blog-article-title {
        font-size: 1.5rem;
    }

    .blog-featured-image {
        margin: -1.5rem -1.5rem 1.5rem;
        border-radius: 1rem 1rem 0 0;
    }

    .blog-article-content h2 {
        font-size: 1.35rem;
    }

    .blog-article-content h3 {
        font-size: 1.15rem;
    }
}
