/* =========================================
 * Pages: discover.php
 * Author: Thanh ??
 * Note: Auto-extracted from inline <style>
 * ========================================= */
/* Filter Box Style */
    .filter-box { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 30px; }
    .filter-group { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed var(--border); }
    .filter-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
    .filter-label { font-weight: 700; min-width: 100px; color: var(--text-main); margin-top: 6px; display: flex; align-items: center; gap: 5px; }
    .filter-options { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
    
    .filter-tag { padding: 5px 12px; border-radius: 6px; font-size: 13px; color: var(--text-sec); background: var(--bg-main); border: 1px solid transparent; text-decoration: none; transition: 0.2s; font-weight: 500; }
    .filter-tag:hover { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
    .filter-tag.active { background: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 2px 5px rgba(37, 99, 235, 0.3); }

    /* Grid Layout */
    .discover-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
    @media (min-width: 768px) { .discover-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
    @media (min-width: 1024px) { .discover-grid { grid-template-columns: repeat(5, 1fr); } } 

    /* Novel Card Custom */
    .novel-card { position: relative; border-radius: 8px; overflow: hidden; transition: 0.2s; }
    .novel-card:hover { transform: translateY(-3px); }
    .novel-thumb { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; display: block; }
    
    /* HỆ THỐNG BADGE (VIP, FULL, HOT) MỚI CẬP NHẬT */
    .thumb-badges {
        position: absolute;
        top: 6px;
        left: 6px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        z-index: 10;
        pointer-events: none;
    }
    
    .t-badge {
        display: inline-flex;
        align-items: center;
        padding: 3px 6px;
        font-size: 10px;
        font-weight: 700;
        color: #fff;
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        line-height: 1;
        letter-spacing: 0.5px;
    }
    
    .t-badge i { font-size: 11px; margin-right: 3px; font-weight: normal; }
    .t-badge.b-exclusive { background: linear-gradient(135deg, #f59e0b, #d97706); } /* VIP: Cam/Vàng */
    .t-badge.b-full { background: linear-gradient(135deg, #10b981, #059669); }      /* FULL: Xanh lục */
    .t-badge.b-recommend { background: linear-gradient(135deg, #ef4444, #dc2626); } /* HOT: Đỏ */
    .t-badge.b-nominate { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }  /* ĐỀ CỬ: Tím */
    
    .novel-body { margin-top: 8px; }
    .novel-name { font-weight: 700; font-size: 15px; color: var(--text-main); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .novel-meta { font-size: 12px; color: var(--text-sec); display: flex; align-items: center; justify-content: space-between; }

    @media (max-width: 600px) {
        .filter-group { flex-direction: column; gap: 8px; }
        .filter-label { font-size: 14px; opacity: 0.8; }
    }