/* =========================
   RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden; /* Mencegah double scroll */
}

/* =========================
   TOP BAR
========================= */
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.logo {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
    text-transform: lowercase;
}

/* =========================
   FEED (TIKTOK STYLE)
========================= */
.feed {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory; /* Kunci scroll per item */
    scroll-behavior: smooth;
}

/* Sembunyikan Scrollbar */
.feed::-webkit-scrollbar {
    display: none;
}

.item {
    position: relative;
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Gambar full screen tanpa gepeng */
}

/* =========================
   OVERLAY (Gaya Modern)
========================= */
.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 60px; /* Padding bawah lebih besar untuk kenyamanan */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 20px; /* Jarak antara teks dan tombol */
    z-index: 10;
}

.info-text h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.info-text p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* =========================
   ACTION BUTTONS
========================= */
.actions {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 14px 28px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s, opacity 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.outline {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* Responsif untuk layar sangat kecil */
@media (max-width: 360px) {
    .actions {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}
