/*
 * File: category.css
 * Deskripsi: Style khusus untuk halaman kategori (category.php)
 */

:root {
    --primary-color: #00ffff; /* Neon Cyan */
    --secondary-color: #0099ff; /* Bright Blue */
    --bg-dark: #0e0e0e;
    --bg-card: rgba(30, 30, 30, 0.95);
    --text-light: #f0f0f0;
    --text-secondary: #aaa;
}

/* ========== BASIC RESET & GLOBAL STYLE ========== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
body {
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
a { 
    text-decoration: none; 
    color: var(--text-light); 
}

/* ========== CATEGORY HERO SECTION (EPIC) ========== */
.hero-category {
    background: linear-gradient(rgba(0,0,0,0.7), var(--bg-dark)), url('../img/hero-bg-default.jpg'); /* Sesuaikan path gambar */
    background-size: cover;
    background-position: center;
    padding: 100px 20px 50px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.hero-category h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 0.8s ease-out;
    text-shadow: 0 0 15px rgba(0,255,255,0.8);
}
.hero-category p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out;
}

/* Keyframe Animation */
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ========== FILTER BAR (RAPPIH) ========== */
.filter-bar-container {
    display: flex;
    justify-content: center;
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    width: 95%;
    max-width: 1000px;
    margin: 0 auto 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(0,255,255,0.1);
}
.filter-bar input,
.filter-bar select {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: #1a1a1a;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-width: 150px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%2300FFFF' d='M9.293 12.95l.707.707L15 10l-4.293-4.293-.707.707L12.586 9H5v2h7.586z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 16px;
}
.filter-bar input:focus,
.filter-bar select:focus {
    background: #222;
    box-shadow: 0 0 8px var(--primary-color);
    outline: none;
}
.filter-bar button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #000;
    font-weight: 700;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.filter-bar button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,255,255,0.4);
}

/* ========== POST GRID (SMOOTH & ENAK DILIHAT) ========== */
.post-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 50px;
}

/* ========== POST CARD (ANIMASI) ========== */
.post-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,255,255,0.3), 0 0 5px var(--primary-color);
}
.thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.post-card:hover .thumb {
    transform: scale(1.05);
}
.content {
    padding: 20px;
    flex-grow: 1;
}
.content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--text-light);
    transition: color 0.3s;
}
.post-card:hover h3 { 
    color: var(--primary-color); 
}
.post-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.post-meta span {
    display: flex;
    align-items: center;
}
.post-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* ========== PAGINATION (KEREN) ========== */
.pagination {
    text-align: center;
    margin: 40px 0 80px;
}
.pagination a {
    display: inline-block;
    color: var(--primary-color);
    background: #1a1a1a;
    padding: 10px 16px;
    margin: 0 5px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}
.pagination a:hover,
.pagination a.active {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 12px rgba(0,255,255,0.5);
    transform: scale(1.05);
}
.pagination a.disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
    border-color: #333;
    color: #666;
}

/* ========== RESPONSIVE & USER FRIENDLY ========== */
@media (max-width: 900px) {
    .filter-bar { 
        flex-direction: column; 
        width: 90%; 
    }
    .filter-bar input, 
    .filter-bar select, 
    .filter-bar button { 
        width: 100%; 
    }
    .hero-category h1 { 
        font-size: 2.2rem; 
    }
}
@media (max-width: 600px) {
    .post-grid { 
        grid-template-columns: 1fr; 
    }
    .thumb { 
        height: 180px; 
    }
    .content h3 { 
        font-size: 1.1rem; 
    }
    .post-meta { 
        font-size: 0.8rem; 
    }
    .hero-category { 
        padding-top: 80px; 
    }
}