/* Ruang Ide — Blog Desain Interior & Dekorasi */
/* Gaya: Abu charcoal-silver elegan, minimalis Skandinavia */

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

:root {
  --primary: #37474f;
  --accent: #b0bec5;
  --bg: #fafafa;
  --white: #ffffff;
  --text: #263238;
  --text-light: #607d8b;
  --border: #e0e4e6;
  --card-bg: #ffffff;
  --hero-bg: #37474f;
  --tag-bg: #eceff1;
  --tag-text: #546e7a;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(55,71,79,0.09);
  --shadow-hover: 0 6px 24px rgba(55,71,79,0.16);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

/* ── Demo Bar ── */
.demo-bar {
  background: var(--primary);
  color: var(--accent);
  text-align: center;
  font-size: 12px;
  padding: 7px 16px;
  letter-spacing: 0.04em;
}
.demo-bar a {
  color: #eceff1;
  font-weight: 600;
  text-decoration: underline;
  margin: 0 4px;
}
.demo-bar a:hover { color: #ffffff; }

/* ── Nav ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }

/* Mobile nav — checkbox hack */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle-label span {
  display: block;
  width: 22px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.25s;
}

@media (max-width: 700px) {
  .nav-toggle-label { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 61px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 2px solid var(--border);
    padding: 8px 0;
  }
  .nav-menu a {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
  }
  .nav-toggle:checked ~ .nav-menu { display: flex; }
}

/* ── Hero ── */
.hero {
  background: var(--hero-bg);
  color: var(--white);
  padding: 72px 20px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: rgba(176,190,197,0.12);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 220px; height: 220px;
  background: rgba(176,190,197,0.08);
  border-radius: 50%;
}
.hero-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(176,190,197,0.4);
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  margin: 0 auto 32px;
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-outline {
  border: 2px solid rgba(176,190,197,0.7);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(176,190,197,0.2);
  color: var(--white);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: #263238; color: var(--white); }
.btn-accent {
  background: var(--accent);
  color: var(--primary);
}
.btn-accent:hover { background: #cfd8dc; color: var(--primary); }

/* ── Section ── */
.section { padding: 56px 20px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.section-title span {
  display: block;
  width: 36px; height: 3px;
  background: var(--accent);
  margin-top: 6px;
  border-radius: 2px;
}
.see-all {
  font-size: 13px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.see-all:hover { color: var(--primary); }

/* ── Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.card-thumb svg { width: 100%; height: 100%; }

.card-body { padding: 20px; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 3px 10px;
  border-radius: 2px;
}
.date {
  font-size: 12px;
  color: var(--text-light);
}
.card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text);
}
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--primary); }
.card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.read-more:hover { color: var(--accent); }

/* ── Featured / Hero Card ── */
.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .featured-grid { grid-template-columns: 1fr; }
}
.card-featured .card-thumb { aspect-ratio: 16/10; }
.card-featured .card-body { padding: 24px; }
.card-featured h3 { font-size: 22px; }

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-mini {
  background: var(--card-bg);
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: flex;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.card-mini:hover { box-shadow: var(--shadow-hover); }
.card-mini .card-thumb {
  width: 100px;
  flex-shrink: 0;
  aspect-ratio: auto;
  height: 100%;
  min-height: 80px;
}
.card-mini .card-body {
  padding: 14px 16px;
  flex: 1;
}
.card-mini h3 { font-size: 14px; margin-bottom: 4px; }
.card-mini .date { margin-bottom: 0; }

/* ── Subscribe Banner ── */
.subscribe-band {
  background: var(--primary);
  color: var(--white);
  padding: 52px 20px;
  text-align: center;
}
.subscribe-band h2 {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  margin-bottom: 10px;
}
.subscribe-band p {
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
  font-size: 15px;
}
.subscribe-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.subscribe-form input {
  flex: 1;
  padding: 13px 18px;
  border: none;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  background: rgba(255,255,255,0.95);
  color: var(--text);
}
.subscribe-form button {
  padding: 13px 22px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}
.subscribe-form button:hover { background: #cfd8dc; }

/* ── Kategori chips ── */
.kategori-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}
.kategori-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.kategori-inner::-webkit-scrollbar { display: none; }
.chip {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--tag-bg);
  color: var(--tag-text);
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}
.chip:hover, .chip.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ── Artikel list page ── */
.artikel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* ── Detail halaman ── */
.detail-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
}
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}
.article-header { margin-bottom: 32px; }
.article-header .tag { margin-bottom: 14px; }
.article-header h1 {
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-light);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.author-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
}
.avatar-xs {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.article-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--primary);
  border-radius: 6px;
  margin-bottom: 36px;
  overflow: hidden;
}
.article-thumb svg { width: 100%; height: 100%; }

.article-body { font-size: 16px; line-height: 1.85; }
.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 14px;
  color: var(--primary);
}
.article-body p { margin-bottom: 20px; color: var(--text); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 28px 0;
  padding: 16px 24px;
  background: var(--tag-bg);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--text-light);
}
.article-body ul { padding-left: 20px; margin-bottom: 20px; }
.article-body li { margin-bottom: 6px; }

