/*
Theme Name: pengalaman.id
Theme URI: https://pengalaman.id
Author: pengalaman.id
Description: Theme komunitas berbagi pengalaman nyata orang Indonesia
Version: 1.2.0
License: GNU General Public License v2 or later
Text Domain: pengalaman-id
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --merah: #C0392B;
  --merah-gelap: #96281B;
  --merah-muda: #FDECEA;
  --merah-medium: #E74C3C;
  --hitam: #1A1A1A;
  --abu-gelap: #2C2C2C;
  --abu: #6B6B6B;
  --abu-muda: #F5F4F2;
  --abu-border: #E8E6E1;
  --putih: #FFFFFF;
  --hijau: #27AE60;
  --oranye: #E67E22;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1200px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--hitam); background: var(--putih); line-height: 1.7; -webkit-font-smoothing: antialiased; width: 100%; max-width: 100vw; }
/* overflow-x hidden di body mematikan position:sticky — taruh di wrapper, bukan body */
.site-main, .site-footer { overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }
.site-main { min-height: 60vh; overflow-x: hidden; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--abu-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.navbar { display: flex; align-items: center; gap: 20px; height: 64px; }
.site-logo {
  font-family: var(--font-display); font-size: 22px; font-weight: 900;
  color: var(--merah); letter-spacing: -0.5px; flex-shrink: 0; white-space: nowrap;
}
.site-logo span { color: var(--hitam); }
.nav-search {
  flex: 1; max-width: 480px;
  display: flex; align-items: center; gap: 8px;
  background: var(--abu-muda); border: 1px solid var(--abu-border);
  border-radius: 40px; padding: 8px 16px; transition: all .2s;
}
.nav-search:focus-within { border-color: var(--merah); background: var(--putih); box-shadow: 0 0 0 3px rgba(192,57,43,0.08); }
.nav-search input { flex: 1; border: none; background: none; font-size: 14px; color: var(--hitam); outline: none; }
.nav-search input::placeholder { color: var(--abu); }
.primary-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.primary-menu a { font-size: 14px; font-weight: 500; color: var(--abu-gelap); padding: 7px 12px; border-radius: 8px; transition: all .15s; white-space: nowrap; }
.primary-menu a:hover { background: var(--abu-muda); color: var(--merah); }
.btn-tulis { background: var(--merah) !important; color: var(--putih) !important; border-radius: 40px !important; padding: 7px 18px !important; }
.btn-tulis:hover { background: var(--merah-gelap) !important; }
.menu-toggle { display: none; background: none; border: 1px solid var(--abu-border); border-radius: 8px; padding: 6px 10px; font-size: 16px; }
.nav-search-mobile { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  background: var(--hitam);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(192,57,43,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(230,126,34,0.08) 0%, transparent 50%);
  padding: 80px 0 72px; text-align: center;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(192,57,43,0.2); border: 1px solid rgba(192,57,43,0.3);
  color: #FF8A7A; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 40px; margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(36px, 6vw, 68px);
  font-weight: 900; color: var(--putih); line-height: 1.1;
  letter-spacing: -1px; margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: #FF8A7A; }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }
.hero-search {
  max-width: 600px; width: 100%; margin: 0 auto 20px; box-sizing: border-box;
  background: var(--putih); border-radius: 16px;
  display: flex; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.hero-search input { flex: 1; padding: 18px 24px; border: none; outline: none; font-size: 16px; color: var(--hitam); }
.hero-search input::placeholder { color: #AAA; }
.hero-search-btn {
  background: var(--merah); color: var(--putih); border: none;
  padding: 0 28px; font-size: 15px; font-weight: 600; transition: background .15s; white-space: nowrap;
}
.hero-search-btn:hover { background: var(--merah-gelap); }
.hero-cats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.hero-cat {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 40px; cursor: pointer; transition: all .2s;
}
.hero-cat:hover { background: rgba(255,255,255,0.18); color: var(--putih); border-color: rgba(255,255,255,0.3); }
.hero-tagline {
  display: inline-block;
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  color: var(--putih);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 22px; border-radius: 40px; margin-bottom: 36px;
}
.hero-cta-wrap {
  margin-top: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero-cta-label {
  font-size: 13px; color: rgba(255,255,255,0.5); margin: 0; text-transform: uppercase; letter-spacing: .06em;
}
.hero-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--merah); color: var(--putih);
  font-size: 15px; font-weight: 700; letter-spacing: .01em;
  padding: 13px 32px; border-radius: 8px; border: none;
  transition: all .18s;
  box-shadow: 0 2px 0 var(--merah-gelap), 0 4px 12px rgba(192,57,43,0.35);
}
.hero-cta-btn:hover {
  background: var(--merah-gelap);
  box-shadow: 0 1px 0 #7a1e12, 0 2px 8px rgba(192,57,43,0.3);
  transform: translateY(1px);
}
.hero-cta-btn:active {
  box-shadow: 0 0 0 #7a1e12;
  transform: translateY(2px);
}
.hero-search-label {
  font-size: 12px; color: rgba(255,255,255,0.4); text-transform: uppercase;
  letter-spacing: .08em; margin: 28px 0 10px; text-align: center;
}
/* Kategori dalam hero */
.hero-kategori-wrap {
  max-width: 700px; width: 100%; margin: 0 auto; text-align: center; padding-top: 4px; box-sizing: border-box;
}
.hero-kategori-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-bottom: 16px;
}
.hero-kat-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 500;
  padding: 5px 12px 5px 8px; border-radius: 40px;
  transition: all .15s;
}
.hero-kat-pill:hover {
  background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.25);
  color: var(--putih);
}
.hero-kat-icon { font-size: 13px; line-height: 1; }
.hero-kat-name { line-height: 1; }
.hero-kat-more {
  font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 500;
  transition: color .15s;
}
.hero-kat-more:hover { color: rgba(255,255,255,0.75); }
.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat-num { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--putih); }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 2px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.section-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--merah); margin-bottom: 6px; }
.section-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--hitam); letter-spacing: -0.5px; }
.section-link { font-size: 14px; color: var(--merah); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.section-link:hover { text-decoration: underline; }

/* ============================================================
   KATEGORI GRID
   ============================================================ */
.kategori-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.kategori-card {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--abu-muda); border: 1px solid var(--abu-border);
  border-radius: 40px; padding: 7px 14px 7px 10px;
  transition: all .18s; white-space: nowrap;
}
.kategori-card:hover {
  border-color: var(--merah); background: var(--merah-muda);
  transform: translateY(-1px); box-shadow: var(--shadow-sm);
}
.kategori-icon { font-size: 16px; line-height: 1; flex-shrink: 0; }
.kategori-name { font-size: 13px; font-weight: 600; color: var(--abu-gelap); }
.kategori-count { font-size: 11px; color: var(--abu); margin-left: 2px; }

