/* ============================================================
   MR.DENIM — Blog Styles v4
   Site ka theme system: DARK default, html.light-mode = light
   ============================================================ */

/* ---------- BASE (DARK — site default) ---------- */
.blog-page, .blog-post-page { background: #0c0c0e; color: #e8e6e1; }

/* ---------- HERO ---------- */
.blog-hero { padding: 90px 24px 40px; text-align: center; background: #0c0c0e; }
.blog-hero-inner { max-width: 820px; margin: 0 auto; }
.blog-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #b9a06a; }
.blog-eyebrow-line { width: 42px; height: 1px; background: #b9a06a; display: inline-block; }
.blog-hero-title { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px, 6vw, 64px);
  font-weight: 400; line-height: 1.1; color: #f5f2ea; margin: 0 0 18px; }
.blog-hero-title em, .blog-section-title em, .post-cta h2 em,
.blog-newsletter-inner h2 em { font-style: italic; color: #b9a06a; }
.blog-hero-sub { font-size: 16px; color: #9a978f; max-width: 560px; margin: 0 auto 28px; line-height: 1.7; }

/* ---------- SEARCH ---------- */
.blog-search-wrap { position: relative; max-width: 520px; margin: 0 auto; }
.blog-search { display: flex; background: #141416;
  border: 1px solid #2b2b2f; border-radius: 30px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.blog-search input { flex: 1; border: 0; outline: 0; background: transparent;
  padding: 14px 20px; font-size: 15px; color: #e8e6e1; }
.blog-search input::placeholder { color: #6a675f; }
.blog-search button { border: 0; background: #b9a06a; color: #141414; padding: 0 22px;
  cursor: pointer; display: flex; align-items: center; }
.blog-search button:hover { background: #c9b37e; }

/* ---------- LIVE SEARCH DROPDOWN ---------- */
.blog-search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #141416; border: 1px solid #2b2b2f; border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0,0,0,.5); z-index: 60;
  max-height: 340px; overflow-y: auto; text-align: left; }
.bsr-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px;
  text-decoration: none; border-bottom: 1px solid #232326; }
.bsr-item:last-child { border-bottom: 0; }
.bsr-item:hover, .bsr-item.active { background: #1c1c20; }
.bsr-item img { width: 54px; height: 40px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.bsr-noimg { width: 54px; height: 40px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #1c1c20, #2a2419); color: #b9a06a;
  font-family: Georgia, serif; font-size: 11px; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center; }
.bsr-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bsr-cat { font-size: 10px; color: #b9a06a; text-transform: uppercase; letter-spacing: 1px; }
.bsr-title { font-size: 14px; color: #e8e6e1; font-weight: 600; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bsr-empty { padding: 16px; text-align: center; color: #9a978f; font-size: 14px; }

/* ---------- CATEGORY CHIPS ---------- */
.blog-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  padding: 6px 24px 10px; background: #0c0c0e; }
.blog-chip { text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .5px;
  color: #9a978f; background: #141416; border: 1px solid #2b2b2f;
  padding: 9px 20px; border-radius: 25px; transition: all .2s; }
.blog-chip:hover { border-color: #b9a06a; color: #b9a06a; }
.blog-chip.active { background: #b9a06a; border-color: #b9a06a; color: #141414; }

/* ---------- NOTICES ---------- */
.blog-notice { max-width: 680px; margin: 18px auto 0; padding: 14px 22px; border-radius: 12px;
  background: #1a1a1d; color: #9a978f; font-size: 14px; text-align: center; }
.blog-notice-ok { background: #1d2b1a; color: #9fd08f; }
.blog-notice-err { background: #2e1a16; color: #e08d7d; }

/* ---------- FEATURED POST ---------- */
.blog-featured { max-width: 1180px; margin: 34px auto 10px; padding: 0 24px; }
.blog-featured-link { display: grid; grid-template-columns: 1.15fr 1fr; text-decoration: none;
  color: inherit; background: #141416; border: 1px solid #232326; border-radius: 18px;
  overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.4);
  transition: transform .3s ease, box-shadow .3s ease; }
.blog-featured-link:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.5); }
.blog-featured-media { min-height: 320px; background: #1a1a1d; }
.blog-featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-featured-placeholder { height: 100%; min-height: 320px; }
.blog-featured-body { padding: 40px 38px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-tags { display: flex; gap: 8px; margin-bottom: 16px; }
.blog-card-cat-static { position: static; }
.blog-card-cat-ghost { background: transparent; color: #b9a06a; border: 1px solid #b9a06a; }
.blog-featured-title { font-family: Georgia, serif; font-size: clamp(24px, 3vw, 34px);
  font-weight: 400; color: #f5f2ea; line-height: 1.3; margin: 0 0 14px; }
.blog-featured-excerpt { color: #9a978f; font-size: 15px; line-height: 1.7; margin: 0 0 18px; }
.blog-card-meta-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.blog-read-time { font-size: 12px; color: #9a978f; letter-spacing: .5px; }
.blog-read-time::before { content: "•"; margin-right: 12px; color: #4a4a50; }

/* ---------- GRID ---------- */
.blog-grid-section { max-width: 1180px; margin: 0 auto; padding: 30px 24px 70px; background: #0c0c0e; }
.blog-section-title { font-family: Georgia, serif; font-size: 32px; font-weight: 400; color: #f5f2ea;
  text-align: center; margin: 0 0 40px; }
.blog-results-note { text-align: center; color: #9a978f; font-size: 14px; margin: 0 0 30px; }
.blog-results-note a { color: #b9a06a; }
.blog-more-soon { text-align: center; color: #9a978f; font-size: 15px; padding: 30px 20px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }

.blog-card { background: #141416; border: 1px solid #232326; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.3);
  transition: transform .3s ease, box-shadow .3s ease; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.blog-card-link { text-decoration: none; color: inherit; display: block; }
.blog-card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #1a1a1d; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1c1c20, #2a2419); }
.blog-card-placeholder span { font-family: Georgia, serif; letter-spacing: 4px; color: #b9a06a88; font-size: 15px; }
.blog-card-cat { position: absolute; top: 14px; left: 14px; background: #b9a06a; color: #141414;
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; }
.blog-card-body { padding: 22px 24px 26px; }
.blog-card-date { font-size: 12px; color: #9a978f; letter-spacing: 1px; }
.blog-card-title { font-family: Georgia, serif; font-size: 21px; font-weight: 400; color: #f5f2ea;
  margin: 10px 0 12px; line-height: 1.4; }
.blog-card-excerpt { font-size: 14px; color: #9a978f; line-height: 1.7; margin: 0 0 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-more { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: #b9a06a; }
.blog-card-more svg { transition: transform .25s ease; }
.blog-card:hover .blog-card-more svg, .blog-featured-link:hover .blog-card-more svg { transform: translateX(4px); }

.blog-empty { text-align: center; padding: 70px 20px; }
.blog-empty-title { font-family: Georgia, serif; font-size: 26px; color: #f5f2ea; margin: 0 0 10px; }
.blog-empty-sub { color: #9a978f; }

/* ---------- POPULAR ---------- */
.blog-popular { max-width: 860px; margin: 0 auto; padding: 20px 24px 70px; background: #0c0c0e; }
.blog-popular-list { display: flex; flex-direction: column; gap: 4px; }
.blog-popular-item { display: flex; align-items: center; gap: 18px; text-decoration: none;
  padding: 16px 10px; border-bottom: 1px solid #232326; transition: background .2s; border-radius: 8px; }
.blog-popular-item:hover { background: #141416; }
.blog-popular-num { font-family: Georgia, serif; font-size: 30px; color: #4a4234; min-width: 44px; text-align: center; }
.blog-popular-title { flex: 1; font-size: 16px; color: #e8e6e1; font-weight: 600; }
.blog-popular-views { font-size: 12px; color: #9a978f; white-space: nowrap; }

/* ---------- NEWSLETTER ---------- */
.blog-newsletter { padding: 20px 24px 90px; background: #0c0c0e; }
.blog-newsletter-inner { max-width: 680px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, #191914, #241f14); border: 1px solid #b9a06a44;
  border-radius: 18px; padding: 48px 32px; }
.blog-newsletter-inner h2 { font-family: Georgia, serif; font-size: 30px; font-weight: 400;
  color: #f5f2ea; margin: 0 0 10px; }
.blog-newsletter-inner p { color: #9a978f; margin: 0 0 26px; }
.blog-newsletter-form { display: flex; max-width: 460px; margin: 0 auto; background: #141416;
  border: 1px solid #2b2b2f; border-radius: 30px; overflow: hidden; }
.blog-newsletter-form input { flex: 1; border: 0; outline: 0; background: transparent;
  padding: 14px 20px; font-size: 15px; color: #e8e6e1; }
.blog-newsletter-form button { border: 0; background: #b9a06a; color: #141414; font-weight: 700;
  font-size: 13px; letter-spacing: 1px; text-transform: uppercase; padding: 0 28px; cursor: pointer; }
.blog-newsletter-form button:hover { background: #c9b37e; }

/* ---------- SINGLE POST ---------- */
.post-hero { padding: 70px 24px 0; background: #0c0c0e; }
.post-hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.post-breadcrumb { font-size: 13px; color: #9a978f; margin-bottom: 20px; }
.post-breadcrumb a { color: #b9a06a; text-decoration: none; }
.post-breadcrumb span { margin: 0 6px; }
.post-title { font-family: Georgia, serif; font-size: clamp(30px, 5vw, 48px); font-weight: 400;
  color: #f5f2ea; line-height: 1.25; margin: 18px 0 16px; }
.post-meta { display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; color: #9a978f; letter-spacing: 1px; flex-wrap: wrap; }
.post-meta-dot { color: #b9a06a; }
.post-cover { max-width: 960px; margin: 40px auto 0; border-radius: 14px; overflow: hidden; }
.post-cover img { width: 100%; display: block; }

/* ---------- SHARE ---------- */
.post-share { display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 26px; flex-wrap: wrap; }
.post-share-label { font-size: 13px; color: #9a978f; letter-spacing: 1px; text-transform: uppercase; }
.post-share-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 13px; font-weight: 600; padding: 10px 18px; border-radius: 25px;
  border: 1px solid #2b2b2f; background: #141416; color: #9a978f; cursor: pointer;
  transition: all .2s; font-family: inherit; }
.post-share-btn:hover { transform: translateY(-2px); }
.post-share-wa { background: #25d366; border-color: #25d366; color: #fff; }
.post-share-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.post-share-copy:hover { border-color: #b9a06a; color: #b9a06a; }

/* ---------- TABLE OF CONTENTS ---------- */
.post-toc { max-width: 780px; margin: 34px auto 0; padding: 24px 28px;
  background: #141416; border: 1px solid #232326; border-radius: 14px; }
.post-toc-title { font-weight: 700; font-size: 15px; color: #f5f2ea; margin: 0 0 12px; }
.post-toc ol { margin: 0; padding-left: 20px; }
.post-toc li { margin-bottom: 8px; font-size: 14px; }
.post-toc a { color: #b9a06a; text-decoration: none; }
.post-toc a:hover { text-decoration: underline; }

.post-body { max-width: 780px; margin: 0 auto; padding: 46px 24px 20px; font-size: 17px;
  line-height: 1.85; color: #d6d3cc; background: #0c0c0e; }
.post-body p { margin: 0 0 22px; }
.post-body h2 { font-family: Georgia, serif; font-size: 27px; font-weight: 400; color: #f5f2ea;
  margin: 44px 0 18px; scroll-margin-top: 90px; }
.post-body h3 { font-size: 20px; color: #f5f2ea; margin: 34px 0 14px; }
.post-body ul, .post-body ol { margin: 0 0 24px; padding-left: 24px; }
.post-body li { margin-bottom: 10px; }
.post-body a { color: #b9a06a; }
.post-body strong { color: #f5f2ea; }
.post-body table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 15px; }
.post-body th, .post-body td { border: 1px solid #2b2b2f; padding: 10px 14px; text-align: left; }
.post-body th { background: #1a1a1d; color: #b9a06a; font-weight: 600; }
.post-body img { max-width: 100%; border-radius: 10px; }

/* ---------- CTA ---------- */
.post-cta { max-width: 780px; margin: 30px auto 10px; padding: 0 24px; }
.post-cta-inner { background: linear-gradient(135deg, #191914, #241f14); border: 1px solid #b9a06a44;
  border-radius: 16px; padding: 44px 32px; text-align: center; }
.post-cta h2 { font-family: Georgia, serif; font-size: 30px; font-weight: 400; color: #f5f2ea; margin: 0 0 10px; }
.post-cta p { color: #9a978f; margin: 0 0 26px; }
.post-cta-btn { display: inline-block; background: #b9a06a; color: #141414; font-weight: 700;
  font-size: 14px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  padding: 14px 34px; border-radius: 30px; margin: 0 8px 8px; transition: opacity .25s; }
.post-cta-btn:hover { opacity: .88; }
.post-cta-btn-alt { background: transparent; color: #b9a06a; border: 1px solid #b9a06a; }

.blog-back-btn { display: inline-block; margin-top: 26px; color: #b9a06a; text-decoration: none;
  border: 1px solid #b9a06a44; padding: 12px 28px; border-radius: 30px; font-size: 14px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .blog-featured-link { grid-template-columns: 1fr; }
  .blog-featured-media { min-height: 220px; }
  .blog-featured-body { padding: 28px 24px; }
}
@media (max-width: 640px) {
  .blog-hero { padding: 60px 20px 36px; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-body { font-size: 16px; }
  .blog-newsletter-form { flex-direction: column; border-radius: 16px; }
  .blog-newsletter-form button { padding: 14px; }
}

/* ============================================================
   LIGHT MODE — jab <html> par .light-mode class ho
   ============================================================ */
html.light-mode .blog-page, html.light-mode .blog-post-page,
html.light-mode .blog-hero, html.light-mode .blog-grid-section,
html.light-mode .blog-chips, html.light-mode .blog-popular,
html.light-mode .blog-newsletter, html.light-mode .post-hero,
html.light-mode .post-body { background: #faf9f7; color: #2b2b2e; }

html.light-mode .blog-hero-title, html.light-mode .blog-section-title,
html.light-mode .blog-card-title, html.light-mode .blog-empty-title,
html.light-mode .post-title, html.light-mode .post-body h2,
html.light-mode .post-body h3, html.light-mode .post-body strong,
html.light-mode .post-cta h2, html.light-mode .blog-newsletter-inner h2,
html.light-mode .blog-featured-title, html.light-mode .blog-popular-title,
html.light-mode .post-toc-title { color: #16161a; }

html.light-mode .blog-hero-sub, html.light-mode .blog-card-excerpt,
html.light-mode .blog-empty-sub, html.light-mode .post-cta p,
html.light-mode .blog-featured-excerpt, html.light-mode .blog-newsletter-inner p,
html.light-mode .blog-results-note, html.light-mode .blog-chip,
html.light-mode .blog-more-soon { color: #6f6c66; }

html.light-mode .post-body { color: #3d3d42; }
html.light-mode .blog-card, html.light-mode .blog-featured-link,
html.light-mode .post-toc { background: #ffffff; border-color: #e9e4d9; box-shadow: 0 2px 14px rgba(0,0,0,.05); }
html.light-mode .blog-card-media, html.light-mode .blog-featured-media { background: #f0ede6; }
html.light-mode .blog-card-placeholder, html.light-mode .blog-featured-placeholder {
  background: linear-gradient(135deg, #f0ede6, #e4dcc8); }
html.light-mode .blog-card-cat { color: #fff; }
html.light-mode .blog-search, html.light-mode .blog-newsletter-form {
  background: #fff; border-color: #e2ddd1; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
html.light-mode .blog-search input, html.light-mode .blog-newsletter-form input { color: #2b2b2e; }
html.light-mode .blog-search input::placeholder { color: #a8a49b; }
html.light-mode .blog-chip { background: #fff; border-color: #e2ddd1; }
html.light-mode .blog-chip.active { background: #a8894f; border-color: #a8894f; color: #fff; }
html.light-mode .post-body th { background: #f0ede6; }
html.light-mode .post-body th, html.light-mode .post-body td { border-color: #e2ddd1; }
html.light-mode .post-cta-inner, html.light-mode .blog-newsletter-inner {
  background: linear-gradient(135deg, #f5f1e8, #ece4d0); border-color: #d9cba4; }
html.light-mode .blog-popular-item { border-color: #ece8de; }
html.light-mode .blog-popular-item:hover { background: #fff; }
html.light-mode .blog-notice { background: #f0ede6; }
html.light-mode .blog-notice-ok { background: #e4efe0; color: #3c6b35; }
html.light-mode .blog-notice-err { background: #f7e4e1; color: #a33f2f; }
html.light-mode .post-share-btn { background: #fff; border-color: #e2ddd1; color: #6f6c66; }
html.light-mode .post-share-wa { background: #25d366; border-color: #25d366; color: #fff; }
html.light-mode .post-share-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
html.light-mode .blog-search-results { background: #fff; border-color: #e2ddd1;
  box-shadow: 0 14px 36px rgba(0,0,0,.14); }
html.light-mode .bsr-item { border-color: #f0ede6; }
html.light-mode .bsr-item:hover, html.light-mode .bsr-item.active { background: #f7f4ec; }
html.light-mode .bsr-title { color: #2b2b2e; }
html.light-mode .bsr-noimg { background: linear-gradient(135deg, #f0ede6, #e4dcc8); }
html.light-mode .blog-read-time::before { color: #c9c4b8; }
html.light-mode .blog-popular-num { color: #d8cfb8; }
