/* --- STYLES KHUSUS HALAMAN TIKTOK --- */

body {
    background-color: #f8f9fa; /* Background abu sangat muda */
}

/* --- HEADER SECTION --- */
.tiktok-header {
    text-align: center;
    padding: 120px 20px 40px 20px;
    background: linear-gradient(to bottom, #FFF0EB, #f8f9fa);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Icon Besar Background */
.icon-tiktok-bg {
    font-size: 3rem;
    color: #F85F14;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.tiktok-header h1 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    color: #1A1A2E;
    margin-bottom: 15px;
}

.tiktok-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Filter Tags (Tombol Kategori) */
.filter-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tag {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid #ddd;
    color: #555;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    background: white;
}

.tag:hover, .tag.active {
    background-color: #000; /* Warna Hitam TikTok */
    color: white;
    border-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- GALLERY GRID --- */
.tiktok-gallery {
    padding: 40px 80px 80px 80px;
}

.gallery-container {
    display: grid;
    /* Membuat Grid Responsif (Minimal lebar 250px) */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- KARTU TIKTOK (DESIGN UTAMA) --- */
.tiktok-card {
    background: white;
    border-radius: 15px;
    overflow: hidden; /* Agar gambar zoom tidak keluar kotak */
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid #eee;
}

/* Efek Hover 1: Kartu Naik */
.tiktok-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #F85F14;
}

/* Gambar Thumbnail */
.thumb-img {
    width: 100%;
    height: 400px; /* Rasio Tinggi Portrait (Ala HP) */
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Efek Hover 2: Gambar Zoom */
.tiktok-card:hover .thumb-img {
    transform: scale(1.1);
}

/* Overlay Hitam & Tombol Play */
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Sembunyi dulu */
    transition: all 0.3s ease;
}

/* Efek Hover 3: Overlay Muncul */
.tiktok-card:hover .overlay {
    opacity: 1;
}

.stats {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
}

.play-btn {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    background-color: #F85F14; /* Tombol Orange */
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(20px); /* Posisi awal agak di bawah */
    transition: all 0.4s ease;
}

/* Efek Hover 4: Tombol Naik */
.tiktok-card:hover .play-btn {
    transform: translateY(0);
}

.play-btn:hover {
    background-color: white;
    color: #F85F14;
}

/* Info Text di Bawah */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.card-info h3 {
    color: white;
    font-size: 1.1rem;
    margin-top: 10px;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Badges Kategori */
.badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    background-color: #25F4EE; /* Warna Biru TikTok */
    color: #000;
}

.badge.edu { background-color: #FE2C55; color: white; } /* Merah TikTok */
.badge.fun { background-color: #F85F14; color: white; } /* Orange Brand */


/* --- CTA BAWAH --- */
.cta-tiktok {
    text-align: center;
    margin-top: 60px;
}

.cta-tiktok p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #555;
}

.btn-follow {
    display: inline-block;
    background-color: #000;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-follow:hover {
    background-color: #333;
    transform: scale(1.05);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .tiktok-gallery {
        padding: 40px 20px;
    }
    
    .tiktok-header {
        padding-top: 100px;
    }

    .tiktok-header h1 {
        font-size: 2.2rem;
    }
    
    .thumb-img {
        height: 350px; /* Di HP jangan terlalu tinggi */
    }
}