
/* Prevent background from ending after first fold (common wrapper BG overrides) */
/*body.post-page{ background: #0B0F1A !important; }*/
body.post-page #wrapper,
body.post-page #content,
body.post-page main#content,
body.post-page .bg-gray,
body.post-page .container,
body.post-page .container-fluid{ background: transparent !important; }


/* Ensure fixed toolbar doesn't overlap content */
html.wc-reading-dark, body.wc-reading-dark{ background: #070A12 !important; }
body.post-page.wc-reading{ padding-top: 54px; min-height: 100vh; }

/* Hide site nav in reader mode */
.wc-reader-mode #wcSiteMenu{ display:none !important; }
.wc-reader-mode #wcStickyMenu{ display:none !important; }

/* WriteUpCafe — Premium Reader Polish
   Attach on post.php via assets/css/post-premium.css
   Uses existing WC palette where possible.
*/

:root{
  --wc-accent-1: #AF40FF;
  --wc-accent-2: #5B42F3;
  --wc-accent-3: #00DDEB;
  --wc-bg-0: #0B1220;
  --wc-bg-1: #0F172A;
  --wc-text: #E6EAF2;
  --wc-muted: #9AA5B1;
  --wc-card: rgba(255,255,255,.03);
  --wc-border: rgba(255,255,255,.08);
}


/* Ensure background covers full page (some templates set wrapper backgrounds) */
html, body{ min-height: 100%; }
body.post-page{
  /*background: #0B0F1A !important;*/
}
body.post-page #wrapper,
body.post-page #content,
body.post-page main#content,
body.post-page .bg-gray{
  background: transparent !important;
}
body.post-page #wrapper{ min-height: 100vh; }


/* Page shell */
.post-page.wc-reading{
  /*background: #0B0F1A;*/
}

.wc-post-shell{
  position: relative;
}

/* Top progress bar */
#wcReadProgress{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10050;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
#wcReadProgress span{
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--wc-accent-1), var(--wc-accent-2), var(--wc-accent-3));
}

/* Sticky reader toolbar */
.wc-reader-toolbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10040;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: #020617;
  backdrop-filter: blur(16px);
}
.wc-rt-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wc-rt-left{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.wc-rt-brand{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}
.wc-rt-logo{
  height: 28px;
  width: auto;
  display: block;
  transition: filter .2s ease, opacity .2s ease;
}

/* Slight polish on hover */
.wc-rt-brand:hover .wc-rt-logo{
  opacity: .9;
}
.wc-dot{
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--wc-accent-1), var(--wc-accent-2), var(--wc-accent-3));
  box-shadow: 0 0 0 3px rgba(175,64,255,.15);
}
.wc-rt-name{
  font-family: "Poppins",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif !important;
  font-weight: 700;
  letter-spacing: .2px;
  color: rgba(255,255,255,.92);
}
.wc-rt-meta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
  white-space: nowrap;
}
.wc-rt-divider{
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.18);
}
.wc-rt-status{
  color: rgba(255,255,255,.78);
}
.wc-rt-right{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wc-rt-btn{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
  border-radius: 999px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  font-size: 13px;
}
.wc-rt-btn:hover{
  background: rgba(255,255,255,.07);
}
.wc-rt-btn[aria-pressed="true"]{
  border-color: rgba(0,221,235,.35);
  box-shadow: 0 0 0 3px rgba(0,221,235,.10);
}

/* Outline */
.wc-outline{
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(9,12,20,.88);
}
.wc-outline-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 14px 14px;
}
.wc-outline-title{
  color: rgba(255,255,255,.86);
  font-weight: 700;
  font-family: "Poppins",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif !important;
  margin-bottom: 8px;
}
.wc-outline-list{
  display: grid;
  gap: 6px;
}
.wc-outline-item{
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none !important;
  color: rgba(255,255,255,.74);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.wc-outline-item:hover{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
}
.wc-outline-item.is-h3{
  margin-left: 14px;
  opacity: .95;
}
.wc-outline-empty{
  color: rgba(255,255,255,.60);
  padding: 10px 0;
}

/* Reading wrap — makes the page feel premium and focused */
.wc-reading-wrap{
  margin: 0 auto;
  max-width: 980px;
}

/* Narrow article column for comfort */
.wc-reader-mode .entry-main-content{
  max-width: 820px;
  margin: 0 auto;
}
.wc-reader-mode .entry-left-col{
  display: none !important; /* remove social sticky in reader mode */
}

/* Header polish */
.post-page .entry-title-2{
  font-family: "Poppins",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif !important;
  letter-spacing: -0.4px;
  line-height: 1.12;
  font-weight: 800;
  font-size: clamp(2.0rem, 2.8vw, 3.0rem);
  /*color: rgba(255,255,255,.96);*/
}
.post-page .excerpt{
  color: rgba(255,255,255,.75);
}
.post-page .entry-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,.68);
}
.post-page .entry-meta .middotDivider{
  opacity: .35;
}
.post-page .entry-meta a{
  color: rgba(255,255,255,.74);
}
.post-page .entry-meta a:hover{
  color: rgba(255,255,255,.92);
}

