﻿/* ===== ANXIETY RELIEF PAGE ===== */

.anx-main { padding: 2rem 0 5rem; }

.anx-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.3rem;
  margin-bottom: 2.5rem;
}

.anx-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.anx-card__header {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
}

.anx-card__icon { font-size: 1.8rem; flex-shrink: 0; }

.anx-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.anx-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---- 5-4-3-2-1 Grounding ---- */
.grounding-steps { display: flex; flex-direction: column; gap: 0.8rem; }

.grounding-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 1px solid transparent;
  transition: border-color 0.25s;
}

.grounding-step.active { border-color: var(--accent); }
.grounding-step.done   { opacity: 0.5; }

.gs-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.grounding-step h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.grounding-step em { color: var(--accent); font-style: normal; }

.grounding-step p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.gs-inputs { display: flex; flex-direction: column; gap: 0.4rem; }

.gs-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  color: var(--text);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}
.gs-input:focus { border-color: var(--accent); }
.gs-input::placeholder { color: var(--muted); }

.grounding-complete {
  text-align: center;
  padding: 1.5rem 0;
}
.gc-icon { font-size: 3rem; display: block; margin-bottom: 0.7rem; }
.grounding-complete p { color: var(--muted); margin-bottom: 1rem; }

/* ---- Quick breathing ring ---- */
.qb-ring-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 1rem;
}

.qb-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.qb-track {
  fill: none;
  stroke: var(--surface2);
  stroke-width: 6;
}

.qb-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 0.05s linear, stroke 0.5s;
}

.qb-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--accent);
}

.qb-count {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.qb-start { display: block; margin: 0 auto; }

/* ---- Steps list ---- */
.anx-steps-list {
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 2;
  margin-bottom: 0.8rem;
}

.anx-note {
  font-size: 0.78rem;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 0.7rem;
  font-style: italic;
}

/* ---- Body check ---- */
.body-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bck-item {
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.bck-item:hover, .bck-item.active {
  border-color: var(--accent);
  background: rgba(139,124,248,0.1);
  color: var(--accent);
}

.bck-prompt {
  padding: 0.9rem;
  background: rgba(139,124,248,0.07);
  border-radius: var(--radius);
  border: 1px solid rgba(139,124,248,0.15);
}

.bck-prompt h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--accent);
}

.bck-prompt p { font-size: 0.85rem; color: var(--muted); }

/* ---- Reminder ---- */
.anx-reminder {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(139,124,248,0.1);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Crisis grid ---- */
.anx-card--crisis { border-color: rgba(248, 124, 139, 0.2); }

.crisis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.crisis-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.crisis-country {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.crisis-link {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
}

.crisis-link:hover { text-decoration: underline; }

.crisis-note {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---- Panic Attack Protocol ---- */
.anx-card--panic {
  border-color: rgba(248, 124, 139, 0.2);
}

.panic-steps {
  margin: 1rem 0;
  position: relative;
}

.panic-step {
  display: none;
  gap: 1rem;
  align-items: flex-start;
}

.panic-step.active {
  display: flex;
}

.panic-step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(248, 124, 139, 0.12);
  border: 1px solid rgba(248, 124, 139, 0.3);
  color: #f87c8b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.panic-step__body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.panic-step__body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.panic-step__body em {
  color: var(--text);
  font-style: italic;
}

.panic-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.panic-progress {
  font-size: 0.75rem;
  color: var(--muted);
}