/* IkigAI Skills — Components CSS v3 */

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.75rem;
  border-radius: var(--r);
  font-family: var(--font-b);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn:disabled { opacity: 0.45; pointer-events: none; }

.btn-primary   { background: var(--ink);  color: var(--gold-lt); }
.btn-primary:hover { background: var(--ink-soft); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-gold      { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-1px); }

.btn-outline   { background: transparent; color: var(--ink); border: 1px solid var(--border-md); }
.btn-outline:hover { border-color: var(--gold); background: var(--gold-pale); }

.btn-ghost     { background: transparent; color: var(--muted); padding: 0.5rem 1rem; }
.btn-ghost:hover { color: var(--ink); }

.btn-full      { width: 100%; }
.btn-sm        { padding: 0.55rem 1.1rem; font-size: 0.83rem; }
.btn-pill      { border-radius: 50px; }

.btn .arr      { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card-gold-accent  { border-left: 2px solid var(--gold); }
.card-moss-accent  { border-left: 2px solid var(--moss); }
.card-alert-accent { border-left: 2px solid var(--alert); background: var(--alert-bg); }

.card-dark {
  background: var(--ink);
  color: white;
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.card-dark::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(184,151,58,0.12);
  pointer-events: none;
}

/* ── Form elements ──────────────────────────────────────────────── */
.input-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.input-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-md);
  border-radius: var(--r);
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border 0.15s;
}
.input:focus { border-color: var(--gold); }
.input::placeholder { color: var(--muted); opacity: 0.7; }

.textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

/* ── Checkbox ───────────────────────────────────────────────────── */
.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.6;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

/* ── Badges / Pills ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
}
.badge-gold  { background: var(--gold-pale);  color: var(--gold); }
.badge-moss  { background: var(--moss-pale);  color: var(--moss); }
.badge-alert { background: var(--alert-bg);   color: var(--alert); }
.badge-muted { background: rgba(28,26,20,0.06); color: var(--muted); }

/* ── Progress bar ───────────────────────────────────────────────── */
.progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--moss), var(--gold));
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Section header ─────────────────────────────────────────────── */
.sec-hdr {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.1rem;
}
.sec-num {
  font-family: var(--font-d);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gold);
  opacity: 0.6;
}
.sec-title {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink);
}

/* ── Stat card ──────────────────────────────────────────────────── */
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}
.stat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.stat-value {
  font-family: var(--font-d);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 3px;
}
.stat-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.4;
}

/* ── Toast notifications ────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 300;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.3s ease;
  pointer-events: all;
  max-width: 340px;
  text-align: center;
}
.toast.success { background: var(--moss); }
.toast.error   { background: var(--alert); }

/* ── Task checkbox ──────────────────────────────────────────────── */
.task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.task-item:last-child { border-bottom: none; }
.task-checkbox {
  width: 22px; height: 22px;
  border: 1.5px solid var(--border-md);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-size: 13px;
  color: transparent;
}
.task-checkbox.checked {
  background: var(--moss);
  border-color: var(--moss);
  color: white;
}
.task-checkbox.partial {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--gold);
}
.task-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
  font-weight: 300;
  flex: 1;
}
.task-text.done {
  text-decoration: line-through;
  color: var(--muted);
}

/* ── Momentum ring ──────────────────────────────────────────────── */
.momentum-ring {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}
.momentum-ring svg { transform: rotate(-90deg); }
.momentum-ring-bg   { fill: none; stroke: var(--border); stroke-width: 6; }
.momentum-ring-fill { fill: none; stroke: url(#momentumGrad); stroke-width: 6;
                      stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.momentum-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.momentum-number {
  font-family: var(--font-d);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}
.momentum-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Timeline ───────────────────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-month { margin-bottom: 1.25rem; }
.timeline-month-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.timeline-weeks { display: flex; gap: 6px; }
.timeline-week {
  width: 40px; height: 40px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: white;
  position: relative;
  cursor: default;
  transition: transform 0.15s;
}
.timeline-week:hover { transform: scale(1.08); }
.timeline-week.done    { background: var(--moss); }
.timeline-week.partial { background: var(--gold); }
.timeline-week.skipped { background: rgba(28,26,20,0.12); color: var(--muted); }
.timeline-week.pending { background: transparent; border: 1.5px dashed var(--border-md); color: var(--muted); }
.timeline-week.monthly { border-radius: 50%; }

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .btn { padding: 0.75rem 1.4rem; }
  .card { padding: 1rem; }
  .timeline-week { width: 34px; height: 34px; font-size: 10px; }
}
