/* NotesPoint Indonesia - Main Stylesheet (SEO & Core Web Vitals Optimized) */
:root {
  --bg-body: #0b1120;
  --bg-surface: #0f172a;
  --bg-card: #162033;
  --bg-card-alt: #1e293b;
  --border-color: #263449;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --gold: #ffd700;
  --gold-dark: #d4af37;
  --accent-blue: #38bdf8;
  --accent-green: #34d399;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #fff2a6;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background-color: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  height: 46px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
}

.auth-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-login {
  border: 1.5px solid var(--gold-dark);
  color: var(--gold);
  background: transparent;
}

.btn-login:hover {
  background: rgba(212, 175, 55, 0.14);
  color: #ffffff;
}

.btn-daftar {
  background: linear-gradient(135deg, #ffd700, #d4af37);
  color: #0b1120;
  border: 1.5px solid #ffd700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.28);
}

.btn-daftar:hover {
  color: #0b1120;
  background: linear-gradient(135deg, #ffe44d, #e0bd48);
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumb li::after {
  content: "/";
  margin-left: 8px;
  color: #475569;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--gold);
}

/* Banner Section */
.banner-section {
  margin: 14px 0 28px;
}

.banner-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.banner-link img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Main Grid Layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
  padding-bottom: 56px;
}

/* Article Card */
.article-main {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.label-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.45);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.article-main h1 {
  font-size: 2.15rem;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.article-meta strong {
  color: var(--text-primary);
}

.eeat-verified {
  color: var(--accent-green);
  font-weight: 600;
}

.lead-paragraph {
  font-size: 1.08rem;
  color: #e2e8f0;
  margin-bottom: 24px;
}

.article-main h2 {
  font-size: 1.55rem;
  color: var(--gold);
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: 96px;
}

.article-main h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin: 22px 0 10px;
}

.article-main p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.article-main ul,
.article-main ol {
  margin: 0 0 18px 22px;
  color: var(--text-secondary);
}

.article-main li {
  margin-bottom: 8px;
}

/* Table of Contents */
.toc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0 28px;
}

.toc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.toc-box ol {
  margin: 0 0 0 20px;
}

.toc-box li {
  margin-bottom: 6px;
}

.toc-box a {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.toc-box a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Figures & Images */
.article-figure {
  margin: 26px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.article-figure img {
  width: 100%;
}

.article-figure figcaption {
  padding: 12px 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

thead {
  background: #1e293b;
}

th {
  color: var(--gold);
  text-align: left;
  padding: 13px 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--gold-dark);
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: top;
}

tbody tr:nth-child(even) {
  background: rgba(30, 41, 59, 0.35);
}

/* Callout Box */
.callout-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-left: 4px solid var(--accent-blue);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 22px 0;
}

.callout-box strong {
  color: var(--accent-blue);
}

/* FAQ Accordion */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 16px 20px;
}

.faq-item summary {
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Author E-E-A-T Box */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px;
  margin-top: 34px;
}

.author-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-dark);
  flex-shrink: 0;
}

.author-info h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  color: var(--gold);
}

.author-role {
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 8px;
}

.author-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* References */
.references-box {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.references-box ol {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.cta-widget p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-list {
  list-style: none;
}

.widget-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

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

.widget-list a {
  color: var(--text-secondary);
}

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

/* Cards Grid for Homepage */
.hero-home {
  background: linear-gradient(135deg, #0f172a, #172542);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 42px 36px;
  margin: 24px 0 32px;
  box-shadow: var(--shadow);
}

.hero-home h1 {
  font-size: 2.3rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.hero-home p {
  color: var(--text-secondary);
  max-width: 760px;
  margin-bottom: 22px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}

.topic-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.topic-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

.topic-card h3 {
  color: var(--gold);
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.topic-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  background: #070b14;
  border-top: 1px solid var(--border-color);
  padding: 44px 0 26px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-grid h4 {
  color: #ffffff;
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 960px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .article-main {
    padding: 22px 18px;
  }
  .article-main h1 {
    font-size: 1.65rem;
  }
  .author-box {
    flex-direction: column;
  }
  .header-inner {
    justify-content: center;
    text-align: center;
  }
}
