/* ===== BlogLite CMS — gaya tambahan di atas Bulma ===== */

:root {
  --brand: #00d1b2;
  --brand-dark: #009e86;
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

/* Atribut hidden selalu menang atas display dari class Bulma */
[hidden] {
  display: none !important;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* Aksesibilitas: tautan lompat */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 100;
}

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

.brand-logo {
  font-size: 1.2em;
}

/* Logo situs terunggah di navbar */
.site-logo {
  max-height: 40px;
  width: auto;
}

/* Pratinjau logo/favicon di halaman pengaturan */
.branding-preview img {
  max-height: 56px;
  width: auto;
}

/* ===== Beranda gaya news portal ===== */
.portal-hero {
  background: #0b1020;
  padding: 1.75rem 0 2.25rem;
}

.portal-kicker {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 0.1rem;
}

.portal-title {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.portal-search .input {
  border-color: transparent;
  min-width: 220px;
}

.portal-grid {
  margin-top: 0.25rem;
}

/* Kartu sorotan utama */
.hero-main {
  position: relative;
  display: block;
  min-height: 430px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.hero-main-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.75rem;
}

.hero-main-title {
  line-height: 1.15;
  margin-bottom: 0.5rem !important;
}

.hero-main-excerpt {
  max-width: 60ch;
  line-height: 1.55;
}

/* Kartu sorotan samping */
.portal-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-side {
  position: relative;
  display: block;
  flex: 1;
  min-height: 135px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-side:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.hero-side-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.15rem;
}

.hero-side-body .title {
  line-height: 1.25;
}

/* Judul seksi daftar artikel */
.portal-heading {
  position: relative;
  font-size: 1.35rem;
  font-weight: 800;
  padding-left: 0.85rem;
  margin-bottom: 1.25rem !important;
}

.portal-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: 3px;
  background: var(--brand);
}

/* Kartu artikel */
.post-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.post-card .title a {
  color: inherit;
}

/* Sidebar */
.sidebar .title {
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.recent-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.recent-list li:last-child {
  border-bottom: 0;
}

.recent-list a {
  display: block;
  font-weight: 600;
  color: #363636;
}

.recent-list a:hover {
  color: var(--brand-dark);
}

.recent-list .is-size-7 {
  display: block;
}

.cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
}

.cat-list a {
  color: #363636;
  font-weight: 500;
}

.cat-list a:hover {
  color: var(--brand-dark);
}

/* Artikel */
.post-article .post-body {
  font-size: 1.1rem;
  line-height: 1.8;
}

.post-article .post-body img {
  height: auto;
}

.post-article .post-body pre {
  padding: 1rem;
  border-radius: 6px;
}

.author-box .author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
}

.comment-box {
  border-left: 4px solid var(--brand);
}

/* Footer */
footer .footer-links a {
  color: #dbdbdb;
  display: inline-block;
  padding: 0.15rem 0;
}

footer .footer-links a:hover {
  color: #fff;
}

footer .tag.is-dark:hover {
  background: #485fc7;
}

/* Tautan halaman legal di footer */
.legal-links {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 1.5rem;
}

.legal-links a {
  color: #b5b5b5;
  display: inline-block;
  padding: 0.15rem 0;
}

.legal-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Tombol ke atas */
.scroll-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 30;
}

/* Halaman 404 */
.notfound-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Honeypot form komentar (tersembunyi dari manusia) */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  height: 1px;
  width: 1px;
  opacity: 0;
}

/* ===== Halaman login admin ===== */
.login-page {
  background: linear-gradient(135deg, #141e30, #243b55);
  min-height: 100vh;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-box {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  padding: 2rem;
}

/* ===== Area admin ===== */
.stat-box {
  border-top: 4px solid var(--brand);
}

.code-area {
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 0.95rem;
}

.is-inline-block {
  display: inline-block;
}

.seo-preview {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background: #fff;
  max-width: 600px;
}

.seo-preview-url {
  color: #202124;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.seo-preview-title {
  color: #1a0dab;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0.25rem 0;
}

.seo-preview-desc {
  color: #4d5156;
  font-size: 0.85rem;
  line-height: 1.5;
}

.seo-tips {
  margin-left: 1.1rem;
}

.seo-tips li {
  list-style: disc;
  margin-bottom: 0.3rem;
}

.text-uppercase {
  text-transform: uppercase;
}
