/* public_html/assets/css/style.css - Crafted Editorial Marketplace UI */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
    --bg-body: #FAF9F6;          /* Warm Alabaster - tidak silau macam putih hospital */
    --bg-card: #FFFFFF;
    --bg-subtle: #F4F4F5;
    --text-main: #09090B;        /* Deep Zinc Ink */
    --text-secondary: #3F3F46;
    --text-muted: #71717A;
    --primary: #0F172A;          /* Obsidian Slate untuk butang utama profesional */
    --primary-hover: #1E293B;
    --accent: #2563EB;           /* Royal Blue untuk pautan & fokus */
    --accent-soft: #EFF6FF;
    --whatsapp: #059669;         /* Deep Emerald yang matang, bukan hijau neon */
    --whatsapp-hover: #047857;
    --amber: #D97706;
    --amber-soft: #FEF3C7;
    --border: #E4E4E7;
    --border-hover: #A1A1AA;
    --shadow-xs: 0 1px 2px rgba(9, 9, 11, 0.04);
    --shadow-sm: 0 4px 12px -2px rgba(9, 9, 11, 0.06), 0 1px 3px rgba(9, 9, 11, 0.04);
    --shadow-md: 0 12px 28px -6px rgba(9, 9, 11, 0.08), 0 2px 6px rgba(9, 9, 11, 0.04);
    --shadow-lg: 0 24px 48px -12px rgba(9, 9, 11, 0.14);
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.55;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.icon-svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

/* =========================================
   1. NAVBAR MINIMALIS & TAJAM
   ========================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    height: 68px;
    display: flex;
    align-items: center;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-main);
}

.brand-logo .logo-icon {
    width: 34px;
    height: 34px;
    background: var(--text-main);
    color: #FFFFFF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: -0.5px;
}

.brand-logo span.dot-my {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Penukar Bahasa Minimalis */
.lang-switcher {
    display: inline-flex;
    background: var(--bg-subtle);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.lang-switcher a {
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

.lang-switcher a.active {
    background: #FFFFFF;
    color: var(--text-main);
    box-shadow: var(--shadow-xs);
}

/* Butang Sistem */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.16s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: #FFFFFF;
    color: var(--text-main);
    border-color: var(--border);
    box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: #FAFAFA;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #FFFFFF;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
}

/* =========================================
   2. HERO EDITORIAL & KOTAK CARIAN COMMAND-BAR
   ========================================= */
.hero-section {
    background-color: #FFFFFF;
    background-image: radial-gradient(#E4E4E7 1px, transparent 1px);
    background-size: 24px 24px;
    padding: 60px 0 52px;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: var(--shadow-xs);
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
}

.hero-title {
    font-size: clamp(2rem, 4.2vw, 3.15rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--text-main);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.04rem;
    color: var(--text-muted);
    max-width: 660px;
    margin: 0 auto 30px;
    font-weight: 400;
}

/* Kotak Carian Command-Bar */
.search-box {
    background: #FFFFFF;
    padding: 6px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #D4D4D8;
    display: grid;
    grid-template-columns: 1fr 200px auto;
    gap: 6px;
    align-items: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--text-main);
    box-shadow: 0 0 0 4px rgba(9, 9, 11, 0.06), var(--shadow-md);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    color: var(--text-muted);
}

.search-input-wrap input, .search-select {
    width: 100%;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.94rem;
    color: var(--text-main);
    background: transparent;
    padding: 10px 0;
}

.search-select {
    border-left: 1px solid var(--border);
    padding-left: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.popular-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.popular-tags a {
    background: #FFFFFF;
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 500;
}

.popular-tags a:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

/* =========================================
   3. KATEGORI & KAD SERVIS MARKETPLACE
   ========================================= */
.section-block {
    padding: 48px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 14px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.18s ease;
}

.category-card:hover {
    border-color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.cat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-subtle);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.category-card:hover .cat-icon {
    background: var(--text-main);
    color: #FFFFFF;
}

.cat-info h3 {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Grid Kad Servis (Gaya Contra / Toptal) */
.gig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 20px;
}

.gig-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gig-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #A1A1AA;
}

.gig-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #F4F4F5;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.gig-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gig-card:hover .gig-thumb-wrap img {
    transform: scale(1.03);
}

/* Lencana Atas Gambar Tanpa AI Slop */
.badge-floating-left {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    color: var(--text-main);
    border: 1px solid rgba(9, 9, 11, 0.08);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-pro {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #09090B;
    color: #FBBF24;
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gig-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.seller-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.seller-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}

.rating-pill svg {
    width: 13px;
    height: 13px;
    fill: #F59E0B;
    stroke: #F59E0B;
}

.gig-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.gig-card:hover .gig-title {
    color: var(--accent);
}

.gig-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-box span {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.price-box strong {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
}

/* =========================================
   4. FOOTER & STICKY MOBILE BAR
   ========================================= */
.site-footer {
    background: #09090B;
    color: #A1A1AA;
    padding: 48px 0 32px;
    margin-top: 64px;
    font-size: 0.88rem;
    border-top: 1px solid #27272A;
}

.footer-disclaimer {
    background: #18181B;
    border: 1px solid #27272A;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: #D4D4D8;
    margin-bottom: 28px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-wa-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    z-index: 999;
    box-shadow: 0 -8px 20px rgba(9, 9, 11, 0.06);
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .search-box {
        grid-template-columns: 1fr;
    }
    .search-select {
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 10px 14px;
    }
    .sticky-wa-bar {
        display: flex;
    }
    body {
        padding-bottom: 72px;
    }
}
