:root {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --white: #0b1220;
  --dark: #e5e7eb;
  --grey: rgba(229, 231, 235, 0.78);
}

html[data-theme="dark"] body {
  background: var(--white);
  color: var(--dark);
}

html[data-theme="dark"] p,
html[data-theme="dark"] span,
html[data-theme="dark"] li,
html[data-theme="dark"] a,
html[data-theme="dark"] .section-title p,
html[data-theme="dark"] .section-title span,
html[data-theme="dark"] .section-title h2 {
  color: var(--dark);
}

html[data-theme="dark"] .menubar,
html[data-theme="dark"] header,
html[data-theme="dark"] .inner-page.menubar {
  background: rgba(11, 18, 32, 0.92);
}

html[data-theme="dark"] .menubar.sticky {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Footer contrast in dark mode (footer has a light bg image). */
html[data-theme="dark"] .footer {
  background-color: #0b1220 !important;
  background-blend-mode: multiply !important;
}

html[data-theme="dark"] .footer .footer-top .title h5,
html[data-theme="dark"] .footer .footer-top .desc,
html[data-theme="dark"] .footer .footer-top .address li p,
html[data-theme="dark"] .footer .footer-top .navigation li a,
html[data-theme="dark"] .footer .footer-top .follow li a,
html[data-theme="dark"] .footer .bulerang-footer-links li a,
html[data-theme="dark"] .footer .footer-bottom p,
html[data-theme="dark"] .footer .footer-bottom ul li a {
  color: rgba(229, 231, 235, 0.88) !important;
}

html[data-theme="dark"] .footer .footer-top .navigation li:before {
  background: rgba(229, 231, 235, 0.35) !important;
}

html[data-theme="dark"] .footer .footer-bottom .bg {
  border-top: 1px solid rgba(229, 231, 235, 0.14) !important;
}

html[data-theme="dark"] .footer .footer-top .inputs {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 171, 107, 0.7) !important; /* light orange */
  color: rgba(229, 231, 235, 0.92) !important;
}

html[data-theme="dark"] .footer .footer-top .inputs::placeholder {
  color: rgba(229, 231, 235, 0.62) !important;
}

html[data-theme="dark"] .footer .footer-top .social li a i {
  color: rgba(229, 231, 235, 0.9) !important;
}

html[data-theme="dark"] .header-menu .menu > li > a,
html[data-theme="dark"] .right-part ul li a,
html[data-theme="dark"] .right-part ul li button {
  color: var(--dark);
}

html[data-theme="dark"] .header-menu .menu li ul {
  background: #111a2f;
}

html[data-theme="dark"] .header-menu .menu li ul li a {
  color: var(--dark);
}

.bulerang-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.bulerang-controls select {
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-family: var(--heebo);
  font-weight: 500;
}

html[data-theme="dark"] .bulerang-controls select {
  background: #111a2f;
  color: var(--dark);
  border-color: rgba(255, 255, 255, 0.18);
}

.bulerang-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .bulerang-theme-toggle {
  background: #111a2f;
  border-color: rgba(255, 255, 255, 0.18);
}

.bulerang-theme-toggle i {
  font-size: 16px;
  color: var(--dark);
}

.bulerang-skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--white);
  color: var(--dark);
  transform: translateY(-150%);
  transition: transform 150ms ease;
}

.bulerang-skip:focus {
  transform: translateY(0);
}

/* Blog content: readable headings, lists, and figures inside #postContent. */
.blog-page.blog-detail #postContent h2 {
  font-size: 32px;
  line-height: 1.25;
  margin-top: 28px;
}

.blog-page.blog-detail #postContent h3 {
  font-size: 24px;
  line-height: 1.3;
  margin-top: 22px;
}

.blog-page.blog-detail #postContent p {
  margin-top: 14px;
}

.blog-page.blog-detail #postContent ul,
.blog-page.blog-detail #postContent ol {
  margin-top: 14px;
  padding-left: 1.25rem;
}

.blog-page.blog-detail #postContent ul {
  list-style: disc;
}

.blog-page.blog-detail #postContent ol {
  list-style: decimal;
}

.blog-page.blog-detail #postContent li + li {
  margin-top: 8px;
}

.blog-page.blog-detail #postContent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-page.blog-detail #postContent figure {
  margin: 20px 0 10px;
}

.blog-page.blog-detail #postContent figure img {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-page.blog-detail #postContent figure img[data-ss-key] {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

html[data-theme="dark"] .blog-page.blog-detail #postContent figure img {
  border-color: rgba(255, 255, 255, 0.16);
}

.blog-page.blog-detail #postContent figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--grey);
}

.blog-page.blog-detail #postContent code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .blog-page.blog-detail #postContent code {
  background: rgba(255, 255, 255, 0.1);
}

