/* =====================
   THEME VARIABLES
===================== */

:root {
  --bg: #000;
  --card: rgba(255,255,255,0.06);
  --accent: #ffb020;
  --text: #ffffff;
}

/* ☀️ DAY */
body[data-theme="day"] {
  --bg: #141414;
  --card: rgba(255,255,255,0.14);
  --accent: #ffb703;
}

/* 🌅 WARM */
body[data-theme="warm"] {
  --bg: #351600;
  --card: rgba(255,220,180,0.18);
  --accent: #ff9f1c;
}

/* 🌙 NIGHT */
body[data-theme="night"] {
  --bg: #000d2f;
  --card: rgba(255,255,255,0.06);
  --accent: #ffd166;
}

/* =====================
   GLOBAL
===================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  transition: background 0.4s ease;
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 20px;
}

.screen.active {
  display: block;
}

/* =====================
   HEADER
===================== */

.header {
  text-align: center;
  font-weight: 700;
  margin: 16px 0 28px;
  position: relative;
  font-size: 2rem;
}

.setting-btn {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.7;
}

/* =====================
   HOME – RECIPE LIST
===================== */

.recipe-list {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recipe-btn {
  display: block;
  width: 100%;
  padding: 18px 22px;
  border-radius: 999px;
  border: none;

  background: linear-gradient(
    90deg,
    var(--accent),
    #ffd18b
  );

  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;

  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.recipe-btn b {
  display: block;
}

/* =====================
   CARD
===================== */

.card {
  background: var(--card);
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 18px;
}

.label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 6px;
}

/* DETAIL TITLE FIX */
#detail-title {

  padding: 0 6px;

  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  align-items: center;

  color: #ffffff;
  opacity: 0.95;
  letter-spacing: 0.2px;
}

#detail-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.9;
  align-items: center;
}

/* =====================
   BUTTONS
===================== */

.btn-main {
  width: 100%;
  padding: 16px;
  border-radius: 40px;
  border: none;
  font-weight: 700;

  background: linear-gradient(
    90deg,
    var(--accent),
    #ffd18b
  );

  color: #000;
  font-size: 0.95rem;
}

.btn-back {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--text);
}

/* =====================
   SETTINGS
===================== */

.settings {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
}

.settings.hidden {
  display: none;
}

.settings-card {
  width: 100%;
  padding: 20px;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
}

.settings-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.theme-options button {
  width: 100%;
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 30px;
  border: none;
  background: var(--card);
  color: var(--text);
}

/* =====================
   TIMER LAYOUT
===================== */

#timer {
  display: none;
}

#timer.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* TIMER CIRCLE */
.timer-wrap {
  width: 260px;
  height: 260px;
  position: relative;
  margin-bottom: 8px;
}

svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.bg {
  fill: none;
  stroke: rgba(255,255,255,0.12);
  stroke-width: 6;
}

.fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
}

/* TIME */
.time {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--accent);
}

/* STATUS */
.status {
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 1.4px;
  opacity: 0.6;
}

/* STEP */
.step-box {
  margin-top: 16px;
  min-height: 80px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-sub {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* NEXT STEP */
.next {
  margin-top: 20px;
  font-size: 0.7rem;
  letter-spacing: 1.2px;
  opacity: 0.5;
}

#next-step {
  margin-top: 4px;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* SUMMARY */
.summary {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.summary h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.hidden {
  display: none;
}

/* =====================
   MOBILE SAFE
===================== */

@media (max-width: 480px) {
  .recipe-list {
    padding: 0 6px;
  }
}
/* =====================
   GROUP MENU
===================== */

.group-menu {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.group-menu button {
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  background: var(--card);
  color: var(--text);
  font-size: 0.75rem;
  opacity: 0.6;
  cursor: pointer;
}

.group-menu button.active {
  background: var(--accent);
  color: #000;
  opacity: 1;
  font-weight: 600;
}
.note-card {
  opacity: 0.9;
}

.note-card .label {
  color: var(--accent);
}

.note-card div {
  font-size: 0.9rem;
  line-height: 1.45;
}
