/* ============================================================= */
/* KuraBNB – DARK THEME (HANYA WARNA) */
/* ============================================================= */

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: overflow 0.3s ease;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f1f1f;
    padding: 20px 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    margin-right: 12px;
    transition: transform 0.3s ease;
    border-radius: 10px;
    width: 50px;
    height: 50px;
    object-fit: cover;
}
.logo img:hover {
    transform: scale(1.1);
}
.logo span {
    font-size: 1em;
    font-weight: 700;
    color: #f0b90b;
    letter-spacing: 0.5px;
}

/* Navbar Desktop */
.navbar ul {
    display: flex;
    list-style: none;
    gap: 30px;
}
.navbar li {
    margin: 0;
}
.navbar a {
    text-decoration: none;
    color: #bbbbbb;
    font-weight: 600;
    font-size: 1em;
    transition: color 0.3s ease;
}
.navbar a:hover, .navbar a.active {
    color: #f0b90b;
}

/* Hamburger Icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #bbbbbb;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Sidebar Menu (Mobile) */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: #1f1f1f;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    padding: 90px 20px 20px;
    overflow-y: auto;
    display: none;
}
.sidebar.active {
    left: 0;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar li {
    margin-bottom: 20px;
}
.sidebar a {
    text-decoration: none;
    color: #bbbbbb;
    font-weight: 600;
    font-size: 1.1em;
    display: block;
    padding: 12px 0;
    transition: color 0.3s ease;
    border-bottom: 1px solid #333;
}
.sidebar a:hover,
.sidebar a.active {
    color: #f0b90b;
}

/* Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hamburger Animation to X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    padding: 40px 20px;
    background: #1a1a1a;
}
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 10px;
    border: solid 1px #444;
    border-radius: 10px;
    box-shadow: 6px 6px #2c2c2c;
}
.hero-text {
    flex: 1;
}
.hero-text h1 {
    color: #f0b90b;
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
}
.hero-text p {
    color: #aaaaaa;
    font-size: 1.1em;
}
.hero-image {
    flex: 1;
    text-align: center;
}
.hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Content List */
.content-list {
    padding: 40px 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}
#searchInput {
    flex: 1;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 1em;
    background: #2c2c2c;
    color: #e0e0e0;
}
#sortSelect {
    padding: 12px;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 1em;
    background: #2c2c2c;
    color: #e0e0e0;
    cursor: pointer;
}
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    grid-auto-flow: row;
    width: 100%;
}
.content-item {
    background: #1f1f1f;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    min-height: 250px;
    width: 100%;
    box-sizing: border-box;
}

.content-item:hover:not(.empty) {
    transform: translateY(-5px);
}
.content-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
.content-item .owner-address {
    font-size: 0.9em;
    color: #f0b90b;
    font-weight: 600;
    margin-bottom: 5px;
}
.content-item h3 {
    font-size: 1.2em;
    color: #e0e0e0;
    margin-bottom: 10px;
}
.content-item p {
    font-size: 0.95em;
    color: #aaaaaa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}
.pagination button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0b90b, #d9a008);
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.pagination button:hover {
    background: linear-gradient(90deg, #d9a008, #f0b90b);
    transform: translateY(-2px);
}
.pagination button:disabled {
    background: #444;
    cursor: not-allowed;
}
.pagination span {
    font-size: 1em;
    color: #bbbbbb;
}

/* Responsive: Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
    .content-item.empty {
        display: none;
    }
    .content-item {
        padding: 15px;
    }
    .content-item img {
        height: 130px;
    }
    .content-item h3 {
        font-size: 1.15em;
    }
    .content-item p {
        font-size: 0.95em;
    }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    /* Header */
    header {
        padding: 15px 20px;
    }
    /* Hamburger & Navbar */
    .hamburger {
        display: flex;
    }
    .navbar {
        display: none;
    }
    .sidebar {
        display: block;
    }
    /* Hero */
    .hero {
        padding: 20px 10px;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 10px;
    }
    .hero-text h1 {
        font-size: 1.8em;
    }
    .hero-text p {
        font-size: 1em;
    }
    /* Content */
    .content-list {
        padding: 20px 10px;
    }
    .container {
        padding: 0;
    }
    .filters {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    #searchInput, #sortSelect {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }
    .content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .content-item {
        padding: 15px;
        min-height: auto;
    }
    .content-item.empty {
        display: none;
    }
    .content-item img {
        height: 120px;
    }
    .content-item h3 {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    .content-item p {
        font-size: 0.9em;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        line-height: 1.4;
    }
    /* Pagination */
    .pagination {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    .pagination button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    .pagination span {
        text-align: center;
    }
}