/* ===== BASE ===== */

body {
  font-family: 'Montserrat', sans-serif;
  user-select: none;
}

img {
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

a {
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

code {
  font-size: 0.875em;
  color: var(--bs-danger);
  word-wrap: break-word;
}

iframe {
  border-radius: 5px;
}

/* ===== BRAND ===== */

.brand-am, .footer-brand-am {
  color: #6f8499;
}

.brand-name, .navbar-brand {
  font-family: 'Righteous', serif;
}

#idea-tw {
  filter: opacity(0.25);
}

.brand-img {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}

/* ===== NAVBAR ===== */


.navbar {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(111, 132, 153, 0.07);
  z-index: 1050;
}

[data-bs-theme="dark"] .navbar {
  background: #181e25 !important;
  box-shadow: 0 2px 8px rgba(24, 30, 37, 0.18);
}

[data-bs-theme="dark"] .navbar {
  background: #181e25 !important;
  box-shadow: 0 2px 8px rgba(24, 30, 37, 0.18);
}

/* ===== SCROLL-TO-TOP BUTTON ===== */

#TopBTN {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 999;
  cursor: pointer;
  border-radius: 50px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

#TopBTN:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

#TopBTN.no-active:focus,
#TopBTN.no-active:active,
#TopBTN.no-active:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
}

#TopBTN.is-visible {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (hover: hover) and (pointer: fine) {
  #TopBTN:hover {
    transform: translateY(-2px);
  }
}

@media (hover: none), (pointer: coarse) {
  #TopBTN:hover,
  #TopBTN:active {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  #TopBTN .topbtn-label {
    display: none;
  }

  #TopBTN {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  #TopBTN svg {
    width: 22px;
    height: 22px;
  }
}

/* ===== OFFCANVAS ===== */

.oc-current-page {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bs-body-color);
}

.oc-nav-link {
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.oc-nav-link:hover {
  background: rgba(111, 132, 153, 0.08);
}

.oc-nav-link.active {
  background: rgba(111, 132, 153, 0.14);
  color: #6f8499;
  font-weight: 700;
}

.oc-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6f8499;
  margin-bottom: 0.6rem;
}

.oc-theme-btn {
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(111, 132, 153, 0.3);
  background: rgba(111, 132, 153, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.oc-theme-btn:hover {
  background: rgba(111, 132, 153, 0.15);
  border-color: rgba(111, 132, 153, 0.5);
}

.oc-theme-btn.active {
  background: rgba(111, 132, 153, 0.2);
  border-color: #6f8499;
}

/* ===== READ BUTTON ===== */

.post-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid rgba(111, 132, 153, 0.4);
  border-radius: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.post-read-btn::after {
  content: '\2192';
  font-style: normal;
  transition: transform 0.18s ease;
}

.post-copy-btn::after,
.post-footer-nav .post-read-btn::after,
.project-footer-nav .post-read-btn::after,
.post-card .post-read-btn::after,
.post-card-featured .post-read-btn::after {
  content: none;
}

[data-bs-theme="light"] .post-read-btn {
  color: #415566;
  background: rgba(111, 132, 153, 0.07);
}

[data-bs-theme="dark"] .post-read-btn {
  color: #d8e0e8;
  background: rgba(216, 224, 232, 0.07);
  border-color: rgba(216, 224, 232, 0.25);
}

.post-read-btn:hover {
  transform: translateY(-1px);
  background: rgba(111, 132, 153, 0.15);
  border-color: rgba(111, 132, 153, 0.55);
  color: inherit;
  box-shadow: 0 4px 12px rgba(111, 132, 153, 0.12);
}

.post-read-btn:hover::after {
  transform: translateX(3px);
}

/* ===== EYEBROW LABEL ===== */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: #6f8499;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

