/* ============================================================
   ads.mojok.co — style.css
   Mobile-first: gaya dasar untuk HP, lalu @media untuk layar lebar.
   ============================================================ */

:root {
    --bg:            #FFFFFF;
    --bg-soft:       #FAFAFA;
    --text:          #1F2933;
    --text-soft:     #6B7280;
    --accent:        #FF0068;
    --accent-hover:  #D80057;
    --accent-soft:   #FFE5F0;
    --border:        #E5E7EB;

    --ok:            #16A34A;
    --ok-bg:         #DCFCE7;
    --warn:          #D97706;
    --warn-bg:       #FEF3C7;
    --muted:         #6B7280;
    --muted-bg:      #F3F4F6;

    --radius:        14px;
    --radius-sm:     10px;
    --shadow:        0 1px 3px rgba(31,41,51,.06), 0 8px 24px rgba(31,41,51,.06);
    --maxw:          1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.5rem; }
p  { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Tombol ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 48px;
    padding: 0 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .18s ease, transform .06s ease;
    text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-outline {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1EBE5A; color: #fff; }

/* ---- Badge status ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    padding: .25em .7em;
    font-size: .82rem;
    font-weight: 600;
    border-radius: 999px;
}
.badge-ok    { color: var(--ok);    background: var(--ok-bg); }
.badge-warn  { color: var(--warn);  background: var(--warn-bg); }
.badge-muted { color: var(--muted); background: var(--muted-bg); }

/* ---- Header publik ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); }
.brand img { height: 32px; width: auto; }
.brand .brand-fallback {
    display: inline-grid; place-items: center;
    height: 32px; padding: 0 12px;
    background: var(--accent); color: #fff;
    border-radius: 8px; font-weight: 800; letter-spacing: -.01em;
}
.site-nav { display: flex; gap: 6px; }
.site-nav a {
    color: var(--text-soft); font-weight: 600; font-size: .95rem;
    padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { color: var(--accent); background: var(--accent-soft); }

/* ---- Footer publik ---- */
.site-footer {
    margin-top: 64px;
    padding: 40px 0;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    font-size: .92rem;
}
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--accent); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.muted { color: var(--text-soft); }

@media (min-width: 720px) {
    h1 { font-size: 2.6rem; }
    h2 { font-size: 1.9rem; }
    .container { padding: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}