/* =========================================================
   OKBOS – Tema Gold Dark (Desktop & Mobile Responsive)
   -----------------------------------------------------
   - Palet warna & shadow konsisten
   - Grid responsif (HP → Tablet → Desktop)
   - Header lengket + blur
   - Form & tombol mobile-first
   - Footer mobile bar (bottom nav)
   - Aksesibilitas (reduced motion, focus style)
   - Optimasi gambar & tipografi
   ========================================================= */

/* ===== Variabel Global ===== */
:root {
  --gold-1: #ffea00;   /* vivid yellow gold */
  --gold-2: #ffd54f;   /* warm soft gold */
  --gold-3: #fff59d;   /* highlight */
  --gold-ink: #2b2100; /* dark ink untuk kontras di atas gold */

  --bg0: #070707;      /* page bg */
  --bg1: #0d0d0d;      /* elevated bg */
  --bg2: #141414;      /* card bg */

  --text: #f2f2f2;
  --muted: #b39b00;

  --radius: 18px;
  --shadow: 0 10px 28px rgba(0,0,0,.45);

  /* Warna utilitas untuk footer lama */
  --primary-color: var(--gold-1);
  --text-color: var(--text);
  --text-muted: rgba(255,255,255,.75);
  --border-color: rgba(255,234,0,.18);
}

