/* HealToFit Common Styles */
/* Color Variables - Update these to change colors across all pages */
:root {
  --primary-color: #00a47b; /* CTA color */
  --highlight-color: #c18553; /* Highlight color */
  --text-primary: #333;
  --text-secondary: #7f8c8d;
  --border-color: #ddd;
  --bg-note: #f0f9f7;
  --heading-color: #2c3e50;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  padding: 16px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* Close Button */
.close-button {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 24px;
  line-height: 1;
  z-index: 1000;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.close-button:hover {
  background-color: var(--highlight-color);
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}

.close-button:active {
  -webkit-transform: scale(0.95);
          transform: scale(0.95);
}

/* Typography */
h1 {
  color: var(--heading-color);
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 1.75rem;
}

h2 {
  color: var(--heading-color);
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

h3 {
  color: var(--heading-color);
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

p {
  margin-bottom: 16px;
}

/* Lists */
ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

li {
  margin-bottom: 8px;
}

/* Emphasized Text */
strong {
  color: var(--highlight-color);
  font-weight: 600;
}

/* Special Text Styles */
.last-updated {
  color: var(--text-secondary);
  font-size: 0.9em;
  margin-bottom: 20px;
  display: block;
}

/* Note Boxes */
.note-box {
  background-color: var(--bg-note);
  border-left: 4px solid var(--primary-color);
  padding: 16px;
  margin: 20px 0;
  border-radius: 4px;
}

.note-box strong {
  color: var(--primary-color);
}

/* Footer */
.footer-note {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95em;
}

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

a:hover {
  text-decoration: underline;
}

/* Responsive Design - Mobile First */
/* Small devices (phones, less than 600px) */
@media (max-width: 599px) {
  body {
    padding: 12px;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.2rem;
    margin-top: 24px;
  }
  h3 {
    font-size: 1rem;
  }
  ul {
    padding-left: 20px;
  }
  .note-box {
    padding: 12px;
  }
}
/* Medium devices (tablets, 600px and up) */
@media (min-width: 600px) {
  body {
    padding: 20px;
  }
}
/* Large devices (desktops, 900px and up) */
@media (min-width: 900px) {
  body {
    padding: 32px 20px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}