/**
 * Respira Landing Page Styles
 *
 * Clean, minimal styling inspired by Apple's design language
 * Brand colors synced with RespiraColors.swift from RespiraApp repository
 * Supports both light and dark modes via CSS custom properties
 */

:root {
  /* Respira Brand Colors - Synced with RespiraColors.swift */
  --breathable-teal: rgb(0, 107, 125);
  --breathable-teal-light: rgb(0, 122, 140);
  --breathable-teal-deep: rgb(0, 90, 105);
  --breathable-coral: rgb(255, 127, 102);
  --breathable-purple: rgb(107, 78, 157);
  --breathable-mint: rgb(77, 214, 187);
  --breathable-green: rgb(82, 180, 105);
  --breathable-amber: rgb(255, 184, 77);
  --breathable-blue: rgb(65, 145, 200);
  --breathable-red: rgb(210, 82, 90);

  /* Light Mode Semantic Colors */
  --primary-color: var(--breathable-teal);
  --primary-hover: var(--breathable-teal-deep);
  --accent-color: var(--breathable-mint);
  --text-color: #1d1d1f;
  --secondary-text: #6e6e73;
  --bg-color: #ffffff;
  --border-color: #d2d2d7;
}

/**
 * Dark Mode Color Overrides
 * Applied when user toggles to dark mode via Quarto's theme switcher
 * Primary color switches from teal to mint for better contrast
 */
[data-bs-theme="dark"] {
  --primary-color: var(--breathable-mint);
  --primary-hover: var(--breathable-teal-light);
  --accent-color: var(--breathable-teal-light);
  --text-color: #e8e8ed;
  --secondary-text: #a1a1a6;
  --bg-color: #1d1d1f;
  --border-color: #38383a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

/* Clean, minimal header */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--text-color);
}

h1 {
  font-size: 2.5em;
  margin-top: 0;
}

h2 {
  font-size: 1.8em;
  margin-top: 1.2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border-color);
}

h3 {
  font-size: 1.4em;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Subtitle styling */
.subtitle {
  color: var(--secondary-text);
  font-size: 1.3em;
  font-weight: 400;
  margin-top: -0.5em;
  margin-bottom: 1.5em;
}

/* Content spacing */
.article-content p {
  margin-bottom: 1.2em;
}

/* Navbar styling */
.navbar {
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.2em;
}

/* Footer */
footer {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid var(--border-color);
  color: var(--secondary-text);
  font-size: 0.9em;
}

/* Feature sections */
strong {
  color: var(--text-color);
  font-weight: 600;
  display: block;
  margin-top: 1em;
  margin-bottom: 0.2em;
}

/* Clean list styling */
ul {
  list-style: none;
  padding-left: 0;
}

li {
  margin-bottom: 0.5em;
}

/* Table of contents */
#TOC {
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 1.5em;
  background-color: rgba(0, 0, 0, 0.03);
  margin-bottom: 2em;
}

[data-bs-theme="dark"] #TOC {
  background-color: rgba(255, 255, 255, 0.05);
}

#TOC ul {
  padding-left: 1.2em;
  list-style: none;
}

#TOC li {
  margin: 0.5em 0;
}

#TOC a {
  color: var(--primary-color);
}

#TOC a:hover {
  color: var(--primary-hover);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.5em;
  }

  body {
    font-size: 16px;
  }
}
