/* =======================================================
    tech.css - NEON FUSION: TECH (REVISI FINAL: +TANGGAL)
    Fokus: Slider Cyberpunk, Tata Letak News, Desain Minimalis.
    ======================================================= */

/* --- 1. Root & Global Styling --- */

:root {
    /* Skema Warna Fushion: Dark Violet, Emerald, Gold */
    --bg-color: #0d001a;       /* Deep Dark Violet */
    --text-color: #e8f0f7;     /* Soft White */
    --neon-emerald: #00ff77;   /* Primary Highlight: Bright Emerald/Green */
    --neon-gold: #ffcc00;      /* Secondary Highlight: Muted Gold/Yellow */
    --card-bg: rgba(20, 0, 40, 0.95);
    
    --font-primary: 'Share Tech Mono', monospace;
    --font-secondary: 'Press Start 2P', cursive;
}

/* --- Keyframes & Animation --- */
@keyframes title-reveal {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
@keyframes cyber-scan {
    0% { background-position: 0 0; }
    100% { background-position: 100% 0; }
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px; 
}

.section-title {
    font-family: var(--font-secondary);
    color: var(--neon-gold);
    text-align: center;
    text-transform: uppercase;
    font-size: 1em;
    margin: 40px 0 25px;
    text-shadow: 0 0 8px var(--neon-gold);
    animation: title-reveal 0.8s ease-out;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--neon-emerald);
    margin: 5px auto 0;
    box-shadow: 0 0 5px var(--neon-emerald);
}

/* --- Hapus Elemen Lama --- */
.banner, .slideshow-container, .hero-logo, .prev, .next, .dots-container, .separator {
    display: none !important; 
}

/* =============================================
    2. MOST VISITED SLIDER (CYBER TRENDING)
    ============================================= */

.most-visited-section {
    padding: 20px 0;
}

.mv-slider-container {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px; 
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--neon-emerald);
    box-shadow: 0 0 15px var(--neon-emerald);
}

.mv-slider {
    display: flex;
    overflow-x: scroll; 
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth;
    gap: 15px; 
}

/* Sembunyikan Scrollbar */
.mv-slider::-webkit-scrollbar { display: none; }
.mv-slider { -ms-overflow-style: none; scrollbar-width: none; }

.mv-card {
    display: block;
    flex: 0 0 95%; /* 95% width on mobile */
    scroll-snap-align: start; 
    text-decoration: none;
    background-color: var(--card-bg);
    border: 1px solid var(--neon-gold);
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.6);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    position: relative;
}

@media (min-width: 600px) {
    .mv-card {
        flex: 0 0 calc(50% - 8px); /* 2 card di tablet */
    }
}
@media (min-width: 992px) {
    .mv-card {
        flex: 0 0 calc(33.33% - 10px); /* 3 card di desktop */
    }
}

.mv-thumb {
    width: 100%;
    aspect-ratio: 924 / 668; /* Rasio 1.38:1 */
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

/* GAYA BARU: Tanggal di Cyber Slider */
.mv-date {
    position: absolute;
    bottom: 0; /* Letakkan di bawah (di atas judul) */
    left: 0;
    background-color: var(--neon-gold);
    color: var(--bg-color);
    font-size: 0.7em;
    font-family: var(--font-primary);
    padding: 5px 10px;
    z-index: 5;
    text-transform: uppercase;
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.8);
    /* Sedikit bevel effect */
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

.mv-card:hover {
    transform: scale(1.01);
    box-shadow: 0 0 20px var(--neon-emerald);
    border-color: var(--neon-emerald);
}

.mv-overlay {
    /* Efek scanline */
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3) 1px, transparent 2px, transparent 4px
    );
    opacity: 0.8;
    pointer-events: none;
    animation: cyber-scan 15s linear infinite; 
}

.mv-title {
    font-size: 0.9em;
    font-family: var(--font-primary);
    color: var(--neon-gold);
    padding: 10px;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.7);
    text-align: center;
}

