/* ==========================================================
   Thought of the Day – Responsive, conflict-safe styling
   Targets only .section-tod and .tod-card
   ========================================================== */

/* --------- Section shell: centered with fluid spacing --------- */

/* override: make TOD follow the same container width */
.section-tod .tod-shell {
  position: relative;
  /* REMOVE the explicit max-width line */
  /* max-width: min(92vw, 920px);  <-- delete this */
  max-width: 100%;                 /* follow parent .container width */
  margin: 0 auto;
  padding-left: 0;                 /* use container’s own gutters */
  padding-right: 0;
}


/* --------- Action buttons row --------- */
.section-tod .tod-actions {
  display: flex;
  gap: 8px;
  margin-top: clamp(8px, 2vw, 12px);
  flex-wrap: wrap;
}

.section-tod .tod-toast {
  position: absolute;
  bottom: -10px;
  left: 0;
  transform: translateY(100%);
  font-size: 12px;
  color: #298267;
  opacity: 0;
  transition: opacity .25s ease;
}
.section-tod .tod-toast.is-visible { opacity: 1; }

/* --------- Card Base (works with ANY markup your function prints) --------- */
.section-tod .tod-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f9fbff 40%, #f4f7ff 100%);
  border: 1px solid rgba(14, 86, 255, .08);
  border-radius: clamp(8px, 2vw, 7px);
  /*padding: clamp(10px, 2.4vw, 10px) clamp(10px, 2.6vw, 10px);*/
  padding: 10px;
  /*padding-left: clamp(48px, 5vw, 10px);*/
  box-shadow:
    0 1px 2px rgba(22, 46, 102, 0.06),
    0 8px 24px rgba(22, 46, 102, 0.06);
  color: #1a1f36;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
  will-change: transform;
}
.section-tod .tod-card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 2px 6px rgba(22, 46, 102, 0.08),
    0 12px 30px rgba(22, 46, 102, 0.10);
}

/* Decorative quote glyph */
.section-tod .tod-card::before {
  /*content: "“";*/
  position: absolute;
  left: clamp(14px, 2vw, 22px);
  top: clamp(6px, 1.5vw, 12px);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  color: rgba(26, 31, 54, .15);
  font-weight: 700;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}

/* --------- Text elements inside the card --------- */
.section-tod .tod-card h1,
.section-tod .tod-card h2,
.section-tod .tod-card h3 {
  margin: 0 0 clamp(6px, 1.4vw, 10px);
  font-size: clamp(18px, 3.2vw, 26px);
  line-height: 1.25;
  font-weight: 700;
}

.section-tod .tod-card p,
.section-tod .tod-card blockquote {
  margin: 0 0 clamp(6px, 1.6vw, 12px);
  font-size: clamp(14px, 2.6vw, 18px);
  line-height: 1.55;
}

.section-tod .tod-card .tod-author,
.section-tod .tod-card .tod-meta,
.section-tod .tod-card small,
.section-tod .tod-card .text-muted {
  display: inline-block;
  margin-top: 2px;
  color: #5b6784;
  font-size: clamp(12px, 2.1vw, 14px);
}

/* Soft highlight for emphasis */
.section-tod .tod-card em,
.section-tod .tod-card strong {
  background: linear-gradient(0deg, rgba(255,229,153,.35), rgba(255,229,153,.35));
  border-radius: 6px;
  padding: 0 3px;
}

/* --------- Buttons (if using Bootstrap, this just polishes) --------- */
.section-tod .tod-actions .btn {
  border-radius: 999px;
  padding: 6px 12px;
  line-height: 1.2;
  font-size: clamp(12px, 2.3vw, 14px);
}

/* --------- Layout enhancements on wider screens --------- */
@media (min-width: 992px) {
  /* Optional “accent side-bar” look on desktop */
  .section-tod .tod-card {
    /*padding-left: clamp(60px, 4vw, 88px);*/
    padding-left: 10px;
  }
  .section-tod .tod-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0; bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #6aa6ff 0%, #7ce0c3 100%);
    opacity: .55;
  }
}

/* --------- Dark mode friendly --------- */
@media (prefers-color-scheme: dark) {
  .section-tod .tod-card {
    background: linear-gradient(135deg, #0f1220 0%, #11162a 40%, #0f1a33 100%);
    color: #e6ecff;
    border-color: rgba(150, 175, 255, .15);
  }
  .section-tod .tod-card::before { color: rgba(230, 236, 255, .18); }
  .section-tod .tod-card .tod-author,
  .section-tod .tod-card .tod-meta,
  .section-tod .tod-card small,
  .section-tod .tod-card .text-muted { color: #9fb1ff; }
}

/* --------- Motion accessibility --------- */
@media (prefers-reduced-motion: reduce) {
  .section-tod .tod-card,
  .section-tod .tod-toast { transition: none; }
}

/* --------- Tiny device tweaks (≤360px width) --------- */
@media (max-width: 360px) {
  .section-tod .tod-card {
    padding-left: clamp(44px, 10vw, 56px);
  }
  .section-tod .tod-card::before {
    font-size: clamp(36px, 8vw, 44px);
  }
}