/* ============================================================
   EXPERIENCE CARDS
   ============================================================ */
.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exp-card {
  background: var(--putih); border: 1px solid var(--abu-border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .2s; display: flex; flex-direction: column;
}
.exp-card:hover { border-color: #BDBDBD; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.exp-card a { display: flex; flex-direction: column; flex: 1; color: inherit; }
.exp-card-header { padding: 20px 20px 0; }
.exp-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.exp-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--merah), var(--oranye));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--putih);
}
.exp-author-name { font-size: 13px; font-weight: 600; color: var(--hitam); }
.exp-author-level { font-size: 11px; color: var(--abu); }
.exp-card-body { padding: 0 20px 16px; flex: 1; }
.exp-subject {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--merah); background: var(--merah-muda);
  display: inline-block; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px;
}
.exp-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--hitam); line-height: 1.4; margin-bottom: 10px; }
.exp-excerpt { font-size: 13px; color: var(--abu); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.exp-card-footer {
  padding: 12px 20px; border-top: 1px solid var(--abu-border);
  display: flex; align-items: center; justify-content: space-between;
}
.exp-rating { display: flex; align-items: center; gap: 4px; }
.exp-stars { color: #F39C12; font-size: 13px; }
.exp-rating-num { font-size: 13px; font-weight: 600; color: var(--hitam); }
.exp-stats { display: flex; gap: 12px; }
.exp-stat { font-size: 12px; color: var(--abu); display: flex; align-items: center; gap: 3px; }

/* ============================================================
   FEATURED SECTION (Pilihan Editor)
   ============================================================ */
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
a.featured-main, .featured-main {
  background: var(--hitam); border-radius: var(--radius);
  padding: 36px; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 320px; position: relative; overflow: hidden; cursor: pointer;
  transition: transform .2s; text-decoration: none; color: inherit;
}
a.featured-main:hover, .featured-main:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.featured-main::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(192,57,43,0.6) 0%, rgba(26,26,26,0.95) 60%);
}
.featured-main-content { position: relative; z-index: 1; }
.featured-main *,
.featured-small * { text-decoration: none; }
.featured-badge {
  display: inline-block; background: var(--merah); color: var(--putih);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 4px 12px; border-radius: 4px; margin-bottom: 16px;
}
.featured-main-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--putih); line-height: 1.3; margin-bottom: 12px; }
.featured-main-sub { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 20px; }
.featured-main-meta { display: flex; align-items: center; gap: 10px; }
.featured-small-list { display: flex; flex-direction: column; gap: 12px; }
a.featured-small, .featured-small {
  background: var(--putih); border: 1px solid var(--abu-border);
  border-radius: var(--radius); padding: 16px 18px;
  display: flex; gap: 14px; cursor: pointer; transition: all .2s;
  text-decoration: none; color: inherit; position: relative;
}
a.featured-small:hover, .featured-small:hover { border-color: var(--merah); box-shadow: var(--shadow-sm); }
.featured-small-num {
  font-family: var(--font-display); font-size: 32px; font-weight: 900;
  color: var(--abu-border); line-height: 1; flex-shrink: 0; min-width: 36px;
}
.featured-small-content {}
.featured-small-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--merah); margin-bottom: 4px; }
.featured-small-title { font-size: 14px; font-weight: 600; color: var(--hitam); line-height: 1.4; margin-bottom: 6px; }
.featured-small-meta { font-size: 12px; color: var(--abu); }

/* ============================================================
   LEVEL SYSTEM
   ============================================================ */
.level-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.level-card { border: 1px solid var(--abu-border); border-radius: var(--radius); padding: 20px 16px; text-align: center; position: relative; }
.level-card.highlighted { border-color: var(--merah); border-width: 2px; }
.level-badge { font-size: 28px; margin-bottom: 8px; }
.level-name { font-size: 14px; font-weight: 700; color: var(--hitam); margin-bottom: 4px; }
.level-range { font-size: 12px; color: var(--abu); margin-bottom: 10px; }
.level-perks { font-size: 12px; color: var(--abu-gelap); line-height: 1.6; }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider { border: none; border-top: 1px solid var(--abu-border); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--hitam); border-radius: 20px; padding: 60px 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(192,57,43,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #FF8A7A; margin-bottom: 12px; }
.cta-title { font-family: var(--font-display); font-size: 32px; font-weight: 900; color: var(--putih); line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.5px; }
.cta-sub { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.7; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--merah); color: var(--putih); font-size: 15px; font-weight: 600; padding: 14px 28px; border-radius: 40px; border: none; transition: all .2s; white-space: nowrap; }
.btn-primary:hover { background: var(--merah-gelap); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(192,57,43,0.4); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: rgba(255,255,255,0.65); font-size: 14px; font-weight: 500; padding: 10px 20px; border-radius: 40px; border: 1px solid rgba(255,255,255,0.2); transition: all .2s; white-space: nowrap; }
.btn-outline:hover { background: rgba(255,255,255,0.08); color: var(--putih); }

/* ============================================================
   SINGLE PENGALAMAN
   ============================================================ */
