/* ============================================================= */
/* KuraBNB Academy – Light Theme | Clean & Focused Layout 2025   */
/* Primary: Deep Red (#9b1c1c)                                   */
/* ============================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f8f9fa;
    color: #111827;
    line-height: 1.6;
    min-height: 100vh;
}

/* ── Header ── */
header {
    background: #ffffff;
    padding: 1rem 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    border-radius: 10px;
    width: 44px;
    height: 44px;
    object-fit: cover;
}

.logo span {
    font-size: 1.4rem;
    font-weight: 800;
    color: #9b1c1c;
    letter-spacing: -0.5px;
}

/* Navbar Desktop */
.navbar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar a {
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.navbar a:hover,
.navbar a.active {
    color: #9b1c1c;
}

/* Hamburger Icon – Hanya muncul di mobile */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #555;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Sidebar (Mobile Menu) */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 3px 0 20px rgba(0, 0, 0, 0.12);
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    padding: 90px 20px 20px;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar a {
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
    color: #9b1c1c;
}

/* Overlay for mobile menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    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: 5rem 1.5rem 6rem;
    background: linear-gradient(135deg, #fff8f8 0%, #fef2f2 100%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #9b1c1c;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: #9b1c1c;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #7f1717;
    transform: translateY(-2px);
}

/* ── Content List ── */
.content-list {
    padding: 3rem 1.5rem;
    background: #ffffff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

#searchInput,
#sortSelect {
    padding: 0.9rem 1.2rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    color: #111827;
}

#searchInput {
    flex: 1;
    min-width: 220px;
}

#searchInput::placeholder {
    color: #9ca3af;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
}

.content-item {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.content-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.content-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.owner-address {
    color: #9b1c1c;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.earnings {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.content-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: #111827;
}

.content-item p {
    color: #4b5563;
    font-size: 0.97rem;
    line-height: 1.5;
    margin-top: auto;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.pagination button {
    padding: 0.7rem 1.6rem;
    background: #9b1c1c;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    background: #7f1717;
    transform: translateY(-1px);
}

.pagination button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.pagination span {
    color: #4b5563;
    font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.25rem;
    }

    .hamburger {
        display: flex;          
    }

    .navbar {
        display: none;           
    }

    .hero {
        padding: 4rem 1rem 5rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .content-list {
        padding: 2rem 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
        gap: 0.8rem;
    }

    #searchInput,
    #sortSelect {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .sidebar {
        display: none;          
    }
}