/* sleep.css */

/* ===== Root & themes ===== */
.bsm-sleep-root {
  --bg: #0f1320;
  --fg: #e7e7e7;
  --muted: #a8afc2;
  --accent: #ffd08a;
  --accent-2: #8fd3ff;
  --card: #151a28;
  --line: #263047;
  --ok: #79e2a9;
  --warn: #ffb26b;
  --danger: #ff7b7b;
  --shadow: 0 10px 24px rgba(0,0,0,0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --space: 16px;
  --space-lg: 22px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", "Apple Color Emoji","Segoe UI Emoji";
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 28px 5px;/*28px top and bottom*/
}

/* Daytime theme */
.bsm-sleep-root.daytime {
  --bg: #f7fafc;
  --fg: #141824;
  --muted: #5b647a;
  --accent: #e08a2e;
  --accent-2: #2e79e0;
  --card: #ffffff;
  --line: #e6ecf5;
  --shadow: 0 10px 24px rgba(15, 19, 32, 0.08);
}

/* ===== Layout ===== */
.bsm-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding: 28px;
}
/* retain single column for desktop
@media (min-width: 980px) {
  .bsm-shell {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}
*/

.bsm-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow);
}
.bsm-section h1,
.bsm-section h2 { margin-top: 0; }

.bsm-hero {
  background: linear-gradient(135deg, rgba(255, 208, 138, 0.07), rgba(143, 211, 255, 0.07));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.bsm-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  margin: 0 0 12px;
}
.bsm-hero p {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
  margin: 8px 0 0 0;
}

.bsm-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.bsm-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
}
.bsm-btn:hover { transform: translateY(-1px); }
.bsm-btn.accent { border-color: transparent; background: var(--accent); color: #1a1a1a; }
.bsm-btn.ghost { background: transparent; }

.bsm-aside { display: grid; gap: var(--space); }

.bsm-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.bsm-card h3 { margin: 0 0 10px; font-size: 18px; }

.bsm-list { display: grid; gap: 14px; }

.bsm-point {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,208,138,0.05), transparent);
}
.bsm-point strong { color: var(--fg); }

.bsm-foot { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ===== Feature blocks ===== */
.bsm-feature {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .bsm-feature { grid-template-columns: 1fr 1fr; }
}
.bsm-feature .bsm-card h4 { margin: 0 0 8px; font-size: 17px; }

.bsm-kicker {
  display: inline-block;
  background: rgba(255,208,138,0.15);
  color: var(--accent);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

/* ===== Inline utilities ===== */
.bsm-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bsm-muted { color: var(--muted); }
.bsm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 14px;
}
.bsm-check { width: 14px; height: 14px; border-radius: 3px; background: var(--ok); }

/* ===== Responsive typography ===== */
.bsm-card p,
.bsm-point p { margin: 0; line-height: 1.5; }

/* ===== Link styling ===== */
.bsm-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.bsm-link:hover { opacity: 0.9; }

/* ===== Divider ===== */
.bsm-divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ===== Accessibility ===== */
.bsm-sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
}

/* ===== Night/Day hint banner ===== */
.bsm-banner { margin-top: 12px; font-size: 13px; color: var(--muted); }

/************ MOBILE ***********/
@media (max-width: 600px) {
  .bsm-sleep-root { padding: 2px; }
  .bsm-section { padding: 2px; }
}


/* lightSmartSleep.php Scoped with ls- prefix */
.ls-body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.25rem;
  color: #e7e7e7;
  background: #0f1115;
}

.ls-section {
  margin: 2rem 0;
  padding: 1rem;
  border-radius: 12px;
  background: #151822;
}

.ls-section h2 {
  color: #e0a96d;
  margin-bottom: .5rem;
}

.ls-highlight {
  background: #0c0f14;
  padding: .75rem;
  border-radius: 8px;
  margin: .5rem 0;
}

.ls-btn {
  background: #e0a96d;
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  padding: .55rem .85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.ls-btn:hover { background: #ffd08a; }

.ls-list {
  margin: .5rem 0 0 1rem;
}

.ls-fade {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .8s ease, transform .8s ease;
}
.ls-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.ls-circle {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 2rem auto;
  border: 2px dashed #e0a96d;
  border-radius: 50%;
}

.ls-node {
  position: absolute;
  width: 120px;
  text-align: center;
  background: #0c0f14;
  color: #e7e7e7;
  padding: .5rem;
  border-radius: 8px;
  font-size: .9rem;
}

/* Place nodes around the circle */
.ls-node:nth-child(1) { top: -10px; left: 90px; }
.ls-node:nth-child(2) { top: 90px; right: -10px; }
.ls-node:nth-child(3) { bottom: -10px; left: 90px; }
.ls-node:nth-child(4) { top: 90px; left: -10px; }

/* Daytime theme overrides */
.bsm-sleep-root.daytime .ls-body {
  background: #f9f9f9;
  color: #222;
}

.bsm-sleep-root.daytime .ls-section {
  background: #ffffff;
  border: 1px solid #ddd;
}

.bsm-sleep-root.daytime .ls-section h2 {
  color: #b36b00; /* warmer accent for headings */
}

.bsm-sleep-root.daytime .ls-highlight {
  background: #f0f0f0;
  color: #333;
}

.bsm-sleep-root.daytime .ls-btn {
  background: #b36b00;
  color: #fff;
}
.bsm-sleep-root.daytime .ls-btn:hover {
  background: #d98c1a;
}

.bsm-sleep-root.daytime .ls-circle {
  border-color: #b36b00;
}

.bsm-sleep-root.daytime .ls-node {
  background: #fff;
  color: #222;
  border: 1px solid #ddd;
}
