/* ============================================
   PERSEVERANCE APP — style.css
   ============================================ */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #fdf6ff;
  color: #1a1a2e;
  line-height: 1.6;
  min-height: 100vh;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: relative;
  background: linear-gradient(135deg, #7b2ff7 0%, #f72585 60%, #ff9f1c 100%);
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}

.header-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
}
.blob-1 {
  width: 400px; height: 400px;
  background: #fff;
  top: -120px; left: -100px;
}
.blob-2 {
  width: 300px; height: 300px;
  background: #fff;
  bottom: -80px; right: -60px;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.site-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.highlight {
  background: linear-gradient(90deg, #fff 0%, #ffe066 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-desc {
  color: rgba(255,255,255,0.92);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 1.75rem;
  line-height: 1.75;
}

.header-tags {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.3);
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-wrap {
  background: #fff;
  border-radius: 0 0 20px 20px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 24px rgba(123,47,247,0.10);
  margin-bottom: 2rem;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8e0f7;
  color: #9a7ecb;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #e8e0f7;
  transition: all 0.35s ease;
}

.progress-step.active .step-dot,
.progress-step.done .step-dot {
  background: linear-gradient(135deg, #7b2ff7, #f72585);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(123,47,247,0.35);
}

.progress-step.done .step-dot::after {
  content: '✓';
}

.step-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #bbb;
  text-transform: uppercase;
  transition: color 0.35s;
}

.progress-step.active .step-label,
.progress-step.done .step-label {
  color: #7b2ff7;
}

.progress-line {
  flex: 1;
  height: 3px;
  background: #e8e0f7;
  min-width: 30px;
  max-width: 80px;
  border-radius: 2px;
  margin-bottom: 20px;
  transition: background 0.35s;
}

.progress-line.done {
  background: linear-gradient(90deg, #7b2ff7, #f72585);
}

/* ============================================
   FORM SECTION
   ============================================ */
.form-wrap {
  margin-bottom: 3rem;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeSlideUp 0.4s ease both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 8px 40px rgba(123,47,247,0.10), 0 2px 8px rgba(0,0,0,0.04);
  max-width: 780px;
  margin: 0 auto;
}

.step-emoji {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 0.4rem;
}

.step-subtitle {
  color: #6b7280;
  font-size: 0.97rem;
  margin-bottom: 1.75rem;
}

/* FIELD GROUP */
.field-group {
  margin-bottom: 1.5rem;
}

.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.55rem;
  letter-spacing: 0.2px;
}

.field-textarea, .field-input, .field-select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  font-size: 0.97rem;
  font-family: inherit;
  color: #1a1a2e;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
  appearance: none;
}

.field-textarea:focus, .field-input:focus, .field-select:focus {
  border-color: #7b2ff7;
  box-shadow: 0 0 0 4px rgba(123,47,247,0.12);
  background: #fff;
}

.field-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237b2ff7' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 4px;
}

/* CHIPS */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  padding: 8px 16px;
  border-radius: 100px;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.chip:hover {
  border-color: #c084fc;
  color: #7b2ff7;
  background: #fdf4ff;
}

.chip.selected {
  background: linear-gradient(135deg, #7b2ff7, #f72585);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(123,47,247,0.3);
}

/* CHECKBOX GRID */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
  user-select: none;
}

.check-card:hover {
  border-color: #c084fc;
  background: #fdf4ff;
}

.check-card input[type="checkbox"] {
  display: none;
}

.check-card:has(input:checked) {
  border-color: #7b2ff7;
  background: linear-gradient(135deg, #fdf4ff, #fff0f9);
  box-shadow: 0 0 0 2px rgba(123,47,247,0.15);
}

.check-icon { font-size: 1.1rem; flex-shrink: 0; }

.check-text {
  font-size: 0.84rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.3;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.22s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #7b2ff7, #f72585);
  color: #fff;
  box-shadow: 0 4px 18px rgba(123,47,247,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(123,47,247,0.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: #7b2ff7;
  border: 2px solid #e5e7eb;
}

.btn-ghost:hover {
  border-color: #7b2ff7;
  background: #fdf4ff;
}

.btn-large { padding: 16px 36px; font-size: 1.05rem; }

.btn-arrow { font-size: 1rem; }
.btn-sparkle { font-size: 1.1rem; }

.btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================
   RESULTS SECTION
   ============================================ */
.results-section {
  animation: fadeSlideUp 0.5s ease both;
}

.results-section.hidden {
  display: none;
}

.results-header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  position: relative;
}

.results-badge {
  display: inline-block;
  background: linear-gradient(135deg, #7b2ff7, #f72585);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.results-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.results-subtitle {
  color: #6b7280;
  font-size: 1.05rem;
}

/* CONFETTI */
.results-confetti {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall linear both;
  top: -20px;
}

@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(400px) rotate(720deg); opacity: 0; }
}

/* STATS ROW */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  border-radius: 20px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
}