.single-hero { background: var(--abu-muda); border-bottom: 1px solid var(--abu-border); padding: 48px 0; }
.single-breadcrumb { font-size: 13px; color: var(--abu); margin-bottom: 20px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.single-breadcrumb a { color: var(--merah); }
.single-cat-badge { display: inline-block; background: var(--merah); color: var(--putih); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 5px 14px; border-radius: 4px; margin-bottom: 16px; }
.single-title { font-family: var(--font-display); font-size: clamp(22px, 4vw, 40px); font-weight: 900; color: var(--hitam); line-height: 1.2; margin-bottom: 20px; }
.single-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.single-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--merah), var(--oranye)); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: var(--putih); flex-shrink: 0; }
.single-author-name { font-size: 15px; font-weight: 600; color: var(--hitam); }
.single-author-level { font-size: 12px; color: var(--abu); }
.single-date { font-size: 13px; color: var(--abu); }
.single-body { max-width: 960px; margin: 48px auto; padding: 0 24px; }
.rating-summary { background: var(--abu-muda); border: 1px solid var(--abu-border); border-radius: var(--radius); padding: 24px; margin-bottom: 36px; }
.rating-summary-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--abu); margin-bottom: 16px; }
.rating-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rating-row:last-child { margin-bottom: 0; }
.rating-label { font-size: 13px; color: var(--abu-gelap); width: 110px; flex-shrink: 0; }
.rating-bar-wrap { flex: 1; background: var(--abu-border); border-radius: 4px; height: 8px; overflow: hidden; }
.rating-bar { height: 100%; background: var(--merah); border-radius: 4px; }
.rating-val { font-size: 13px; font-weight: 600; color: var(--hitam); width: 24px; text-align: right; }
.entry-content { font-size: 17px; line-height: 1.9; color: var(--hitam); }
.entry-content p { margin-bottom: 24px; }
.entry-content h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 40px 0 14px; }
.entry-content h3 { font-size: 18px; font-weight: 600; margin: 32px 0 12px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 24px; }
.entry-content li { margin-bottom: 8px; list-style: disc; }
.entry-content blockquote { border-left: 4px solid var(--merah); margin: 28px 0; padding: 14px 20px; background: var(--merah-muda); border-radius: 0 8px 8px 0; font-style: italic; color: var(--abu-gelap); }
.highlight-box { background: var(--merah-muda); border-left: 4px solid var(--merah); border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 28px 0; font-size: 15px; }
.highlight-box.good { background: #EAF7EF; border-color: #27AE60; }
.highlight-box.bad { background: #FEF9E7; border-color: #F39C12; }

/* ============================================================
   FORM SUBMISSION
   ============================================================ */
.pengalaman-form-wrap { max-width: 720px; margin: 0 auto; padding: 48px 24px; }
.form-header { margin-bottom: 36px; }
.form-header h1 { font-family: var(--font-display); font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.form-header p { font-size: 15px; color: var(--abu); }
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--abu-gelap); margin-bottom: 7px; }
.form-label .required { color: var(--merah); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--abu-border);
  border-radius: var(--radius-sm); font-size: 15px; color: var(--hitam);
  background: var(--putih); transition: all .2s; outline: none; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--merah); box-shadow: 0 0 0 3px rgba(192,57,43,0.08); }
.form-textarea { resize: vertical; min-height: 220px; line-height: 1.7; }
#judul-input { white-space: normal; overflow-wrap: break-word; word-break: break-word; height: auto; min-height: 44px; }
.judul-textarea { resize: none; overflow: hidden; line-height: 1.5; padding-top: 11px; padding-bottom: 11px; }
.form-hint { font-size: 12px; color: var(--abu); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { font-size: 13px; color: var(--merah); margin-top: 5px; display: none; }
/* Subkategori dropdown */
.subkategori-group { margin-bottom: 22px; animation: fadeInDown .2s ease; }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.form-select-sub { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
/* Progressive field reveal */
.field-reveal { animation: fadeInDown .25s ease; }
/* Star rating improved */
.star-rating-wrap { display: flex; align-items: center; gap: 14px; }
.star-rating { display: flex; gap: 6px; }
.star-btn { width: 44px; height: 44px; border-radius: 8px; border: 2px solid var(--abu-border); background: var(--abu-muda); font-size: 22px; color: #d1d5db; transition: all .15s; display: flex; align-items: center; justify-content: center; line-height: 1; }
.star-btn.active, .star-btn.hover { color: #f59e0b; border-color: #f59e0b; background: #fffbeb; transform: scale(1.1); }
.star-label { font-size: 14px; font-weight: 600; color: var(--abu); transition: color .15s; }
/* Panduan collapsible */
.panduan-checklist { border: 1px solid var(--abu-border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.panduan-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #f8fafc; border: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--abu-gelap); text-align: left; }
.panduan-toggle:hover { background: #f1f5f9; }
.panduan-chevron { flex-shrink: 0; transition: transform .2s; }
.panduan-body { padding: 4px 16px 14px; background: #f8fafc; }
.panduan-intro { font-size: 13px; color: var(--abu); margin-bottom: 8px; }
.panduan-list { margin: 0; padding-left: 18px; }
.panduan-list li { font-size: 13px; color: var(--abu-gelap); line-height: 1.6; margin-bottom: 4px; }
/* Word progress bar */
.word-progress-wrap { margin-top: 10px; }
.word-progress-bar-bg { height: 6px; background: var(--abu-border); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.word-progress-bar { height: 100%; width: 0%; border-radius: 99px; transition: width .3s ease, background .3s ease; }
.word-progress-info { display: flex; justify-content: space-between; }
.word-progress-text { font-size: 12px; color: var(--abu); }
.word-progress-done { font-size: 12px; color: #16a34a; font-weight: 600; }
/* Judul auto-suggest */
.judul-suggest { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding: 10px 14px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-sm); }
.judul-suggest-label { font-size: 12px; color: #15803d; font-weight: 600; white-space: nowrap; }
.judul-suggest-text { font-size: 13px; color: var(--hitam); flex: 1; }
.judul-suggest-btn { font-size: 12px; font-weight: 600; color: #15803d; background: #dcfce7; border: 1px solid #86efac; border-radius: 20px; padding: 4px 12px; white-space: nowrap; transition: all .15s; }
.judul-suggest-btn:hover { background: #bbf7d0; }
.star-rating { display: flex; gap: 8px; }
.star-btn { width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--abu-border); background: var(--abu-muda); font-size: 20px; transition: all .15s; display: flex; align-items: center; justify-content: center; }
.star-btn.active, .star-btn:hover { background: #FEF9E7; border-color: #F39C12; transform: scale(1.05); }
.btn-submit { width: 100%; padding: 16px; background: var(--merah); color: var(--putih); border: none; border-radius: 40px; font-size: 16px; font-weight: 600; transition: all .2s; margin-top: 8px; }
.btn-submit:hover { background: var(--merah-gelap); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(192,57,43,0.3); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.form-success { background: #EAF7EF; border: 1px solid #A9DFBF; border-radius: var(--radius); padding: 20px 24px; display: none; }
.form-success h3 { color: var(--hijau); font-size: 18px; margin-bottom: 8px; }
.char-counter { font-size: 12px; color: var(--abu); text-align: right; margin-top: 4px; }

/* ============================================================
   WIDGETS
   ============================================================ */
.widget { margin-bottom: 28px; }
.widget-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--hitam); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--merah); display: inline-block; }
.top-contributors-list { display: flex; flex-direction: column; gap: 10px; }
.contributor-item { display: flex; align-items: center; gap: 10px; }
.contributor-rank { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--abu-border); min-width: 24px; }
.contributor-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--merah), var(--oranye)); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--putih); flex-shrink: 0; }
.contributor-name { font-size: 13px; font-weight: 600; color: var(--hitam); display: block; }
.contributor-level { font-size: 11px; color: var(--abu); display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--abu-gelap); color: rgba(255,255,255,0.65); padding: 56px 0 24px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-display); font-size: 24px; font-weight: 900; color: var(--putih); margin-bottom: 12px; }
.footer-logo span { color: var(--merah-medium); }
.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.45); }
.footer-heading { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,0.35); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color .15s; }
.footer-links a:hover { color: var(--putih); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 8px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 40px 0; }
.pagination .page-numbers { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--abu-border); border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--abu-gelap); transition: all .15s; }
.pagination .page-numbers:hover, .pagination .page-numbers.current { background: var(--merah); color: var(--putih); border-color: var(--merah); }

