/* General Body and Font Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #262626; /* Dark background from the image */
    color: #f0f0f0; /* Light text color */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a {
    color: #ff4d4d; 
    text-decoration: none;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333333; /* Slightly lighter dark for navbar */
    padding: 10px 15px;
    border-bottom: 1px solid #444444;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.menu-icon {
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
}

.logo-text {
    font-weight: bold;
    font-size: 22px;
    color: #ff4d4d; /* Red color for 'Wuzz' text */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.navbar-right button {
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 20px;
    cursor: pointer;
    margin-left: 15px;
    position: relative;
}

.notification-count {
    background-color: #ff4d4d; /* Red badge */
    color: white;
    font-size: 10px;
    border-radius: 50%;
    padding: 2px 5px;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Main Container */
.container {
    flex-grow: 1;
    padding: 15px;
    max-width: 700px; /* Adjust as needed */
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Post List */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between post cards */
}

/* REVISI PENTING DI SINI */
.post-card {
    background-color: #333333; /* Darker card background */
    border-radius: 0px;
    display: flex; /* Menggunakan flexbox untuk menata thumbnail dan konten */
    align-items: flex-start; /* Sejajarkan bagian atas konten */
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.post-image {
    width: 100px; /* Lebar thumbnail */
    height: 70px; /* Tinggi thumbnail */
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px; /* Memberi jarak antara gambar dan teks */
    flex-shrink: 0; /* Mencegah gambar menyusut */
}

.post-content {
    flex-grow: 1; /* Memungkinkan konten teks memenuhi sisa ruang */
    display: flex;
    flex-direction: column; /* Mengatur elemen di dalam post-content secara vertikal */
    justify-content: space-between; /* Menjaga jarak antara meta dan title/author */
}

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 5px; /* Memberi sedikit jarak antara meta dan judul */
}

.category {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: bold;
    text-transform: uppercase;
}

.category.testing {
    color: white;
    background: #262626;
}

.category.trending {
    background-color: #f0ad4e; /* Orange */
    color: white;
}

.category.bisnis {
    background-color: #5bc0de; /* Blue */
    color: white;
}

.category.tutorial {
    background-color: #f0ad4e; /* Orange, similar to trending in the image */
    color: white;
}

.views {
    font-size: 12px;
    color: #b0b0b0;
    margin-left: auto; /* Push views to the right */
    display: flex;
    align-items: center;
    gap: 4px;
}

.views i {
    font-size: 14px;
}

.post-title, .post-title a {
    font-size: 16px;
    margin: 0 0 5px 0;
    color: #ffffff;
    line-height: 1.3;
}

.post-author {
    font-size: 12px;
    color: #b0b0b0;
    margin: 0;
}

/* Banner Space */
.banner-space {
    background-color: #444444; /* Darker gray for banner */
    color: #f0f0f0;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 14px;
}

/* Floating Action Button (FAB) */
.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff4d4d; /* Red color */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
}

/* Sidebar Navigation */
.sidebar {
    height: 100%; /* Full height */
    width: 0; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Higher than other content */
    top: 0;
    left: 0;
    background-color: #2b2b2b; /* Darker background for sidebar */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.3s; /* Smooth transition effect */
    padding-top: 60px; /* Space from top for fixed header */
    box-shadow: 2px 0 5px rgba(0,0,0,0.5);
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 18px;
    color: #f0f0f0; /* Light color for links */
    display: block;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 15px; /* Space between icon and text */
}

.sidebar ul li a:hover {
    background-color: #3f3f3f; /* Hover effect */
    color: #ff4d4d; /* Red on hover */
}

/* Class untuk menggeser konten utama saat sidebar terbuka */
.content-shifted {
    margin-left: 250px; /* Lebar sidebar */
    transition: margin-left 0.3s;
}

/* Class untuk tampilan sidebar saat terbuka */
.sidebar.active {
    width: 250px; /* Lebar saat terbuka */
}

/* Untuk mencegah konten utama tertutupi saat sidebar terbuka */
/* Ini akan menjadi overlay yang bisa diklik untuk menutup sidebar */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparan */
    z-index: 1000; /* Di bawah sidebar tapi di atas konten */
    display: none; /* Tersembunyi secara default */
}

.overlay.active {
    display: block;
}

/* Optional: Adjust main content when sidebar is active */
/* This is if you want the main content to shrink or shift slightly */
body.sidebar-open .container {
    /* Example: Add padding-left or adjust width if needed */
    /* This depends on your desired effect, for now, we'll use overlay and body class */
}
  
