/* =============================================================================
   LEarn2arn — Quote of the Day (optional modular section)
   Remove with home-quote-of-day.js to detach fully.
   Theme-contrasting strip — same contra palette as BIP39 toolbar chips.
   ============================================================================= */

/* ----- Quote block (base + theme overrides) ----- */
.quote-of-the-day {
  position: relative;
  margin-top: 5rem;
  width: auto;
  max-width: 34rem;
  padding: 1.35rem 1.15rem 1.1rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-sizing: border-box;
  /* Windows (teal theme) → warm amber contrast */
  border: 1px solid #d4a017;
  background: linear-gradient(90deg, #fff3c4 0%, #ffd56a 55%, #f0b429 100%);
  color: #5c3d00;
  box-shadow: 0 8px 22px rgba(212, 160, 23, 0.22);
}

.quote-of-the-day__label {
  display: inline-block;
  position: relative;
  z-index: 1;
  margin: 0 0 0.2rem;
  /* Sit on the parent top border — parent edge becomes the label's top edge */
  transform: translateY(calc(-50% - 0.63rem));
  padding: 0.28rem 0.75rem 0.32rem;
  /* Light chip — only the title, not the quote */
  background: #f2fbff;
  border: 1px solid #d4a017;
  border-top: none;
  border-radius: 0 0 0.65rem 0.65rem;
  color: #5c3d00;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(92, 61, 0, 0.08);
}

.quote-of-the-day__text {
  margin: -0.35rem 0 0;
  color: #5c3d00;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

[data-theme="macos"] .quote-of-the-day {
  /* macOS theme overrides */
  border-color: #2aa8ef;
  background: linear-gradient(90deg, #7ad7ff 0%, #2aa8ef 50%, #3366cc 100%);
  color: #041526;
  box-shadow: 0 10px 28px rgba(42, 168, 239, 0.35);
}

[data-theme="macos"] .quote-of-the-day__label {
  background: #f2fbff;
  border-color: #2aa8ef;
  border-top: none;
  color: #041526;
  box-shadow: 0 2px 8px rgba(4, 21, 38, 0.1);
}

[data-theme="macos"] .quote-of-the-day__text {
  color: #041526;
}

[data-theme="linux"] .quote-of-the-day {
  /* Green/slate theme → coral / orange contrast */
  border-color: #ff7a45;
  background: linear-gradient(90deg, #ffd0b8 0%, #ff8f5a 50%, #e85d2c 100%);
  color: #3a1408;
  box-shadow: 0 10px 28px rgba(232, 93, 44, 0.28);
}

[data-theme="linux"] .quote-of-the-day__label {
  background: #fff7f2;
  border-color: #ff7a45;
  border-top: none;
  color: #3a1408;
  box-shadow: 0 2px 8px rgba(58, 20, 8, 0.1);
}

[data-theme="linux"] .quote-of-the-day__text {
  color: #3a1408;
}

.hero-inner .quote-of-the-day {
  margin-inline: auto;
}

@media (max-width: 767px) {
  .quote-of-the-day {
    margin-top: 7rem;
    width: auto;
  }
}