/* ============================================================
   NOTIFICATIONS / ALERTS
   ============================================================ */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #EAF7EF; border: 1px solid #A9DFBF; color: #1E8449; }
.alert-error { background: var(--merah-muda); border: 1px solid #F1948A; color: var(--merah-gelap); }
.alert-info { background: #EBF5FB; border: 1px solid #85C1E9; color: #1A5276; }

/* ============================================================
   HALAMAN KATEGORI (page-kategori.php)
   ============================================================ */
.kategori-page-hero {
  background: var(--abu-muda); border-bottom: 1px solid var(--abu-border);
  padding: 56px 0 48px; text-align: center;
}
.kategori-page-hero-inner { max-width: 640px; margin: 0 auto; padding: 0 24px; }
.kategori-page-title {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 44px);
  font-weight: 900; color: var(--hitam); letter-spacing: -1px;
  margin: 8px 0 14px;
}
.kategori-page-sub { font-size: 16px; color: var(--abu); line-height: 1.7; margin-bottom: 28px; }
.kategori-search-form {
  display: flex; align-items: center; gap: 10px;
  background: var(--putih); border: 1.5px solid var(--abu-border);
  border-radius: 40px; padding: 12px 20px; max-width: 420px; margin: 0 auto;
  transition: all .2s; box-sizing: border-box; width: 100%;
}
.kategori-search-form:focus-within { border-color: var(--merah); box-shadow: 0 0 0 3px rgba(192,57,43,0.08); }
.kategori-search-form svg { color: var(--abu); flex-shrink: 0; }
.kategori-search-form input { flex: 1; border: none; outline: none; font-size: 15px; color: var(--hitam); background: none; }
.kategori-search-form input::placeholder { color: var(--abu); }

/* Stats bar */
.kat-stats-bar {
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: var(--putih); border: 1px solid var(--abu-border);
  border-radius: var(--radius); padding: 20px 0; margin: 36px 0 48px;
  box-shadow: var(--shadow-sm);
}
.kat-stat { text-align: center; padding: 0 40px; }
.kat-stat-num { font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--merah); display: block; }
.kat-stat-label { font-size: 13px; color: var(--abu); display: block; margin-top: 2px; }
.kat-stat-divider { width: 1px; height: 40px; background: var(--abu-border); flex-shrink: 0; }

/* Group */
.kat-group { margin-bottom: 52px; }
.kat-group-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 2px solid var(--abu-border);
}
.kat-group-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.kat-group-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--hitam); margin-bottom: 2px; }
.kat-group-count { font-size: 12px; color: var(--abu); font-weight: 500; }

/* Item grid */
.kat-group-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
  /* Batasi max 6 kolom di desktop agar tidak terlalu rapat */
  max-width: 100%;
}
.kat-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--putih); border: 1px solid var(--abu-border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  transition: all .18s; cursor: pointer; position: relative;
}
.kat-item:hover {
  border-color: var(--merah); background: var(--merah-muda);
  transform: translateY(-1px); box-shadow: var(--shadow-sm);
}
.kat-item-icon { font-size: 20px; flex-shrink: 0; }
.kat-item-name { font-size: 13px; font-weight: 600; color: var(--abu-gelap); flex: 1; line-height: 1.3; }
.kat-item-count {
  font-size: 11px; font-weight: 600; color: var(--abu);
  background: var(--abu-muda); border-radius: 20px;
  padding: 2px 8px; flex-shrink: 0; white-space: nowrap;
}
.kat-item:hover .kat-item-count { background: rgba(192,57,43,0.1); color: var(--merah); }

/* No results */
.kat-no-results {
  flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 0; text-align: center;
}
.kat-no-results-icon { font-size: 48px; margin-bottom: 12px; }
.kat-no-results-text { font-size: 16px; color: var(--abu); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .experience-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .level-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .primary-menu { display: none; }
  .menu-toggle { display: block; margin-left: auto; flex-shrink: 0; }
  /* Sembunyikan search bar di mobile agar navbar tidak overflow */
  .nav-search { display: none; }
  /* Dropdown mobile: posisi absolute relatif terhadap .site-header */
  .primary-menu.open {
    display: flex; flex-direction: column;
    position: fixed; top: 65px; left: 0; right: 0;
    background: var(--putih);
    border-bottom: 1px solid var(--abu-border);
    padding: 12px 24px; gap: 4px;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  /* Search bar di dalam dropdown mobile */
  .nav-search-mobile {
    display: flex; align-items: center; gap: 8px;
    background: var(--abu-muda); border: 1px solid var(--abu-border);
    border-radius: 40px; padding: 8px 16px; margin-bottom: 8px;
  }
  .nav-search-mobile input[type="search"] {
    flex: 1; border: none; background: none; font-size: 14px;
    color: var(--hitam); outline: none;
  }
  .cta-banner { grid-template-columns: 1fr; text-align: center; padding: 40px 28px; }
  .cta-actions { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 10px; }
  .btn-primary, .btn-outline { min-width: 180px; justify-content: center; }
  .hero-stats { gap: 24px; }
  .kat-stats-bar { flex-wrap: wrap; gap: 16px; padding: 20px 16px; }
  .kat-stat { padding: 0 20px; }
  .kat-stat-divider { display: none; }
  .kat-group-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 600px) {
  .experience-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-section { padding: 60px 0 52px; }
  .cta-banner { padding: 36px 24px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .level-grid { grid-template-columns: repeat(2, 1fr); }
  /* Fix halaman kategori di HP kecil */
  .kat-group-grid { grid-template-columns: repeat(2, 1fr); }
  .kategori-page-hero { padding: 36px 0 32px; }
  .kat-stats-bar { margin: 24px 0 32px; }
  .kat-group { margin-bottom: 36px; }
  /* Fix mobile overflow */
  .container { padding: 0 16px; }
  .hero-search input { padding: 14px 16px; font-size: 14px; }
  .hero-search-btn { padding: 0 16px; font-size: 13px; }
  .hero-cta-btn { width: 100%; justify-content: center; }
  .hero-kategori-grid { gap: 6px; }
  .hero-kat-pill { font-size: 11px; padding: 5px 10px 5px 7px; }
  .form-textarea { min-height: 320px; }
}

/* ============================================================
   KOMENTAR
   ============================================================ */
.comments-area {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--abu-border);
}
.comments-title {
  font-size: 18px; font-weight: 700; color: var(--hitam);
  margin: 0 0 24px;
}

/* List — hilangkan style & nomor bawaan browser */
.comment-list {
  list-style: none;
  padding: 0; margin: 0 0 40px;
}
.comment-list .comment-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--abu-border);
}
.comment-list .comment-item:last-child { border-bottom: none; }

