/* =========================================
   RelaxQuickly — Shared Base Styles
   ========================================= */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Prevent SVGs from expanding to browser default 300×150px when CSS partially fails */
svg { max-width: 100%; overflow: hidden; }

/* === CSS VARIABLES === */
:root {
  --bg: #F2F7F2;
  --surface: #FFFFFF;
  --border: #C8DEC8;
  --green-dark: #4A7A5A;
  --green-mid: #6B9E7A;
  --green-light: #EAF4EA;
  --text: #1A2B1A;
  --text-muted: #5A6E5A;
  --radius: 16px;
  --shadow: 0 2px 20px rgba(60, 100, 70, 0.08);
}

/* === BASE === */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HEADER === */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  height: 36px;
  width: 36px;
  flex-shrink: 0;
}

.logo span { color: var(--text); }

.back-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--green-dark); }
.back-link svg { width: 16px; height: 16px; }

/* === MAIN === */
main { padding: 48px 0 64px; }

/* === PAGE HEADER (technique pages) === */
.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-dark);
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn svg { width: 18px; height: 18px; }
.btn:hover { background: var(--green-mid); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Secondary / outline button — used across multiple pages */
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-muted);
  padding: 10px 24px;
  font-size: 0.875rem;
}

.btn-outline:hover {
  border-color: var(--green-mid);
  color: var(--green-dark);
  background: var(--green-light);
}

/* === INFO SECTION (breathing technique pages) === */
.info-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.info-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.info-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* === CYCLE / ROUND DOTS (breathing pages) === */
.cycle-dots {
  display: flex;
  gap: 6px;
}

.cycle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}

/* === CONTROLS (breathing pages) === */
.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
}

footer p { font-size: 0.85rem; color: var(--text-muted); }
footer a { color: var(--green-dark); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  main { padding-top: 24px; }
  .page-header { margin-bottom: 28px; }
}
