/* ==========================================================================
   TODAGAMES TEMPLATE V2 - BLOG & ARTICLES LISTING
   File: assets/css/templates/v2-blog.css
   Layout Parent: templates/v2/template.php
   Mengikuti Token Desain v2.css & Desain Editorial Gaming Magazine V2
   ========================================================================== */

.v2-blog-page {
    color: var(--text-title, #f8fafc);
    padding-top: 1.5rem;
    padding-bottom: 5rem;
    min-height: 80vh;
    font-family: var(--font-main, 'Plus Jakarta Sans', sans-serif);
}

.v2-blog-container {
    width: 100%;
}

/* ==========================================================================
   1. HERO HEADER SECTION
   ========================================================================== */
.v2-blog-hero-wrap {
    margin-bottom: 2.25rem;
}

.v2-blog-hero-card {
    background: var(--warna_2);
    border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    -webkit-border-radius: 1.5rem;
    -moz-border-radius: 1.5rem;
    -ms-border-radius: 1.5rem;
    -o-border-radius: 1.5rem;
}

.v2-blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 183, 3, 0.12);
    border: 1px solid rgba(255, 183, 3, 0.3);
    color: var(--warna_4, #ffb703);
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.v2-blog-hero-badge svg {
    width: 14px;
    height: 14px;
}

.v2-blog-hero-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-title, #fff);
    line-height: 1.25;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.v2-blog-hero-sub {
    font-size: 0.95rem;
    color: var(--text-muted, #94a3b8);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   2. SEARCH & CATEGORY FILTER TABS
   ========================================================================== */
.v2-blog-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
}

.v2-blog-tabs-list {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.v2-blog-tabs-list::-webkit-scrollbar {
    display: none;
}

.v2-blog-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
    color: var(--text-muted, #94a3b8);
    padding: 8px 18px;
    border-radius: 999px;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    outline: none !important;
}

.v2-blog-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.v2-blog-tab-btn.active {
    background: var(--warna_4);
    color: var(--text-title) !important;
    border-color: var(--warna_4);
}

.v2-blog-search-box {
    position: relative;
    min-width: 240px;
    flex-shrink: 0;
}

.v2-blog-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #94a3b8);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.v2-blog-search-icon svg {
    width: 16px;
    height: 16px;
}

.v2-blog-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-card, rgba(255, 255, 255, 0.12));
    border-radius: 999px;
    padding: 8px 14px 8px 36px;
    font-size: 13px;
    color: #fff;
    outline: none;
    transition: border-color 0.2s ease;
}

.v2-blog-search-input:focus {
    border-color: var(--warna_4, #ffb703);
}

/* ==========================================================================
   3. FEATURED SPOTLIGHT ARTICLE (HERO CARD)
   ========================================================================== */
.v2-blog-featured-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: var(--warna_2);
    border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    -webkit-border-radius: 1.5rem;
    -moz-border-radius: 1.5rem;
    -ms-border-radius: 1.5rem;
    -o-border-radius: 1.5rem;
}

.v2-blog-featured-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 183, 3, 0.4);
}

.v2-featured-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: hsl(var(--warnahsl3));
    overflow: hidden;
}

.v2-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.v2-blog-featured-card:hover .v2-featured-img {
    transform: scale(1.04);
}

.v2-featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--warna_4, #ffb703);
    color: #1a102d;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.v2-featured-content {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.v2-featured-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 10px;
}

.v2-featured-date svg {
    width: 14px;
    height: 14px;
}

.v2-featured-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.v2-blog-featured-card:hover .v2-featured-title {
    color: var(--warna_4, #ffb703);
}

.v2-featured-snippet {
    font-size: 0.925rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2-featured-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--warna_4, #ffb703);
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 14px;
    font-weight: 700;
}

.v2-featured-readmore svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.v2-blog-featured-card:hover .v2-featured-readmore svg {
    transform: translateX(4px);
}

/* ==========================================================================
   4. ARTICLES GRID SECTION (3 COLUMNS)
   ========================================================================== */
.v2-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.v2-blog-card {
    background: var(--warna_2);
    border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    -webkit-border-radius: 1.25rem;
    -moz-border-radius: 1.25rem;
    -ms-border-radius: 1.25rem;
    -o-border-radius: 1.25rem;
}

.v2-blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 183, 3, 0.4);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.v2-blog-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: hsl(var(--warnahsl3));
    overflow: hidden;
}

.v2-blog-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.v2-blog-card:hover .v2-blog-card-thumb {
    transform: scale(1.05);
}

.v2-blog-card-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(20, 13, 40, 0.88);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--warna_4, #ffb703);
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 6px;
}

.v2-blog-card-body {
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.v2-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 8px;
}

.v2-blog-card-meta svg {
    width: 13px;
    height: 13px;
}

.v2-blog-card-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.v2-blog-card:hover .v2-blog-card-title {
    color: var(--warna_4, #ffb703);
}

.v2-blog-card-snippet {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2-blog-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-card, rgba(255, 255, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v2-blog-card-link {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 12.5px;
    font-weight: 700;
    color: #c4b5fd;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.v2-blog-card-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.v2-blog-card:hover .v2-blog-card-link svg {
    transform: translateX(3px);
}

.v2-blog-card:hover .v2-blog-card-link {
    color: var(--warna_4, #ffb703);
}

/* ==========================================================================
   5. EMPTY STATE
   ========================================================================== */
.v2-blog-empty {
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--warna_2);
    border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
    border-radius: 1.5rem;
}

.v2-blog-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    color: var(--warna_4, #ffb703);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.v2-blog-empty-icon svg {
    width: 28px;
    height: 28px;
}

.v2-blog-empty-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.v2-blog-empty-sub {
    font-size: 0.875rem;
    color: var(--text-muted, #94a3b8);
}

/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .v2-blog-featured-card {
        grid-template-columns: 1fr;
    }

    .v2-featured-img-wrap {
        min-height: 240px;
    }

    .v2-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .v2-blog-hero-card {
        padding: 2.25rem 1.25rem;
    }

    .v2-blog-hero-title {
        font-size: 1.65rem;
    }

    .v2-blog-grid {
        grid-template-columns: 1fr;
    }

    .v2-blog-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .v2-blog-search-box {
        width: 100%;
    }
}