/* Layout utama: avatar | konten */
.comment-body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.comment-avatar { flex-shrink: 0; }
.comment-avatar .avatar {
  border-radius: 50%;
  width: 44px; height: 44px;
  display: block;
}
.comment-content-wrap { flex: 1; min-width: 0; }

/* Meta: nama + tanggal */
.comment-meta {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 6px 12px;
  margin-bottom: 6px;
}
.comment-author-name { font-size: 14px; font-weight: 600; color: var(--hitam); }
.comment-author-name a { color: inherit; text-decoration: none; }
.comment-date { font-size: 12px; color: var(--abu); }
.comment-date a { color: inherit; text-decoration: none; }
.comment-date a:hover { color: var(--merah); }
.comment-edit { font-size: 12px; }
.comment-edit a { color: var(--merah); text-decoration: none; }
.comment-awaiting { font-size: 13px; color: var(--abu); font-style: italic; margin: 0 0 6px; }

/* Isi komentar */
.comment-text p { font-size: 14px; color: var(--abu-gelap); margin: 0 0 8px; line-height: 1.6; }
.comment-text p:last-child { margin-bottom: 0; }

/* Tombol Balas */
.comment-actions { margin-top: 8px; }
.comment-reply-link {
  font-size: 12px; font-weight: 500; color: var(--merah);
  text-decoration: none; border: 1px solid var(--merah);
  border-radius: 20px; padding: 3px 12px; display: inline-block;
  transition: all .15s;
}
.comment-reply-link:hover { background: var(--merah); color: var(--putih); }

/* Komentar balasan (nested) */
.comment-list .children {
  list-style: none; padding: 0;
  margin: 16px 0 0 58px;
  border-left: 2px solid var(--abu-border);
  padding-left: 20px;
}

/* ---- Form komentar ---- */
#respond {
  background: var(--abu-muda);
  border: 1px solid var(--abu-border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 8px;
}
#reply-title {
  font-size: 17px; font-weight: 700; color: var(--hitam);
  margin: 0 0 4px;
}
#reply-title small { font-size: 13px; font-weight: 400; margin-left: 8px; }
#reply-title small a { color: var(--merah); text-decoration: none; }
.comment-notes, .logged-in-as {
  font-size: 13px; color: var(--abu); margin-bottom: 20px; line-height: 1.5;
}
.logged-in-as a { color: var(--merah); text-decoration: none; }

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--abu-gelap); margin-bottom: 6px;
}
.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--abu-border); border-radius: 10px;
  padding: 12px 14px; font-size: 14px; font-family: var(--font-body);
  color: var(--hitam); background: var(--putih);
  outline: none; transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
  border-color: var(--merah);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.08);
}
.comment-form-comment textarea { min-height: 120px; }
.comment-form-author, .comment-form-email, .comment-form-url { margin-bottom: 16px; }

#submit, .btn-submit-comment {
  background: var(--merah); color: var(--putih);
  border: none; border-radius: 40px;
  padding: 12px 28px; font-size: 15px; font-weight: 600;
  font-family: var(--font-body); cursor: pointer;
  transition: background .2s; margin-top: 8px;
}
#submit:hover, .btn-submit-comment:hover { background: var(--merah-gelap); }

.required-field-message { font-size: 12px; color: var(--abu); margin-bottom: 16px; }
span.required { color: var(--merah); }
.no-comments { font-size: 14px; color: var(--abu); font-style: italic; margin-bottom: 32px; }

@media (max-width: 600px) {
  #respond { padding: 20px 16px; }
  .comment-list .children { margin-left: 24px; padding-left: 14px; }
  .comment-avatar .avatar { width: 36px; height: 36px; }
}

/* ============================================================
   FORM TEMPLATE GUIDE (panduan dinamis per kategori)
   ============================================================ */
.form-template-guide {
  margin-bottom: 20px;
}
.template-guide-inner {
  background: linear-gradient(135deg, rgba(192,57,43,0.05) 0%, rgba(192,57,43,0.02) 100%);
  border: 1px solid rgba(192,57,43,0.2);
  border-left: 4px solid var(--merah);
  border-radius: 10px;
  padding: 16px 20px;
}
.template-guide-title {
  font-size: 13px; font-weight: 700; color: var(--merah);
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px;
}
.template-guide-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.template-guide-list li {
  font-size: 13px; color: var(--abu-gelap); line-height: 1.5;
  padding-left: 20px; position: relative;
}
.template-guide-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--merah); font-weight: 700;
}

/* Tips box di atas textarea */
.form-tips {
  font-size: 13px; color: var(--abu-gelap);
  background: var(--abu-muda); border: 1px solid var(--abu-border);
  border-radius: 8px; padding: 10px 14px;
  margin-bottom: 10px; line-height: 1.6;
  transition: all .2s;
}

/* ── Media Upload ─────────────────────────────────────────── */
.form-hint {
  font-size: 13px; color: var(--abu-gelap);
  margin: -4px 0 12px; line-height: 1.5;
}
.form-optional {
  font-size: 12px; color: var(--abu-gelap); font-weight: 400;
}
.media-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--abu-border);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--abu-muda);
  transition: border-color .2s, background .2s;
  user-select: none;
  min-height: 160px;
  box-sizing: border-box;
}
.media-drop-zone:hover,
.media-drop-zone.drag-over {
  border-color: var(--merah);
  background: #fff5f5;
}
.media-drop-icon { font-size: 36px; line-height: 1; }
.media-drop-text { font-size: 15px; font-weight: 600; color: var(--teks-utama); }
.media-drop-subtext { font-size: 12px; color: var(--abu-gelap); }
.media-browse-btn {
  display: inline-block;
  background: var(--merah); color: #fff;
  border: none; border-radius: 8px;
  padding: 9px 24px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: opacity .2s;
  margin-top: 4px;
}
.media-browse-btn:hover { opacity: .85; }

