/* LOVE678 Live Guide — palette from brand logo (violet / deep purple) */
:root {
  --love-header: #0e0618;
  --love-header-border: #2a1545;
  --love-accent: #a33cf0;
  --love-accent-dark: #6b18b8;
  --love-accent-soft: #f3e8fc;
  --love-bg: #f8f6fb;
  --love-surface: #ffffff;
  --love-text: #1a1224;
  --love-muted: #6a6178;
  --love-border: #e6dff0;
  --love-glow: #c56bff;
  --love-prose-max: 820px;
  --love-radius: 6px;
  --bs-primary: #a33cf0;
  --bs-link-color: #8b2ad9;
  --bs-link-hover-color: #6b18b8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--love-text);
  background: var(--love-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  padding-bottom: 76px;
  overscroll-behavior-y: contain;
}

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

a {
  color: var(--love-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--love-accent-dark);
}

/* Header / Nav */
.site-header {
  background: var(--love-header);
  border-bottom: 1px solid var(--love-header-border);
}

.navbar-love {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.navbar-love .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff !important;
  text-decoration: none;
}

.navbar-love .navbar-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(176, 64, 248, 0.35);
}

.navbar-love .nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem !important;
}

.navbar-love .nav-link:hover,
.navbar-love .nav-link.active {
  color: #fff !important;
}

.navbar-love .nav-link.active {
  box-shadow: inset 0 -2px 0 var(--love-glow);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero / Magazine */
.hero-magazine {
  background:
    radial-gradient(ellipse 80% 70% at 70% 20%, rgba(176, 64, 248, 0.35), transparent 55%),
    linear-gradient(165deg, #0a0414 0%, #1a0a32 42%, #3b1280 100%);
  color: #fff;
  padding: 2.25rem 0 2.5rem;
  border-bottom: 3px solid var(--love-accent);
}

.hero-magazine .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e0c4ff;
  margin-bottom: 0.65rem;
}

.hero-magazine h1 {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 740;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  max-width: 18ch;
}

.hero-magazine .lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 42rem;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.btn-hero-unduh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #ac41fe, #590bad);
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(172, 65, 254, 0.28);
  touch-action: manipulation;
}

.btn-hero-unduh:hover,
.btn-hero-unduh:focus-visible {
  filter: brightness(1.06);
  color: #fff !important;
}

@media (max-width: 575.98px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn-hero-unduh {
    width: 100%;
    min-height: 48px;
  }
}

/* Layout */
.page-wrap {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.prose-col {
  max-width: var(--love-prose-max);
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--love-muted);
}

.breadcrumb a {
  text-decoration: none;
}