/* Navigasi Tombol Slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(13, 0, 26, 0.8);
    color: var(--neon-emerald);
    border: 1px solid var(--neon-gold);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2em;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 0 10px var(--neon-emerald);
}

.prev-btn { left: 0; border-radius: 0 5px 5px 0; }
.next-btn { right: 0; border-radius: 5px 0 0 5px; }

.slider-btn:hover {
    background-color: var(--neon-emerald);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--neon-gold);
    transform: translateY(-50%) scale(1.05);
}

/* =============================================
    3. SEARCH SECTION
    ============================================= */

.post-search-section {
    padding: 20px 10px;
    margin: 30px 0;
    background-color: var(--card-bg);
    border: 2px solid var(--neon-gold);
    /* Tata letak yang bersih: judul di atas form */
    display: flex;
    flex-direction: column; 
    gap: 15px;
}

.post-search-section .section-title {
    margin: 0; /* Hapus margin default section-title */
}

.search-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.search-input {
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-emerald);
    color: var(--neon-gold);
    font-family: var(--font-primary);
    box-shadow: 0 0 5px var(--neon-emerald) inset;
    flex-grow: 1; 
}

.search-input:focus {
    outline: none;
    border-color: var(--neon-gold);
    box-shadow: 0 0 10px var(--neon-gold) inset;
}

.search-btn {
    padding: 12px 20px;
    background-color: var(--neon-gold);
    color: var(--bg-color);
    border: none;
    font-family: var(--font-secondary);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 10px var(--neon-gold);
    text-transform: uppercase;
    flex-shrink: 0;
}

.search-btn:hover {
    background-color: var(--neon-emerald);
    box-shadow: 0 0 15px var(--neon-emerald);
    transform: translateY(-1px); 
}

/* =============================================
    4. MAIN POST GALLERY
    ============================================= */

.post-grid {
    display: grid;
    /* 1 kolom di mobile, 2 kolom di tablet, 3-4 kolom di desktop */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 600px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

.post-card {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--card-bg);
    border: 1px solid rgba(0, 255, 119, 0.3);
    box-shadow: 0 0 10px var(--neon-emerald);
    transition: all 0.3s;
    overflow: hidden;
}

.post-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--neon-gold); 
    border-color: var(--neon-gold);
}

.thumb {
    width: 100%;
    aspect-ratio: 924 / 668; /* Rasio 1.38:1 */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    filter: brightness(0.8);
    transition: filter 0.5s ease;
}

.post-card:hover .thumb {
    filter: brightness(1);
}

/* REVISI GAYA: Tanggal Post Card (Class .category-tag digunakan kembali) */
.category-tag { 
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--neon-emerald);
    color: var(--bg-color);
    font-size: 0.75em;
    font-family: var(--font-primary); 
    padding: 5px 10px;
    z-index: 5;
    text-transform: uppercase;
    box-shadow: 0 0 8px rgba(0, 255, 119, 0.6);
    /* Bentuk bevel di sudut kanan bawah */
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.post-info {
    padding: 15px 10px;
    border-top: 2px dotted var(--neon-gold);
}

.post-info h3 {
    margin: 0;
    font-size: 1em;
    color: var(--text-color);
    transition: color 0.3s;
}

.post-card:hover .post-info h3 {
    color: var(--neon-emerald);
    text-shadow: 0 0 5px var(--neon-emerald);
}


/* =============================================
    5. PAGINATION
    ============================================= */

.pagination-container {
    text-align: center;
    margin-top: 50px;
    font-size: 0.9em;
}

.pagination {
    list-style: none;
    padding: 5px;
    display: inline-flex;
    flex-wrap: wrap; 
    gap: 5px;
    border: 1px solid var(--neon-gold);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
}

.pagination li a, .pagination li span {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--neon-emerald);
    transition: all 0.2s linear;
}

.pagination li a:hover {
    background-color: var(--neon-gold);
    color: var(--bg-color);
    box-shadow: 0 0 5px var(--neon-gold);
}

.pagination li.current-page span {
    background-color: var(--neon-emerald);
    color: var(--bg-color);
    font-family: var(--font-secondary);
    font-size: 0.8em;
    box-shadow: 0 0 8px var(--neon-emerald);
}

.pagination li.disabled a {
    color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    background-color: transparent;
}
