/* ============================================================
   styles.css — Cuddly Coach global styles
   Component-level styling is handled inline in app.js to
   faithfully match the design mockup.
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Mulish', sans-serif;
  color: #2E2620;
  background-color: #F4ECDD;
  background-image: radial-gradient(rgba(59,48,39,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

input, button {
  font-family: 'Mulish', sans-serif;
}

input::placeholder {
  color: rgba(46,38,32,.32);
}

/* Focus ring for keyboard navigation */
button:focus-visible,
input:focus-visible {
  outline: 2px solid #B0623C;
  outline-offset: 2px;
}

/* ---- Animations ---- */

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

@keyframes dgFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes dgBlink {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40%           { opacity: 1;   transform: translateY(-5px); }
}

@keyframes dgPop {
  from { transform: scale(.96); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ---- Utility ---- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Likert scale buttons ---- */
.lk-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  border: 1.5px solid rgba(59,48,39,.12);
  border-radius: 14px;
  cursor: pointer;
  font-family: 'Mulish', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #2E2620;
  text-align: left;
  transition: all .14s ease;
}
.lk-btn:hover {
  background: rgba(176,98,60,.05);
  border-color: rgba(176,98,60,.35);
}
.lk-btn.sel {
  background: rgba(176,98,60,.08);
  border-color: #B0623C;
  border-width: 2px;
}
.lk-btn .lk-num {
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  color: rgba(46,38,32,.28);
  width: 16px;
  text-align: center;
  transition: color .14s ease;
}
.lk-btn.sel .lk-num {
  color: #B0623C;
}

/* ---- Forced-choice option buttons ---- */
.fc-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  background: #fff;
  border: 1.5px solid rgba(59,48,39,.12);
  border-radius: 14px;
  cursor: pointer;
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #2E2620;
  text-align: left;
  transition: all .14s ease;
}
.fc-opt:hover {
  background: rgba(176,98,60,.05);
  border-color: rgba(176,98,60,.35);
}
.fc-opt.sel {
  background: rgba(176,98,60,.08);
  border-color: #B0623C;
  border-width: 2px;
  box-shadow: 0 4px 14px rgba(176,98,60,.18);
}
.fc-opt .fc-icon {
  font-size: 24px;
  width: 34px;
  flex-shrink: 0;
}

/* ---- Love language chips (result page) ---- */
.love-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1.5px solid rgba(59,48,39,.14);
  background: transparent;
  font-family: 'Mulish', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(46,38,32,.6);
  cursor: pointer;
  transition: all .16s ease;
}
.love-chip:hover {
  border-color: rgba(59,48,39,.3);
  color: #2E2620;
}
.love-chip.sel {
  border-width: 2px;
  color: #2E2620;
  font-weight: 700;
}

/* ---- Axis detail card ---- */
.axis-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  border-left: 4px solid transparent;
}

/* ---- Guide cards (strengths / watch-outs) ---- */
.guide-card {
  border-radius: 14px;
  padding: 20px 22px;
}
.guide-shine {
  background: rgba(74,124,89,.07);
  border-left: 4px solid #4A7C59;
}
.guide-needs {
  background: rgba(176,98,60,.07);
  border-left: 4px solid #B0623C;
}