.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.media-preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.media-preview-item img,
.media-preview-item video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.media-remove-btn {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.65); color: #fff;
  border: none; border-radius: 50%;
  width: 26px; height: 26px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 2;
}
.media-remove-btn:hover { background: var(--merah); }
.media-video-badge {
  position: absolute; bottom: 6px; left: 6px;
  background: rgba(0,0,0,.7); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: .5px;
}

/* ============================================================
   PERBAIKAN v3 — Upvote, Notifikasi, Featured, Badges
   ============================================================ */

/* Upvote button */
#btn-upvote { transition: all .2s; }
#btn-upvote:hover:not(:disabled) {
  border-color: #e22c2c !important;
  background: #fff0f0 !important;
  color: #e22c2c !important;
}
#btn-upvote:disabled { cursor: default !important; }

/* Card featured highlight */
.exp-card.is-featured {
  border: 2px solid #f0c040;
  background: linear-gradient(135deg, #fffdf0 0%, #fff 100%);
  position: relative;
}
.exp-card.is-featured::before {
  content: '⭐ Featured';
  position: absolute;
  top: -1px;
  right: 12px;
  background: #f0c040;
  color: #7a5c00;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 0 0 8px 8px;
}

/* Card sponsored */
.exp-card.is-sponsored::after {
  content: '💼 Sponsored';
  display: block;
  font-size: 11px;
  color: #0c5460;
  background: #e8f4f8;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 8px;
  width: fit-content;
}

/* Brand verified badge */
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #d4edda;
  color: #155724;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}

/* Upvote count in card footer */
.exp-stat-upvote {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--abu);
  font-size: 13px;
}

/* Notifikasi dropdown */
#notif-dropdown { transition: opacity .15s; }
#notif-dropdown a:hover { background: var(--abu-muda) !important; }

/* Honeypot — pastikan tersembunyi */
.peng-hp-wrap { display: none !important; position: absolute; left: -9999px; }

/* Sponsored label di single page */
.sponsored-label {
  display: inline-block;
  background: #e8f4f8;
  color: #0c5460;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-right: 8px;
}


/* ============================================================
   TOP KONTRIBUTOR SECTION — Homepage
   ============================================================ */
.topkontributor-section {
  background: linear-gradient(135deg, #FFF9F0 0%, #FFFDF8 50%, #F5F4F2 100%);
  border-top: 1px solid var(--abu-border);
  border-bottom: 1px solid var(--abu-border);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.topkontributor-section::before {
  content: '🏆';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  opacity: 0.04;
  pointer-events: none;
  line-height: 1;
}
.topkontributor-inner { max-width: 900px; margin: 0 auto; }

.topkontributor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}
.topkontributor-sub {
  font-size: 15px;
  color: var(--abu);
  margin-top: 8px;
  max-width: 520px;
  line-height: 1.6;
}

/* PODIUM */
.topkontributor-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}
.podium-card {
  background: var(--putih);
  border: 2px solid var(--abu-border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  flex: 1;
  max-width: 240px;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.podium-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.podium-gold {
  border-color: #F0B429;
  background: linear-gradient(180deg, #FFFBF0 0%, #fff 60%);
  transform: translateY(-16px);
  box-shadow: 0 8px 32px rgba(240,180,41,0.18);
}
.podium-gold:hover { transform: translateY(-20px); }

.podium-silver {
  border-color: #B8C4CC;
  background: linear-gradient(180deg, #F8FAFB 0%, #fff 60%);
}
.podium-bronze {
  border-color: #D4916A;
  background: linear-gradient(180deg, #FFF7F3 0%, #fff 60%);
}

.podium-medal { font-size: 36px; margin-bottom: 12px; line-height: 1; }
.podium-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--merah);
  color: var(--putih);
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-family: var(--font-display);
}
.podium-gold .podium-avatar { background: linear-gradient(135deg, #F0B429, #E67E22); }
.podium-silver .podium-avatar { background: linear-gradient(135deg, #B8C4CC, #8A9BA8); }
.podium-bronze .podium-avatar { background: linear-gradient(135deg, #D4916A, #C0392B); }

.podium-name { font-size: 15px; font-weight: 700; color: var(--hitam); margin-bottom: 4px; font-family: var(--font-display); }
.podium-level { font-size: 11px; color: var(--abu); margin-bottom: 10px; }
.podium-count {
  display: inline-block;
  background: var(--abu-muda);
  border: 1px solid var(--abu-border);
  border-radius: 40px;
  padding: 4px 14px;
  font-size: 13px;
  color: var(--abu-gelap);
}
.podium-count strong { color: var(--merah); }
.podium-gold .podium-count { background: rgba(240,180,41,0.12); border-color: #F0B429; }

/* LEADERBOARD TABLE */
.topkontributor-table {
  background: var(--putih);
  border: 1px solid var(--abu-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.topkontributor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--abu-border);
  transition: background .15s;
}
.topkontributor-row:last-child { border-bottom: none; }
.topkontributor-row:hover { background: var(--abu-muda); }

.tk-rank { font-size: 13px; font-weight: 700; color: var(--abu); width: 28px; flex-shrink: 0; }
.tk-avatar-sm {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--merah-muda);
  border: 2px solid var(--merah);
  color: var(--merah);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tk-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--hitam); }
.tk-count { font-size: 13px; color: var(--abu); font-weight: 500; white-space: nowrap; }

/* CTA */
.topkontributor-cta {
  text-align: center;
  padding: 28px;
  background: var(--putih);
  border: 1px solid var(--abu-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topkontributor-cta p { font-size: 15px; color: var(--abu-gelap); text-align: left; margin: 0; }
.btn-tulis-kontributor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--merah);
  color: var(--putih);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 40px;
  white-space: nowrap;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.btn-tulis-kontributor:hover { background: var(--merah-gelap); transform: translateY(-2px); }

/* Responsive */
@media (max-width: 768px) {
  .topkontributor-header { flex-direction: column; gap: 8px; }
  .topkontributor-podium { gap: 10px; }
  .podium-card { padding: 16px 12px; }
  .podium-gold { transform: translateY(-10px); }
  .podium-gold:hover { transform: translateY(-14px); }
  .podium-medal { font-size: 26px; }
  .podium-avatar { width: 48px; height: 48px; font-size: 16px; }
  .podium-name { font-size: 13px; }
  .topkontributor-cta { flex-direction: column; text-align: center; }
  .topkontributor-cta p { text-align: center; }
}
@media (max-width: 480px) {
  .topkontributor-podium { gap: 6px; }
  .podium-card { padding: 12px 8px; max-width: 120px; }
  .podium-avatar { width: 40px; height: 40px; font-size: 14px; }
}

/* ============================================================
   BUDDYPRESS — GLOBAL OVERRIDE
   Menyesuaikan seluruh tampilan BuddyPress dengan design
   system pengalaman.id
   ============================================================ */

/* Reset BuddyPress default */
#buddypress * { box-sizing: border-box; }
#buddypress a { color: var(--merah); }
#buddypress a:hover { text-decoration: underline; }
#buddypress table { border-collapse: collapse; width: 100%; }

/* ── CONTAINER UTAMA ── */
#buddypress { max-width: 960px; margin: 0 auto; padding: 0 24px 64px; }

/* ── HEADER PROFIL (cover + avatar + nama) ── */
#buddypress #item-header {
  background: var(--abu-muda);
  border: 1px solid var(--abu-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0;
}
#buddypress #item-header-cover-image {
  height: 200px;
  background: linear-gradient(135deg, var(--hitam) 0%, #2C2C2C 100%);
  position: relative;
  overflow: hidden;
}
#buddypress #item-header-cover-image::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(ellipse at 20% 50%, rgba(192,57,43,0.2) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 20%, rgba(230,126,34,0.1) 0%, transparent 50%);
}
#buddypress #item-header-avatar {
  position: relative;
  z-index: 2;
  margin: -48px 0 0 32px;
  display: inline-block;
}
#buddypress #item-header-avatar img,
#buddypress #item-header-avatar a img {
  width: 96px !important;
  height: 96px !important;
  border-radius: 50% !important;
  border: 4px solid var(--putih) !important;
  box-shadow: var(--shadow-md) !important;
  display: block !important;
  object-fit: cover;
}
/* Avatar placeholder jika belum ada foto */
#buddypress #item-header-avatar .avatar-placeholder,
#buddypress #item-header-avatar img[src*="mystery"],
#buddypress #item-header-avatar img[src*="default"] {
  background: linear-gradient(135deg, var(--merah), var(--oranye)) !important;
}

#buddypress #item-header-content {
  padding: 12px 32px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
#buddypress #item-header-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--hitam);
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}
#buddypress #item-header-content .activity {
  font-size: 12px;
  color: var(--abu);
  margin: 0;
}

/* Tombol edit profil di header */
#buddypress #item-header-content .generic-button a,
#buddypress #item-header-content .friendship-button a,
#buddypress #item-header-content .send-message a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--merah);
  color: var(--putih) !important;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 40px;
  border: none;
  text-decoration: none !important;
  transition: background .15s, transform .15s;
}
#buddypress #item-header-content .generic-button a:hover { background: var(--merah-gelap); transform: translateY(-1px); }

/* ── NAVIGASI TAB (Aktivitas, Profil, dll) ── */
#buddypress #object-nav,
#buddypress .item-list-tabs#subnav {
  background: var(--putih);
  border: 1px solid var(--abu-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 28px;
  overflow: hidden;
}
#buddypress #object-nav ul,
#buddypress .item-list-tabs ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0; padding: 0;
  border-bottom: 2px solid var(--abu-border);
}
#buddypress #object-nav ul li,
#buddypress .item-list-tabs ul li {
  margin: 0;
}
#buddypress #object-nav ul li a,
#buddypress .item-list-tabs ul li a {
  display: block;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--abu-gelap) !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