.blog-page.blog-detail #postContent pre {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .blog-page.blog-detail #postContent pre {
  background: rgba(255, 255, 255, 0.08);
}

.blog-page.blog-detail #postContent pre code {
  background: transparent;
  padding: 0;
}

.blog-page.blog-detail #postContent .br-callout {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
}

html[data-theme="dark"] .blog-page.blog-detail #postContent .br-callout {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

/* Updates page */
.bulerang-updates-timeline {
  position: relative;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding-block: 6px;
}

.bulerang-updates-timeline::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 14px;
  width: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] .bulerang-updates-timeline::before {
  background: rgba(255, 255, 255, 0.14);
}

.bulerang-update {
  position: relative;
  padding: 18px 18px;
  padding-inline-start: 52px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
}

html[data-theme="dark"] .bulerang-update {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.bulerang-update + .bulerang-update {
  margin-top: 14px;
}

.bulerang-update::before {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  inset-block-start: 24px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a5c 0%, #ff2e63 100%);
  box-shadow: 0 10px 22px rgba(255, 46, 99, 0.16);
}

html[data-theme="dark"] .bulerang-update::before {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

.bulerang-update-date {
  font-family: var(--heebo);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}

.bulerang-update-title {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.bulerang-update-bullets {
  list-style: disc;
  padding-inline-start: 1.15rem;
  margin: 0;
}

.bulerang-update-bullets li + li {
  margin-top: 8px;
}

@media (max-width: 575.98px) {
  .bulerang-updates-timeline::before {
    inset-inline-start: 12px;
  }
  .bulerang-update {
    padding-inline-start: 46px;
  }
  .bulerang-update::before {
    inset-inline-start: 4px;
  }
}

/* Keep brand logo size consistent (launcher_icon is large by default). */
.menubar .navbar-brand img,
.inner-page.menubar .navbar-brand img {
  height: 44px;
  width: auto;
  max-width: 160px;
}

.bulerang-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bulerang-brand-text {
  font-family: var(--josefin);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

html[data-theme="dark"] .bulerang-brand-text {
  color: rgba(229, 231, 235, 0.92);
}

/* Turkish labels can be wider; tighten spacing on desktop. */
@media (min-width: 992px) {
  html[lang="tr"] .header-menu > ul > li {
    padding-left: 12px;
    padding-right: 12px;
  }
  html[lang="tr"] .header-menu ul li a {
    font-size: 12.8px;
  }
  html[lang="tr"] .menubar .right-part a {
    padding: 0 20px;
  }
}

/* Desktop header: prevent wrapping when labels are long (e.g., FR). */
@media (min-width: 992px) {
  .menubar .navbar,
  .inner-page.menubar .navbar {
    flex-wrap: nowrap;
    gap: 14px;
  }

  .menubar .header-menu,
  .inner-page.menubar .header-menu {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 1 1 auto;
    min-width: 0;
  }

  .menubar .header-menu > ul.menu,
  .inner-page.menubar .header-menu > ul.menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .menubar .header-menu > ul.menu > li,
  .inner-page.menubar .header-menu > ul.menu > li {
    padding-left: 12px;
    padding-right: 12px;
  }

  .menubar .header-menu > ul.menu > li > a,
  .inner-page.menubar .header-menu > ul.menu > li > a {
    font-size: 12.8px;
    letter-spacing: 0.2px;
  }

  .menubar .right-part,
  .inner-page.menubar .right-part {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
  }

  .menubar .right-part ul {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
  }

  .menubar .right-part ul li {
    padding-left: 0 !important;
  }

  .menubar .right-part a,
  .inner-page.menubar .right-part a {
    padding: 0 18px;
    line-height: 44px;
    border-radius: 12px;
  }

  .inner-page.menubar .right-part button {
    margin-left: 0 !important;
  }

  .bulerang-controls {
    margin-left: 0;
  }

  .bulerang-controls select {
    width: 120px;
    max-width: 140px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .menubar .header-menu > ul.menu > li,
  .inner-page.menubar .header-menu > ul.menu > li {
    padding-left: 10px;
    padding-right: 10px;
  }

  .menubar .right-part a,
  .inner-page.menubar .right-part a {
    padding: 0 14px;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bulerang-controls select {
    width: 112px;
  }
}

@media (min-width: 992px) {
  html[lang="tr"] .menubar .right-part a {
    padding: 0 20px;
  }
}

/* Reduce hero image dominance on home2 banner (Bulurang preview is large). */
.home2.banner .image-area {
  bottom: -90px;
}

.home2.banner .image-area img {
  width: 50%;
  height: auto;
  max-width: 560px;
}

.bulerang-hero-shot {
  width: 100%;
  height: auto;
  max-width: 420px;
}

/* Keep screenshots tidy inside theme components. */
img[data-ss-key] {
  width: 70%;
  height: auto;
}

.home2.screenshot img[data-ss-key] {
  width: 65%;
  height: auto;
}

.ss-slider-area img[data-ss-key] {
  width: 65%;
  max-height: 720px;
  object-fit: contain;
}

.bulerang-app-shot {
  max-width: 250px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .bulerang-app-shot {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.bulerang-store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.bulerang-store-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: not-allowed;
}

.bulerang-store-btn {
  pointer-events: none;
  opacity: 0.96;
  filter: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.bulerang-store-wrap:hover .bulerang-store-btn {
  opacity: 1;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.bulerang-store-wrap:active .bulerang-store-btn {
  transform: translateY(0);
}

.bulerang-store-buttons--hero {
  margin-top: 22px;
}

.bulerang-soon-btn {
  pointer-events: none;
  opacity: 1;
  border: 0;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #ff8a5c 0%, #ff2e63 100%);
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(255, 46, 99, 0.22);
}

html[data-theme="dark"] .bulerang-soon-btn {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.bulerang-store-tooltip {
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translate(-50%, -110%);
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  background: rgba(17, 26, 47, 0.96);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease;
  pointer-events: none;
  z-index: 10;
}

html[data-theme="dark"] .bulerang-store-tooltip {
  background: rgba(11, 18, 32, 0.96);
  border-color: rgba(255, 255, 255, 0.18);
}

.bulerang-store-wrap:hover .bulerang-store-tooltip {
  opacity: 1;
  transform: translate(-50%, -130%);
}

.bulerang-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bulerang-footer-links li a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: rgba(6, 23, 56, 0.92);
}

.bulerang-footer-links li a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .bulerang-footer-links li a {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(229, 231, 235, 0.9);
}

html[data-theme="dark"] .bulerang-footer-links li a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Home2 header right side: tighten spacing and improve dark theme controls. */
.home2.menubar .right-part {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home2.menubar .right-part .bulerang-controls {
  margin-left: 0;
}

.home2.menubar .right-part > a.ms-3 {
  margin-left: 0 !important;
}

html[data-theme="dark"] .home2.menubar .right-part > button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #111a2f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="dark"] .home2.menubar .right-part > button i {
  color: rgba(229, 231, 235, 0.92);
}

html[data-theme="dark"] .home2.menubar .right-part > a {
  line-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fb6d62 0%, #ffab6b 100%);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.96);
}

html[data-theme="dark"] .home2.menubar .right-part > a:hover {
  background: linear-gradient(135deg, #ffab6b 0%, #fb6d62 100%);
}

/* Home2 feature cards: remove background images; add subtle hover surface. */
.home1.home2.feature .item {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none;
  transition: box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.home1.home2.feature .item:before,
.home1.home2.feature .item:hover:before {
  opacity: 0 !important;
  background: transparent !important;
}

.home1.home2.feature .item:hover {
  background-color: rgba(0, 0, 0, 0.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Keep feature card text readable in dark mode (theme swaps --white to a dark value). */
.home1.home2.feature .item:hover h5,
.home1.home2.feature .item:hover p,
.home1.home2.feature .item:hover a i {
  color: var(--dark) !important;
}

.home1.home2.feature .item:hover .icon i {
  /* background: var(--gradient) !important; */
  /* -webkit-background-clip: text; */
  /* -webkit-text-fill-color: transparent; */
}

html[data-theme="dark"] .home1.home2.feature .item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

@media (max-width: 1199.98px) {
  .home2.banner .image-area img {
    max-width: 480px;
  }
}

@media (max-width: 991.98px) {
  .home2.banner .image-area img {
    max-width: 520px;
  }
}

@media (min-width: 992px) {
  .home1.home2.banner {
    padding-bottom: 220px;
  }
}

/* Blog detail page: hide template comments/share blocks (static demo content) */
.blog-page.blog-detail .share-blog,
.blog-page.blog-detail .comment {
  display: none !important;
}

/* Legal pages */
.legal-content {
  border-radius: 18px;
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

html[data-theme="dark"] .legal-content {
  background: rgba(17, 26, 47, 0.62);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.legal-content .legal-updated {
  margin: 0 0 14px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .legal-content .legal-updated {
  background: rgba(255, 255, 255, 0.06);
}

.legal-content h3 {
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 18px;
}

.legal-content p {
  margin-bottom: 12px;
}

.legal-content ul {
  padding-inline-start: 18px;
  margin-bottom: 12px;
}

.legal-loading {
  opacity: 0.75;
}

.legal-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 46, 99, 0.08);
  border: 1px solid rgba(255, 46, 99, 0.22);
  color: rgba(6, 23, 56, 0.92);
}

html[data-theme="dark"] .legal-error {
  color: rgba(229, 231, 235, 0.92);
}