.stat-purple { background: linear-gradient(135deg, #f5edff, #ede0ff); }
.stat-pink   { background: linear-gradient(135deg, #fff0f7, #ffd6ec); }
.stat-orange { background: linear-gradient(135deg, #fff5e6, #ffe5b4); }
.stat-green  { background: linear-gradient(135deg, #e8fff2, #c6f7e2); }

.stat-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }

.stat-value {
  font-size: 1rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* SECTION LABEL */
.section-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 1rem;
  padding-left: 0.25rem;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

/* ACTION STEP CARD */
.action-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border-left: 5px solid transparent;
  transition: transform 0.22s, box-shadow 0.22s;
  position: relative;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(123,47,247,0.12);
}

.action-card-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.action-card-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }

.action-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.action-card-body {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.65;
}

.action-card-time {
  display: inline-block;
  margin-top: 0.75rem;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

/* BORDER COLORS */
.accent-purple { border-left-color: #7b2ff7; }
.accent-pink   { border-left-color: #f72585; }
.accent-orange { border-left-color: #ff9f1c; }
.accent-green  { border-left-color: #10b981; }
.accent-blue   { border-left-color: #3b82f6; }
.accent-teal   { border-left-color: #14b8a6; }

/* BLOCK BUSTER CARD */
.block-card {
  background: linear-gradient(135deg, #fff0f9, #f5edff);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.22s;
}

.block-card:hover { transform: translateY(-3px); }

.block-card-block {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f72585;
  margin-bottom: 0.4rem;
}

.block-card-title {
  font-size: 0.97rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 0.4rem;
}

.block-card-body {
  font-size: 0.86rem;
  color: #4b5563;
  line-height: 1.65;
}

/* MINI GOAL BANNER */
.mini-goal-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, #7b2ff7, #f72585);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 30px rgba(123,47,247,0.3);
}

.mini-goal-icon { font-size: 2.4rem; flex-shrink: 0; }

.mini-goal-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.4rem;
}

.mini-goal-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
}

/* AFFIRMATION */
.affirmation-card {
  background: linear-gradient(135deg, #fff5e6, #fff0f9);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(255,159,28,0.12);
  border: 2px solid rgba(255,159,28,0.18);
}

.affirmation-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ff9f1c;
  margin-bottom: 1rem;
}

.affirmation-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.affirmation-name {
  font-size: 0.85rem;
  color: #9ca3af;
  font-weight: 600;
}

/* RESOURCE CARD */
.resource-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(123,47,247,0.12);
}

.resource-icon { font-size: 1.6rem; }

.resource-title {
  font-size: 0.97rem;
  font-weight: 800;
  color: #1a1a2e;
}

.resource-body {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
  flex: 1;
}

.resource-tag {
  display: inline-block;
  background: linear-gradient(135deg, #ede0ff, #ffd6ec);
  color: #7b2ff7;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
}

/* RESTART */
.restart-wrap {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 0 4rem;
}

/* ============================================
   ROOTED IN PRAYER
   ============================================ */
.prayer-section {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 55%, #7b2ff7 100%);
  padding: 4.5rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}

.prayer-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
  background: #ffe066;
}
.blob-a { width: 340px; height: 340px; top: -100px; right: -80px; }
.blob-b { width: 260px; height: 260px; bottom: -70px; left: -60px; }

.prayer-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin: 1.25rem 0 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.prayer-desc {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 3rem;
  line-height: 1.75;
}

.prayer-features {
  max-width: 1000px;
  margin: 0 auto 3rem;
  text-align: left;
}

.prayer-feature-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.prayer-feature-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }

.prayer-feature-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.prayer-feature-body {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.prayer-form-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  text-align: left;
}

.prayer-form-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 0.4rem;
}

.prayer-form-subtitle {
  font-size: 0.92rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 1.5rem;
}

.prayer-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.prayer-reassurance {
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}

.prayer-form-success {
  font-size: 0.92rem;
  font-weight: 700;
  color: #10b981;
  text-align: center;
  margin-top: 1rem;
}

.prayer-form-success.hidden { display: none; }
.prayer-form.hidden { display: none; }

@media (max-width: 768px) {
  .prayer-form-card { padding: 2rem 1.5rem; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: linear-gradient(135deg, #1a1a2e, #2d1b69);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.25rem;
}

.footer-sub em { color: rgba(255,159,28,0.8); font-style: normal; font-weight: 600; }

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header, .progress-wrap, .form-wrap, .restart-wrap, .site-footer { display: none !important; }
  .results-section { display: block !important; }
  body { background: #fff; }
  .stat-card, .action-card, .block-card, .resource-card { break-inside: avoid; box-shadow: none; border: 1px solid #eee; }
  .mini-goal-banner { background: #7b2ff7 !important; -webkit-print-color-adjust: exact; }
  .affirmation-card { background: #fff5e6 !important; -webkit-print-color-adjust: exact; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .step-card { padding: 1.75rem 1.25rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { justify-content: center; }
  .mini-goal-banner { flex-direction: column; text-align: center; }
  .progress-step .step-label { display: none; }
  .affirmation-text { font-size: 1.1rem; }
  .cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .progress-steps { gap: 0; }
  .step-dot { width: 30px; height: 30px; font-size: 0.75rem; }
}