.article-tags { margin: 32px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.article-tags .tag { cursor: pointer; }

.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.share-btn {
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.share-btn:hover { background: var(--tag-bg); }

/* Sidebar */
.sidebar {}
.sidebar-widget {
  background: var(--white);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.widget-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.recent-list { list-style: none; }
.recent-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.recent-list li:last-child { border-bottom: none; }
.recent-list a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: block;
  margin-bottom: 2px;
}
.recent-list a:hover { color: var(--primary); }
.recent-list .date { font-size: 12px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Tentang ── */
.about-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 20px;
}
.about-hero {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.avatar-lg {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-intro h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}
.about-intro .role {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.stats-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 40px 0;
}
.stat-item { text-align: center; }
.stat-item .num {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  display: block;
}
.stat-item .lbl {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}
.misi-list { list-style: none; padding: 0; }
.misi-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}
.misi-icon {
  width: 36px; height: 36px;
  background: var(--tag-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.about-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--primary);
}
.about-body p { color: var(--text); margin-bottom: 16px; line-height: 1.8; }

/* ── Kontak ── */
.kontak-layout {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 20px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
}
@media (max-width: 780px) {
  .kontak-layout { grid-template-columns: 1fr; }
}
.kontak-form-section h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}
.kontak-form-section p {
  color: var(--text-light);
  margin-bottom: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 130px; }

.kontak-info h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
}
.info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.info-icon {
  width: 40px; height: 40px;
  background: var(--tag-bg);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-item p { font-size: 14px; color: var(--text); margin: 0; }
.info-item strong { display: block; color: var(--primary); margin-bottom: 2px; }

.sosmed-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.sosmed-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text);
  background: var(--white);
  transition: all 0.2s;
}
.sosmed-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--tag-bg);
}

.kolaborasi-box {
  background: var(--primary);
  color: var(--white);
  border-radius: 6px;
  padding: 24px;
  margin-top: 28px;
}
.kolaborasi-box h3 { font-size: 16px; margin-bottom: 10px; }
.kolaborasi-box p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.7; }

/* ── Artikel Terkait ── */
.related-section { margin-top: 48px; }
.related-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 540px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ── Footer ── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 48px 20px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(176,190,197,0.2);
  margin-bottom: 24px;
}
@media (max-width: 680px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
.footer-brand .site-logo { color: var(--white); margin-bottom: 12px; }
.footer-brand .logo-icon { background: rgba(255,255,255,0.15); }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-nav h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { font-size: 14px; color: rgba(255,255,255,0.65); }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--accent); }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: 0.4; }

/* ── Halaman header banner ── */
.page-banner {
  background: var(--primary);
  color: var(--white);
  padding: 52px 20px;
  text-align: center;
}
.page-banner h1 {
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 700;
  margin-bottom: 10px;
}
.page-banner p { color: rgba(255,255,255,0.72); font-size: 16px; }

/* ── Utilitas ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