.article-meta {
  color: var(--love-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.badge-topic {
  display: inline-block;
  background: var(--love-accent-soft);
  color: var(--love-accent-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
}

.badge-topic:hover {
  background: #e6d0fa;
  color: var(--love-accent-dark);
}

/* Cards */
.topic-card,
.content-card,
.widget-card {
  background: var(--love-surface);
  border: 1px solid var(--love-border);
  border-radius: var(--love-radius);
  box-shadow: none;
}

.topic-card {
  height: 100%;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.topic-card:hover {
  border-color: #d4b8c4;
}

.topic-card .card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a0a32, #a33cf0 70%);
  position: relative;
  overflow: hidden;
}

.topic-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.topic-card .card-media span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.85rem 1rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.topic-card .card-body,
.content-card .card-body,
.widget-card .card-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.topic-card h2,
.topic-card .h2-like {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.topic-card p {
  color: var(--love-muted);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.btn-love {
  display: inline-block;
  background: var(--love-accent);
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 0.45rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(163, 60, 240, 0.28);
}

.btn-love:hover {
  background: var(--love-accent-dark);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(107, 24, 184, 0.35);
}

.btn-outline-love {
  display: inline-block;
  background: transparent;
  color: var(--love-accent) !important;
  border: 1px solid var(--love-accent);
  border-radius: 4px;
  padding: 0.45rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
}

.btn-outline-love:hover {
  background: var(--love-accent-soft);
}

/* Article body */
.article-body {
  background: var(--love-surface);
  border: 1px solid var(--love-border);
  border-radius: var(--love-radius);
  padding: 1.35rem 1.25rem 1.75rem;
}

@media (min-width: 768px) {
  .article-body {
    padding: 1.75rem 1.85rem 2.1rem;
  }
}

.article-body h1 {
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  font-weight: 740;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  padding-top: 0.25rem;
  scroll-margin-top: 5rem;
}

.article-body h3 {
  font-size: 1.12rem;
  font-weight: 680;
  margin: 1.5rem 0 0.55rem;
  scroll-margin-top: 5rem;
}

.article-body p {
  margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.article-body figure {
  margin: 1.25rem 0;
}

.article-body figcaption {
  font-size: 0.85rem;
  color: var(--love-muted);
  margin-top: 0.4rem;
}

.cover-art {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: var(--love-radius);
  background: linear-gradient(120deg, #0a0414 0%, #401098 45%, #a33cf0 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cover-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-art .cover-caption {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  margin: -1.25rem;
  margin-top: auto;
}

.cover-art strong {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

/* TOC */
.toc-box {
  background: #f7f2fc;
  border: 1px solid var(--love-border);
  border-left: 3px solid var(--love-accent);
  border-radius: var(--love-radius);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0 1.5rem;
}

.toc-box .toc-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
  color: var(--love-text);
}

.toc-box ol {
  margin: 0;
  padding-left: 1.15rem;
}

.toc-box li {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.toc-box a {
  text-decoration: none;
}

.toc-box a:hover {
  text-decoration: underline;
}

/* Sidebar widgets */
.widget-card {
  margin-bottom: 1.15rem;
}

.widget-card .widget-header {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--love-border);
  background: #f7f2fc;
  border-radius: var(--love-radius) var(--love-radius) 0 0;
}

.widget-card .card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget-list li {
  border-bottom: 1px solid var(--love-border);
}

.widget-list li:last-child {
  border-bottom: none;
}

.widget-list a {
  display: block;
  padding: 0.55rem 0;
  color: var(--love-text);
  text-decoration: none;
  font-size: 0.95rem;
}

.widget-list a:hover {
  color: var(--love-accent);
}

.popular-topics a {
  display: inline-block;
  margin: 0 0.35rem 0.45rem 0;
  padding: 0.3rem 0.65rem;
  background: var(--love-accent-soft);
  color: var(--love-accent-dark);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.popular-topics a:hover {
  background: #e6d0fa;
}

/* LOVE678 recommend — user-initiated only */
.love678-box {
  border: 1px solid #dcc4f2;
  background: linear-gradient(180deg, #fff 0%, #f7f0fc 100%);
  border-radius: var(--love-radius);
  padding: 1.15rem 1.2rem;
  margin: 1.75rem 0;
  box-shadow: 0 0 0 1px rgba(163, 60, 240, 0.04);
}

.love678-box .love678-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.love678-box .love678-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--love-border);
}

.love678-box h2,
.love678-box .widget-title {
  font-size: 1.05rem;
  font-weight: 720;
  margin: 0 0 0.5rem;
  color: var(--love-text);
}

.love678-box p {
  font-size: 0.95rem;
  color: var(--love-muted);
  margin-bottom: 0.85rem;
}

.love678-box .disclaimer {
  font-size: 0.8rem;
  color: var(--love-muted);
  margin-top: 0.65rem;
  margin-bottom: 0;
}

.widget-card .love678-side-img {
  width: 100%;
  max-width: 160px;
  height: auto;
  margin: 0 auto 0.75rem;
  display: block;
  border-radius: 8px;
}

/* FAQ */
.faq-section {
  margin-top: 2rem;
  padding-top: 0.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--love-border);
  padding: 0.95rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--love-border);
}

.faq-item h3 {
  font-size: 1.02rem;
  margin: 0 0 0.4rem;
}

.faq-item p {
  margin: 0;
  color: var(--love-muted);
  font-size: 0.96rem;
}

/* Related */
.related-grid .content-card {
  height: 100%;
}

.related-grid h3 {
  font-size: 1.02rem;
  margin: 0 0 0.4rem;
}

.related-grid p {
  font-size: 0.9rem;
  color: var(--love-muted);
  margin: 0;
}

.section-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--love-muted);
  margin-bottom: 0.85rem;
}

/* Featured magazine row */
.featured-panel {
  background: var(--love-surface);
  border: 1px solid var(--love-border);
  border-radius: var(--love-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.featured-panel .featured-media {
  aspect-ratio: 16 / 8;
  background: linear-gradient(125deg, #0a0414, #401098 55%, #a33cf0);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.35rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.featured-panel .featured-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-panel .featured-media .featured-caption {
  position: relative;
  z-index: 1;
  width: 100%;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.featured-panel .featured-body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.featured-panel h2 {
  font-size: 1.35rem;
  font-weight: 720;
  margin: 0 0 0.55rem;
}

.featured-panel p {
  color: var(--love-muted);
  margin-bottom: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--love-header);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.25rem 0;
  margin-top: auto;
  font-size: 0.92rem;
}

.site-footer a {
  color: #e0c4ff;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer .brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.age-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.75rem;
}

/* Utility */
.muted {
  color: var(--love-muted);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--love-accent);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

@media (max-width: 991.98px) {
  .sidebar-col {
    margin-top: 2rem;
  }

  .hero-magazine h1 {
    max-width: none;
  }

  /* Cheaper paint on phones: drop radial blob + heavy shadows */
  .hero-magazine {
    background: linear-gradient(165deg, #0a0414 0%, #1a0a32 48%, #3b1280 100%);
  }

  .topic-card {
    transition: none;
  }

  .btn-love,
  .floatbar a,
  .btn-hero-unduh {
    box-shadow: none;
  }

  .floatbar {
    background: #fff;
    box-shadow: 0 -1px 0 #ead9ff;
    /* isolate fixed bar from page scroll compositing */
    transform: translateZ(0);
    contain: layout style paint;
  }

  .topic-card,
  .content-card,
  .blog-card,
  .widget-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
  }

  .btn-hero-unduh:hover,
  .btn-hero-unduh:focus-visible,
  .floatbar a:hover,
  .floatbar a:focus-visible {
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


.search-header {
  min-width: 7.5rem;
  background: #170a2a;
  border: 1px solid #3d2460;
  color: #fff;
}
.search-header::placeholder { color: rgba(224, 196, 255, 0.55); }
.btn-love-search {
  background: var(--love-accent);
  color: #fff !important;
  border: none;
  font-weight: 600;
}
.btn-love-search:hover { background: var(--love-accent-dark); color: #fff !important; }

/* Bottom floatbar — LOVE678 style */
.floatbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 997;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #ead9ff;
  box-shadow: 0 -4px 20px rgba(89, 11, 173, 0.12);
}

.floatbar a {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 8px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ac41fe, #590bad);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(89, 11, 173, 0.12);
  box-shadow: 0 2px 10px rgba(163, 60, 240, 0.25);
}

.floatbar a:hover,
.floatbar a:focus-visible {
  filter: brightness(1.06);
  color: #fff !important;
}

@media (min-width: 768px) {
  .floatbar {
    gap: 10px;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .floatbar a {
    min-height: 48px;
    font-size: 14px;
  }
}

/* Blog CMS (synced from /blog/cms) */
.hero-compact {
  padding-bottom: 2rem;
}

.blog-card {
  border: 1px solid var(--love-border);
  background: var(--love-surface);
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 0 rgba(26, 18, 36, 0.04);
}

.blog-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card .card-body {
  padding: 1rem 1.1rem 1.25rem;
}

.blog-date {
  color: var(--love-muted);
  font-size: 0.85rem;
}

.blog-excerpt {
  color: #3d3548;
  font-size: 0.95rem;
  line-height: 1.55;
}

.blog-featured .h5 {
  font-size: 1.35rem;
}

.article-cover img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.article-body h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-body ul {
  padding-left: 1.2rem;
}

.blog-meta {
  font-size: 0.9rem;
}

.pillar-hub {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid #ac41fe;
  background: rgba(172, 65, 254, 0.08);
}


/* Soft commercial chrome (SEO): single CTA */
.floatbar-soft {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  left: 12px;
  right: 12px;
  width: auto;
}
.floatbar-soft a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}
body.no-floatbar .floatbar { display: none !important; }