/* Featured image */
.post-page figure.image.zoom{
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
}
.post-page figure.image.zoom img{
  display: block;
  width: 100%;
  height: auto;
}

/* Typography */
.post-page .entry-main-content{
  font-family: "Cabin","Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif !important;
  font-size: 19px;
  line-height: 1.82;
  color: rgba(255,255,255,.88);
  letter-spacing: 0.1px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.post-page .entry-main-content p{
  margin: 0 0 1.05em;
}
.post-page .entry-main-content h2,
.post-page .entry-main-content h3,
.post-page .entry-main-content h4{
  font-family: "Poppins",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif !important;
  color: rgba(255,255,255,.96);
  line-height: 1.2;
  margin: 1.35em 0 .6em;
  letter-spacing: -0.2px;
}
.post-page .entry-main-content h2{ font-size: 1.6em; }
.post-page .entry-main-content h3{ font-size: 1.25em; opacity: .98; }
.post-page .entry-main-content h4{ font-size: 1.08em; opacity: .95; }

.post-page .entry-main-content a{
  color: rgba(0,221,235,.92);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.post-page .entry-main-content a:hover{
  color: rgba(175,64,255,.95);
}

.post-page .entry-main-content blockquote{
  margin: 1.2em 0;
  padding: 14px 16px;
  border-left: 4px solid rgba(0,221,235,.55);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  color: rgba(255,255,255,.82);
}
.post-page .entry-main-content pre,
.post-page .entry-main-content code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.post-page .entry-main-content pre{
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 14px;
  overflow: auto;
}
.post-page .entry-main-content img,
.post-page .entry-main-content iframe,
.post-page .entry-main-content video{
  max-width: 100%;
  border-radius: 14px;
}
.post-page .entry-main-content table{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  overflow: hidden;
  margin: 1.1em 0;
}
.post-page .entry-main-content table th,
.post-page .entry-main-content table td{
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 10px 12px;
}
.post-page .entry-main-content table th{
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
}

/* Tags */
.post-page .tags-wrap .tags a{
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: rgba(255,255,255,.78) !important;
  border-radius: 999px !important;
  padding: 8px 12px !important;
}
.post-page .tags-wrap .tags a:hover{
  border-color: rgba(0,221,235,.35) !important;
  color: rgba(255,255,255,.92) !important;
}

/* Dark reading theme (optional toggle) */
.post-page.wc-reading-dark,
.wc-reading-dark.post-page,
.wc-reading-dark .post-page{
  background: #070A12;
}
.post-page.wc-reading-dark .wc-reader-toolbar,
.wc-reading-dark.post-page .wc-reader-toolbar,
.wc-reading-dark .post-page .wc-reader-toolbar{
  background: rgba(6,8,14,.86);
}
.post-page.wc-reading-dark .entry-main-content,
.wc-reading-dark.post-page .entry-main-content,
.wc-reading-dark .post-page .entry-main-content{
  color: rgba(255,255,255,.90);
}
.post-page.wc-reading-dark .entry-main-content a,
.wc-reading-dark.post-page .entry-main-content a,
.wc-reading-dark .post-page .entry-main-content a{
  color: rgba(0,221,235,.95);
}
.post-page.wc-reading-dark figure.image.zoom,
.wc-reading-dark.post-page figure.image.zoom,
.wc-reading-dark .post-page figure.image.zoom{
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.post-page.wc-reading-dark .entry-main-content img,
.wc-reading-dark.post-page .entry-main-content img,
.wc-reading-dark .post-page .entry-main-content img{
  filter: brightness(.95) contrast(1.02);
}

/* Mobile action bar */
.wc-mobile-actions{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 10060;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,14,24,.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.wc-ma-btn{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 14px;
  text-decoration: none !important;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
}
.wc-ma-btn i{
  font-size: 16px;
}
.wc-ma-btn:hover{
  background: rgba(255,255,255,.07);
}
.wc-ma-btn.active{
  border-color: rgba(175,64,255,.35);
  box-shadow: 0 0 0 3px rgba(175,64,255,.12);
}
.wc-ma-txt{
  font-size: 11px;
  opacity: .9;
}

/* Spacing for fixed mobile bar */ 
@media (max-width: 767.98px){
  .wc-reading-wrap{
    padding-bottom: 92px; /* make room for the action bar */
  }
  .post-page .entry-main-content{
    font-size: 18px;
    line-height: 1.78;
  }
  .post-page .entry-title-2{
    font-size: 2.05rem;
  }
  .post-page .entry-left-col{
    display: none !important;
  }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  #wcReadProgress span{ transition: none; }
}


/* Hide site menu in reader mode */
.wc-reader-mode #wcSiteMenu{ display:none !important; }
/* ===== Outline overlay (premium) ===== */
.wc-outline{
  position: fixed !important;
  left: 0; right: 0;
  top: var(--wc-rt-h, 56px);
  bottom: 0;
  z-index: 10080;
  background: rgba(0,0,0,.55) !important;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 14px;
}

/* the inner panel */
.wc-outline-inner{
  width: min(760px, 100%);
  max-height: calc(100vh - var(--wc-rt-h, 56px) - 36px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,14,24);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

/* keep title sticky inside panel */
.wc-outline-title{
  position: sticky;
  top: -12px;
  z-index: 2;
  padding: 14px 14px 10px;
  margin: 0;
  background: rgba(10,14,24);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* spacing inside list */
.wc-outline-list{
  padding: 10px 12px 14px;
}

/* prevent page scrolling when outline is open */
html.wc-lock-scroll,
body.wc-lock-scroll{
  overflow: hidden !important;
  height: 100% !important;
}
/* =========================================================
   FIX: Premium CSS forces dark colors always.
   Put at END of post-premium.css
   ========================================================= */

/* LIGHT THEME (when wc-reading-dark is NOT present) */
body.post-page:not(.wc-reading-dark){
  background: #ffffff; /* or keep transparent if your layout sets it */
}

body.post-page:not(.wc-reading-dark) .wc-reader-toolbar{
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(27,30,39,.08);
}

body.post-page:not(.wc-reading-dark) .wc-rt-name{
  color: #1B1E27 !important;
}
body.post-page:not(.wc-reading-dark) .wc-rt-meta,
body.post-page:not(.wc-reading-dark) .wc-rt-status{
  color: rgba(27,30,39,.68) !important;
}
body.post-page:not(.wc-reading-dark) .wc-rt-btn{
  background: rgba(27,30,39,.03);
  border-color: rgba(27,30,39,.10);
  color: rgba(27,30,39,.86);
}
body.post-page:not(.wc-reading-dark) .wc-rt-btn:hover{
  background: rgba(27,30,39,.06);
  color: #1B1E27 !important;
}

/* Header */
body.post-page:not(.wc-reading-dark) .entry-title-2{
  color: #1B1E27 !important;
}
body.post-page:not(.wc-reading-dark) .excerpt{
  color: rgba(27,30,39,.72) !important;
}
body.post-page:not(.wc-reading-dark) .entry-meta{
  color: rgba(27,30,39,.62) !important;
}
body.post-page:not(.wc-reading-dark) .entry-meta a{
  color: rgba(27,30,39,.70) ;
}
body.post-page:not(.wc-reading-dark) .entry-meta a:hover{
  color: #0070AD !important;
}

/* Body typography */
body.post-page:not(.wc-reading-dark) .entry-main-content{
  color: #1B1E27 !important;
}
body.post-page:not(.wc-reading-dark) .entry-main-content h2,
body.post-page:not(.wc-reading-dark) .entry-main-content h3,
body.post-page:not(.wc-reading-dark) .entry-main-content h4{
  color: #1B1E27 !important;
}
body.post-page:not(.wc-reading-dark) .entry-main-content a{
  color: #0070AD !important;
}
body.post-page:not(.wc-reading-dark) .entry-main-content a:hover{
  color: #AF40FF !important;
}

/* Tables / blockquote in light */
body.post-page:not(.wc-reading-dark) .entry-main-content blockquote{
  background: rgba(0,0,0,.03);
  border-left-color: rgba(0,112,173,.35);
  color: rgba(27,30,39,.80);
}
body.post-page:not(.wc-reading-dark) .entry-main-content table{
  border-color: rgba(27,30,39,.12);
}
body.post-page:not(.wc-reading-dark) .entry-main-content table th{
  background: rgba(0,0,0,.03);
  color: rgba(27,30,39,.92);
}
body.post-page:not(.wc-reading-dark) .entry-main-content table td{
  border-bottom-color: rgba(27,30,39,.10);
  color: rgba(27,30,39,.78);
}