#buddypress #object-nav ul li a:hover { color: var(--merah) !important; }
#buddypress #object-nav ul li.current a,
#buddypress .item-list-tabs ul li.current a,
#buddypress #object-nav ul li.selected a {
  color: var(--merah) !important;
  border-bottom-color: var(--merah);
}
/* Count badge di tab */
#buddypress #object-nav ul li a span,
#buddypress .item-list-tabs ul li a span {
  display: inline-block;
  background: var(--abu-muda);
  border: 1px solid var(--abu-border);
  color: var(--abu);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 40px;
  margin-left: 4px;
}
#buddypress #object-nav ul li.current a span { background: var(--merah-muda); border-color: var(--merah); color: var(--merah); }

/* ── KONTEN AREA ── */
#buddypress div.item-list-tabs + div#item-body,
#buddypress #item-body {
  background: var(--putih);
  border: 1px solid var(--abu-border);
  border-radius: var(--radius);
  padding: 32px;
}

/* ── FORM EDIT PROFIL ── */
#buddypress form#profile-edit-form fieldset,
#buddypress form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}
#buddypress form legend,
#buddypress form fieldset > div > label,
#buddypress form p > label,
#buddypress form dl dt label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--hitam);
  margin-bottom: 6px;
  text-transform: none;
}
#buddypress form input[type="text"],
#buddypress form input[type="email"],
#buddypress form input[type="url"],
#buddypress form input[type="password"],
#buddypress form textarea,
#buddypress form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--abu-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--hitam);
  font-family: var(--font-body);
  background: var(--putih);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  appearance: none;
}
#buddypress form input:focus,
#buddypress form textarea:focus,
#buddypress form select:focus {
  border-color: var(--merah);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.08);
}
#buddypress form textarea { min-height: 100px; resize: vertical; }
#buddypress form p.description,
#buddypress form .description {
  font-size: 12px;
  color: var(--abu);
  margin-top: 4px;
}

/* Tombol submit */
#buddypress form input[type="submit"],
#buddypress form button[type="submit"],
#buddypress .generic-button button {
  background: var(--merah);
  color: var(--putih);
  border: none;
  padding: 11px 28px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .15s, transform .15s;
}
#buddypress form input[type="submit"]:hover { background: var(--merah-gelap); transform: translateY(-1px); }

/* ── AVATAR / FOTO PROFIL (One User Avatar) ── */
#buddypress #avatar-upload-form,
#buddypress .bp-avatar,
.one-user-avatar-wrap,
#buddypress #profile-avatar-form {
  text-align: center;
}
#buddypress #avatar-upload-form img,
#buddypress .bp-avatar img,
#buddypress #profile-avatar-form img {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  border: 4px solid var(--abu-border) !important;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
}
#buddypress .bp-avatar .bp-avatar-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  border: none;
}
#buddypress .bp-avatar .bp-avatar-nav li a {
  padding: 8px 18px;
  border: 1px solid var(--abu-border);
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  color: var(--abu-gelap) !important;
  text-decoration: none !important;
  transition: all .15s;
}
#buddypress .bp-avatar .bp-avatar-nav li.current a,
#buddypress .bp-avatar .bp-avatar-nav li a:hover {
  background: var(--merah); color: var(--putih) !important; border-color: var(--merah);
}
/* Drop zone upload */
#buddypress .bp-avatar #bp-avatar-upload-ui {
  border: 2px dashed var(--abu-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  background: var(--abu-muda);
  transition: border-color .2s;
}
#buddypress .bp-avatar #bp-avatar-upload-ui:hover { border-color: var(--merah); }
#buddypress .bp-avatar #bp-avatar-upload-ui p { font-size: 14px; color: var(--abu); margin-bottom: 12px; }
#buddypress .bp-avatar #bp-avatar-upload-ui input[type="file"] { display: none; }
#buddypress #bp-delete-avatar-button,
#buddypress .bp-avatar #bp-avatar-upload-ui .bp-button,
#buddypress .bp-avatar .avatar-nav-items a {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 40px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}