/* ===== Preferensi User: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Base ===== */
html {
  /* Tipografi responsif: nyaman di HP s/d desktop */
  font-size: clamp(14px, 1.1vw, 16px);
}
html, body {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255,234,0,.08), transparent 55%),
    radial-gradient(1200px 600px at 90% 0%, rgba(255,213,79,.08), transparent 55%),
    var(--bg0);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue";
}
body { overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.container-custom { max-width: 1200px; margin: 0 auto; padding: 0 12px; }

@media (min-width: 768px){
  .container-custom { padding: 0 16px; }
}

/* OPTIONAL: Background gambar penuh halaman
body::before{
  content:"";
  position: fixed; inset:0; z-index:-2;
  background: center/cover no-repeat fixed var(--bg0);
  background-image: url('https://firebase.sgp1.digitaloceanspaces.com/assets/cdn/okbos1/2025/07/21/20250721/3da6a347d67e04890a7aa67c0e34d740/okbos-background.webp');
  filter: saturate(1.05) brightness(.55);
}
body::after{
  content:"";
  position: fixed; inset:0; z-index:-1;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255,234,0,.06), transparent 55%),
    radial-gradient(1200px 600px at 90% 0%, rgba(255,213,79,.06), transparent 55%),
    linear-gradient(rgba(0,0,0,.60), rgba(0,0,0,.60));
  box-shadow: inset 0 0 200px 80px rgba(0,0,0,.35);
}
*/

/* ===== Fokus & Aksesibilitas ===== */
:focus-visible {
  outline: 2px dashed var(--gold-2);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ===== Utilities ===== */
.gold-text {
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.now-badge{
  display:inline-block;
  padding:.18rem .55rem;
  border-radius:999px;
  font-weight:800;
  font-size:.78rem;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  color: var(--gold-ink);
  border: 0;
  box-shadow: 0 6px 16px rgba(255,213,79,.18);
}

.accordion-body {
  color: #fff; /* Putih penuh */
}
/* =========================================================
   Header / Hero
   ========================================================= */
.hero-wrap {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(7,7,7,.9), rgba(7,7,7,.65) 70%, rgba(7,7,7,0));
  border-bottom: 1px solid rgba(255,234,0,.14);
}
.hero {
  display:grid; grid-template-columns: 1fr; gap: 12px; padding: 18px 0;
}
@media (min-width: 992px){
  .hero { grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
}
.brand { display:flex; align-items:center; gap:12px; min-width: 0; }
.logo img { height: 40px; width:auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
@media (min-width: 768px){ .logo img { height: 46px; } }
.title { margin:0; font-weight: 900; letter-spacing:.02em; font-size: clamp(18px, 2.2vw, 26px); line-height:1.1; white-space: nowrap; }
.subtitle { margin:2px 0 0; color: var(--muted); font-size:.9rem; }

/* =========================================================
   Search + Controls
   ========================================================= */
.controls { display:grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 768px){
  .controls { grid-template-columns: 1fr auto; align-items:center; }
}
.search-group {
  display:grid; grid-template-columns: 42px 1fr 42px;
  border-radius: 999px; overflow:hidden;
  border:1px solid rgba(255,234,0,.35);
  background: #0f0f0f;
}
.search-group .input-group-text,
.search-group .btn { border:0; background: transparent; color: var(--muted); }
.search-group input { border:0; background:transparent; color:var(--text); outline:none; box-shadow:none; width:100%; }

.top-actions { display:flex; gap:8px; justify-content:flex-end; flex-wrap: wrap; }
.chip, .btn-cta { border-radius: 999px; padding:.45rem .95rem; font-weight:800; }
.chip {
  border:1px solid rgba(255,234,0,.3); color:var(--text); background:#101010; font-size:.82rem;
  width: 100%; text-align: center;
}
.chip.active { background: linear-gradient(90deg, var(--gold-1), var(--gold-2)); color: var(--gold-ink); border-color: transparent; }
.btn-cta {
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  color: var(--gold-ink); border: 0; box-shadow: 0 8px 24px rgba(255,234,0,.15);
  width: 100%; text-align: center;
}
.btn-cta:hover { filter: brightness(1.08); }
.sort {
  background:#101010; color:var(--text);
  border:1px solid rgba(255,234,0,.3);
  border-radius: 999px; padding:.45rem .9rem; width: 100%;
}
@media (min-width: 768px){
  .chip, .btn-cta, .sort { width: auto; text-align: initial; }
}

/* =========================================================
   Section & Grid
   ========================================================= */
.section { padding: 26px 0 34px; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head .info { color:#d6c739; font-size:.9rem; }

.grid { display:grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 576px){ .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px){ .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px){ .grid { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================
   Card Post
   ========================================================= */
.card-post {
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid rgba(255,234,0,.22);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.card-post:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(255,213,79,.22); }
.thumb { width:100%; aspect-ratio: 16/9; object-fit:cover; }

.card-body { padding: 12px 14px 14px; }
.card-title { margin:0 0 4px; font-size: 1rem; font-weight: 900; letter-spacing:.01em; }
.time-post { color: var(--gold-3); font-size:.78rem; margin-bottom: 8px; }

.badge-gold,
.btn-gold {
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  color: var(--gold-ink); font-weight:900; border:0;
}
.btn-gold:hover { filter: brightness(1.06); }

.ribbon {
  position:absolute; top:10px; left:-6px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  color: var(--gold-ink);
  padding:.24rem .64rem; font-weight:900; font-size:.72rem;
  border-top-right-radius:.45rem; border-bottom-right-radius:.45rem;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

/* =========================================================
   Footer (Desktop)
   ========================================================= */
.footer-wrap {
  background: var(--bg1);
  border-top: 1px solid rgba(255,234,0,.15);
  padding-top: 40px;
  color: var(--text);
}

.main-footer {
  background: linear-gradient(to bottom, #000000, #0a0a0a);
  color: var(--text-color);
  padding: 60px 0 20px;
  border-top: 2px solid var(--primary-color);
  position: relative;
}

.footer-logo { height: 50px; margin-bottom: 20px; }
.footer-about { margin-bottom: 25px; color: rgba(255, 255, 255, 0.8); }

.footer-title {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 50px; height: 3px;
  background: var(--primary-color);
}

.footer-links { list-style: none; padding-left: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  position: relative;
  padding-left: 15px;
}
.footer-links a::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--primary-color);
  opacity: 0;
  transition: all 0.3s ease;
}
.footer-links a:hover { color: var(--primary-color); padding-left: 20px; }
.footer-links a:hover::before { opacity: 1; left: 5px; }

.social-links { display: flex; gap: 15px; margin-top: 25px; flex-wrap: wrap; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1);
  border-radius: 50%; color: var(--text-color);
  transition: all 0.3s ease; font-size: 18px;
}
.social-link:hover {
  background: var(--primary-color); color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(248, 183, 0, 0.3);
}

.payment-methods { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.payment-method {
  width: 80px; height: 35px; object-fit: contain;
  background: white; padding: 5px; border-radius: 5px;
  transition: all 0.3s ease;
}
.payment-method:hover { transform: scale(1.05); }

.security-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.security-badge { height: 40px; width: auto; object-fit: contain; transition: all 0.3s ease; }
.security-badge:hover { transform: scale(1.05); }

.copyright {
  text-align: center; padding-top: 30px; margin-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted); font-size: 14px;
}

.auth-icon { height: 60px; width: auto; margin-bottom: 20px; }

/* =========================================================
   Mobile Footer (Bottom Navigation)
   ========================================================= */
.mobile-footer {
  display: none; background: #000;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--primary-color);
}
.footer-nav { display: flex; justify-content: space-around; padding: 10px 0; }
.footer-nav-item {
  display: flex; flex-direction: column; align-items: center;
  color: var(--text-muted); text-decoration: none; font-size: 12px;
  transition: all 0.3s ease; padding: 5px; border-radius: 8px;
}
.footer-nav-item i {
  font-size: 20px; margin-bottom: 5px; transition: all 0.3s ease;
}
.footer-nav-item.active,
.footer-nav-item:hover {
  color: var(--primary-color);
  background: rgba(248, 183, 0, 0.1);
}
.footer-nav-item.active i,
.footer-nav-item:hover i { transform: translateY(-3px); }

/* Tampilkan bottom nav khusus layar kecil */
@media (max-width: 768px) {
  .mobile-footer { display: block; }
}
@media (min-width: 769px) {
  .mobile-footer { display: none; }
}

/* =========================================================
   Pagination & Modal
   ========================================================= */
.pagination .page-link {
  background: #101010; border-color: rgba(255,234,0,.28); color: var(--text);
}
.pagination .page-item.active .page-link {
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  border-color: transparent; color: var(--gold-ink); font-weight: 900;
}

.modal-content {
  background:#0f0f0f; border:1px solid rgba(255,234,0,.28); border-radius: var(--radius);
}
.modal-header, .modal-footer { border-color: rgba(255,234,0,.18); }

/* =========================================================
   Responsiveness Tambahan (Spacing & Layout)
   ========================================================= */

/* Konten punya ruang saat mobile footer muncul */
@media (max-width: 768px) {
  body { padding-bottom: 64px; } /* tinggi kira2 bottom nav */
}

/* Kontainer & Section di layar besar: beri napas */
@media (min-width: 1200px) {
  .section { padding: 34px 0 42px; }
}

/* Elemen form & tombol full width di HP */
@media (max-width: 767.98px) {
  .top-actions { justify-content: stretch; }
  .top-actions > * { flex: 1 1 auto; }
}

/* Grid fallback untuk layar sangat kecil */
@media (max-width: 360px) {
  .grid { gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
}

/* =========================================================
   Helper Class (opsional dipakai di HTML)
   ========================================================= */
.hide-mobile { display: none !important; }
@media (min-width: 769px) { .hide-mobile { display: initial !important; } }

.show-mobile { display: initial !important; }
@media (min-width: 769px) { .show-mobile { display: none !important; } }

.w-full { width: 100% !important; }
.btn { cursor: pointer; }

/* =========================================================
   Saran Struktur HTML (ringkas) – tidak wajib
   ---------------------------------------------------------
   <header class="hero-wrap">
     <div class="container-custom hero">
       <div class="brand">
         <a class="logo"><img src="logo.svg" alt="OKBOS"></a>
         <div>
           <h1 class="title gold-text">OKBOS MEDIA</h1>
           <p class="subtitle">Tagline singkat</p>
         </div>
       </div>

       <div class="controls">
         <div class="search-group">
           <button class="input-group-text">🔍</button>
           <input type="search" placeholder="Cari…">
           <button class="btn">⌘K</button>
         </div>
         <div class="top-actions">
           <button class="chip active">Trending</button>
           <button class="chip">Terbaru</button>
           <button class="btn-cta">Subscribe</button>
         </div>
       </div>

       <div class="hide-mobile">
         <span class="now-badge">LIVE</span>
       </div>
     </div>
   </header>
   ========================================================= */