/* ── AKTIVITAS FEED ── */
#buddypress #activity-stream li.activity-item {
  background: var(--putih);
  border: 1px solid var(--abu-border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  list-style: none;
  transition: box-shadow .2s;
}
#buddypress #activity-stream li.activity-item:hover { box-shadow: var(--shadow-md); }
#buddypress .activity-header { font-size: 14px; color: var(--abu-gelap); margin-bottom: 8px; }
#buddypress .activity-header a { color: var(--merah) !important; font-weight: 600; }
#buddypress .activity-content { font-size: 14px; color: var(--hitam); line-height: 1.7; }
#buddypress .activity-meta a {
  font-size: 12px; color: var(--abu);
  text-decoration: none !important;
  padding: 4px 10px;
  border: 1px solid var(--abu-border);
  border-radius: 20px;
  margin-right: 6px;
  transition: all .15s;
}
#buddypress .activity-meta a:hover { border-color: var(--merah); color: var(--merah) !important; }

/* ── NOTIFIKASI ── */
#buddypress #notifications-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--abu-border);
  font-size: 14px;
  transition: background .15s;
}
#buddypress #notifications-list li:hover { background: var(--abu-muda); }
#buddypress #notifications-list li:last-child { border-bottom: none; }
#buddypress #notifications-list li.unread { background: var(--merah-muda); }
#buddypress #notifications-list li.unread a { color: var(--merah) !important; font-weight: 600; }

/* ── PENGATURAN (Settings) ── */
#buddypress #settings-form .checkbox label,
#buddypress #settings-form .radio label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; cursor: pointer;
}

/* ── PESAN KOSONG ── */
#buddypress .bp-feedback,
#buddypress div.info,
#buddypress div.error,
#buddypress div.updated {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}
#buddypress div.info { background: #EBF5FB; border-left: 3px solid #2980B9; color: #1A5276; }
#buddypress div.error { background: var(--merah-muda); border-left: 3px solid var(--merah); color: var(--merah-gelap); }
#buddypress div.updated { background: #EAFAF1; border-left: 3px solid var(--hijau); color: #1D6A39; }

/* ── NO ACTIVITY MESSAGE ── */
#buddypress #activity-stream li.load-more a,
#buddypress .load-more a {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--abu-muda);
  border: 1px solid var(--abu-border);
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  color: var(--abu-gelap) !important;
  text-decoration: none !important;
  transition: all .15s;
}
#buddypress #activity-stream li.load-more a:hover { border-color: var(--merah); color: var(--merah) !important; }

/* ── HALAMAN ANGGOTA (member directory) ── */
#buddypress #members-list li {
  background: var(--putih);
  border: 1px solid var(--abu-border);
  border-radius: var(--radius);
  padding: 20px;
  list-style: none;
  transition: box-shadow .2s, transform .2s;
}
#buddypress #members-list li:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
#buddypress #members-list .item-avatar img {
  width: 60px !important; height: 60px !important;
  border-radius: 50% !important;
  border: 2px solid var(--abu-border) !important;
}
#buddypress #members-list .item-meta { font-size: 12px; color: var(--abu); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  #buddypress { padding: 0 16px 40px; }
  #buddypress #item-header-content { padding: 12px 16px 20px; }
  #buddypress #item-header-content h2 { font-size: 18px; }
  #buddypress #item-header-cover-image { height: 140px; }
  #buddypress #item-header-avatar { margin-left: 16px; }
  #buddypress #item-header-avatar img { width: 72px !important; height: 72px !important; }
  #buddypress #item-body { padding: 20px 16px; }
  #buddypress #object-nav ul li a { padding: 12px 14px; font-size: 13px; }
  #buddypress #object-nav ul { overflow-x: auto; flex-wrap: nowrap; }
}

/* ============================================================
   ONE USER AVATAR — Fix tampilan & upload button
   ============================================================ */
.oua-wrap,
.one_user_avatar_wrap,
#one-user-avatar { text-align: center; }

/* Avatar preview */
.oua-wrap img,
.one_user_avatar_wrap img,
#one-user-avatar img {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  border: 4px solid var(--abu-border) !important;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
}

/* Wrapper tombol upload */
.oua-wrap form,
.one_user_avatar_wrap form { margin-top: 12px; }

.oua-wrap input[type="file"],
.one_user_avatar_wrap input[type="file"] {
  display: block;
  margin: 0 auto 12px;
  font-size: 13px;
  color: var(--abu-gelap);
  background: var(--abu-muda);
  border: 1px dashed var(--abu-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  width: 100%;
  cursor: pointer;
}
.oua-wrap input[type="file"]:hover,
.one_user_avatar_wrap input[type="file"]:hover { border-color: var(--merah); }

.oua-wrap input[type="submit"],
.one_user_avatar_wrap input[type="submit"] {
  background: var(--merah);
  color: var(--putih);
  border: none;
  padding: 10px 24px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .15s;
}
.oua-wrap input[type="submit"]:hover,
.one_user_avatar_wrap input[type="submit"]:hover { background: var(--merah-gelap); }

/* Label upload */
.oua-wrap label,
.one_user_avatar_wrap label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--abu-gelap);
  margin-bottom: 8px;
}

/* Pesan error/success */
.oua-wrap .updated,
.oua-wrap .error,
.one_user_avatar_wrap .updated,
.one_user_avatar_wrap .error {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 12px;
}

/* Fix: avatar di BuddyPress header saat pakai One User Avatar */
#buddypress #item-header-avatar .one_user_avatar_wrap img,
#buddypress #item-header-avatar .oua-wrap img {
  width: 96px !important;
  height: 96px !important;
  border: 4px solid var(--putih) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Tombol "Ganti Foto" yang muncul di profil */
.bp-avatar-status { font-size: 13px; color: var(--abu); margin-top: 8px; }
