/* © 2026 Enid Gaddis. All rights reserved. Unauthorized reproduction or distribution is prohibited. */

* {
  box-sizing: border-box;
}

:root {
  --cream: #fff8ec;
  --cream2: #f4ead7;
  --card: #fffdf7;
  --royal: #163f9f;
  --royal2: #0d2e76;
  --green: #167a5b;
  --green2: #0f5e46;
  --ink: #1d2540;
  --soft: #536072;
  --line: rgba(22, 63, 159, 0.22);
  --shadow: rgba(19, 46, 98, 0.16);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), transparent 36%),
    linear-gradient(160deg, #fff8ec, #f1eadc 52%, #eaf4ed);
  color: var(--ink);
  font-size: 16px;
}

button {
  font-family: inherit;
}

.app {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0;
}

/* ── MOBILE FIRST (Samsung Note 20 = 412px) ── */
.phone {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 0;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.92), transparent 26%),
    linear-gradient(180deg, #fffaf0, #f3ead8 56%, #edf7f0);
  box-shadow: none;
  padding: 20px 20px;
  border: none;
}

.screen {
  min-height: calc(100vh - 60px);
  animation: fadeIn 0.25s ease both;
}

.center {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  position: relative;
  z-index: 2;
  padding-top: 20px;
}

.welcome-screen {
  justify-content: center;
  align-items: center;
  padding: 12px 0;
  min-height: calc(100vh - 60px);
}

/* ── INTRO SCREEN ── */
.kicker {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
}

h1, h2, h3, p {
  margin-top: 0;
}

.title {
  color: var(--royal);
  font-size: 40px;
  line-height: 1.05;
  margin-bottom: 14px;
  font-weight: 600;
}

.subtitle {
  color: var(--soft);
  font-size: 18px;
  line-height: 1.5;
  margin: 0 auto 18px;
  max-width: 360px;
}

.blue-line {
  width: 148px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--royal), var(--green), transparent);
  margin: 10px auto 16px;
  position: relative;
}

.blue-line::after {
  content: "✦";
  color: var(--green);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  background: #fff7e8;
  padding: 0 9px;
  font-size: 14px;
}

/* ── PURSE IMAGES ── */
.welcome-purse-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 16px;
  display: grid;
  gap: 6px;
}

.welcome-purse-row {
  display: grid;
  gap: 6px;
  width: 100%;
}

.welcome-purse-row-all {
  grid-template-columns: repeat(5, 1fr);
}

.welcome-purse-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1.5px solid rgba(22, 63, 159, 0.35);
  background: var(--card);
  box-shadow: 0 4px 10px rgba(19, 46, 98, 0.12);
  padding: 6px 4px;
}

.welcome-purse-card img {
  width: 100%;
  height: auto;
  max-height: 110px;
  object-fit: contain;
  display: block;
}

/* ── BUTTONS ── */
.btn {
  border: none;
  border-radius: 999px;
  min-height: 54px;
  padding: 14px 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 10px 26px var(--shadow);
}

.btn-primary {
  background: linear-gradient(180deg, var(--royal), var(--royal2));
  color: #fffaf0;
  border: 2px solid rgba(22, 122, 91, 0.7);
}

.btn-light {
  background: rgba(255, 250, 241, 0.95);
  border: 1.5px solid var(--royal);
  color: var(--royal);
}

.btn-row {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.instructions-card,
.promise-card,
.category-card {
  background: rgba(255, 252, 245, 0.9);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 12px 34px var(--shadow);
}

.instructions-card {
  padding: 20px;
  text-align: left;
  line-height: 1.5;
  font-size: 16px;
}

.instructions-card h2 {
  color: var(--royal);
  font-size: 24px;
  margin-bottom: 10px;
}

.instructions-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.instructions-card li {
  margin: 8px 0;
}

/* ── MENU ── */
.top-title {
  text-align: center;
  padding: 18px 18px 8px;
}

.top-title h2 {
  font-size: 22px;
  line-height: 1.1;
  color: var(--royal);
  font-weight: 600;
  margin-bottom: 8px;
}

.progress-wrap {
  margin: 10px 0 14px;
  background: rgba(255, 252, 245, 0.75);
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(22, 63, 159, 0.16);
}

.progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--royal);
  font-weight: 900;
  margin-bottom: 7px;
}

.progress-track {
  height: 10px;
  border-radius: 99px;
  background: rgba(22, 63, 159, 0.12);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--royal), var(--green));
  border-radius: 99px;
  width: 0%;
  transition: width 0.35s ease;
}

.menu-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.menu-grid {
  display: grid;
  gap: 10px;
  padding-bottom: 20px;
}

.image-category-card {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
}

.image-category-toggle {
  position: relative;
  width: 100%;
  min-height: 200px;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border: none;
  background: var(--card);
  cursor: pointer;
  text-align: left;
  display: block;
}

.category-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  background: var(--card);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.14), transparent 28%, transparent 62%, rgba(13, 46, 118, 0.32));
  pointer-events: none;
}

.category-text {
  width: auto;
  max-width: calc(100% - 58px);
  padding: 8px 12px;
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.92);
  border: 1.5px solid rgba(22, 122, 91, 0.55);
  box-shadow: 0 6px 16px var(--shadow);
  z-index: 2;
  text-align: left;
}

.category-text strong {
  display: inline;
  color: var(--royal);
  font-size: 14px;
  line-height: 1;
}

.category-text small {
  display: inline-block;
  margin-left: 6px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
  vertical-align: middle;
}

.category-arrow {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.96);
  color: var(--royal);
  border: 1.5px solid var(--green);
  box-shadow: 0 4px 12px var(--shadow);
  font-size: 22px;
}

.promise-list {
  display: grid;
  gap: 8px;
}

.dropdown-list {
  padding: 12px;
  background: rgba(255, 252, 245, 0.96);
}

.promise-btn {
  border: 1px solid rgba(22, 63, 159, 0.22);
  background: #fffaf0;
  color: var(--ink);
  border-radius: 14px;
  min-height: 50px;
  text-align: left;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  font-size: 17px;
}

.promise-btn.completed {
  background: linear-gradient(90deg, rgba(22, 122, 91, 0.13), rgba(22, 63, 159, 0.07));
  border-color: rgba(22, 122, 91, 0.5);
}

.promise-btn strong {
  font-weight: 800;
}

.completed-mark {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
}

.pending-mark {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--royal);
  background: rgba(22, 63, 159, 0.08);
  border: 1px solid rgba(22, 63, 159, 0.18);
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ── SCRIPTURE SCREEN ── */
.promise-layout {
  position: relative;
  min-height: calc(100vh - 60px);
  padding-bottom: 16px;
}

.hero-area {
  position: relative;
  padding-right: 66px;
}

.side-actions {
  position: absolute;
  right: 0;
  top: 8px;
  display: grid;
  gap: 10px;
  width: 62px;
  z-index: 4;
  overflow: visible;
}

.side-btn {
  border-radius: 20px;
  border: 1.5px solid var(--royal);
  box-shadow: 0 6px 18px var(--shadow);
  padding: 10px 6px;
  min-height: 110px;
  background: rgba(255, 249, 239, 0.94);
  color: var(--royal);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.side-btn.claim {
  background: linear-gradient(180deg, var(--green), var(--green2));
  color: #fffaf0;
  border-color: var(--royal);
}

.side-btn.done {
  background: linear-gradient(180deg, var(--royal), var(--royal2));
  color: #fffaf0;
  border-color: var(--green);
}

.side-btn .side-icon {
  font-size: 18px;
  display: block;
  margin-bottom: 5px;
}

.full-scripture-card {
  margin: 10px 0 16px;
  background: rgba(255, 252, 245, 0.94);
  border: 1.5px solid rgba(22, 63, 159, 0.22);
  border-radius: 26px;
  box-shadow: 0 12px 28px var(--shadow);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
}

.card-purse-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
  border: 2px solid var(--green);
  box-shadow: 0 8px 20px var(--shadow);
  margin: 0 auto 12px;
  display: block;
  background: var(--card);
}

.full-scripture-card .card-label {
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
}

.full-scripture-card h3 {
  color: var(--royal);
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 12px;
  font-weight: 600;
}

.full-scripture-card p {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.full-scripture-card span {
  display: block;
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
}

.bottom-action {
  margin: 12px auto 0;
  display: block;
  width: min(310px, 100%);
}

/* ── AFFIRMATION SCREEN ── */
.affirmation-screen {
  padding-top: 10px;
}

.big-promise-card {
  margin: 14px 0 0 0;
  padding: 22px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.big-promise-card .card-label {
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 12px;
}

.big-promise-card .promise-text {
  font-size: 22px;
  line-height: 1.3;
  color: var(--royal2);
}

.reflection-card {
  margin: 12px 0 0 0;
  padding: 16px;
  line-height: 1.55;
  font-size: 16px;
  background: rgba(255, 252, 245, 0.94);
  border: 1.5px solid rgba(22, 63, 159, 0.22);
  border-radius: 22px;
  box-shadow: 0 10px 28px var(--shadow);
}

.reflection-card strong {
  color: var(--green);
}

/* ── MODALS ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(13, 46, 118, 0.42);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-card {
  width: min(380px, 100%);
  background: #fffaf0;
  border: 2px solid var(--green);
  border-radius: 28px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.modal-card h2 {
  color: var(--royal);
  font-size: 30px;
}

.modal-card p {
  line-height: 1.5;
  font-size: 16px;
}

/* ── COMPLETION ── */
.completion-screen-card {
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  padding-top: 24px;
}

.completion-screen-card h2 {
  color: var(--royal);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 14px;
}

.completion-screen-card p {
  color: var(--soft);
  font-size: 17px;
  line-height: 1.5;
}

.completion-badge {
  font-size: 52px;
  margin-bottom: 14px;
}

/* ── NAV ── */
.top-nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 2px 0 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.nav-btn {
  border: 1.5px solid var(--royal);
  background: rgba(255, 248, 236, 0.94);
  color: var(--royal);
  border-radius: 999px;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--shadow);
}

.nav-btn.primary-nav {
  background: linear-gradient(180deg, var(--royal), var(--royal2));
  color: #fffaf0;
  border-color: var(--green);
}

.return-menu-btn {
  margin-top: 12px;
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  border: 1.5px solid var(--royal);
  background: rgba(255, 248, 236, 0.94);
  color: var(--royal);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 16px var(--shadow);
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--royal);
  color: #fffaf0;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  font-family: Georgia, serif;
  box-shadow: 0 8px 28px rgba(19, 46, 98, 0.28);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 99;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}

.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.copyright-footer {
  color: var(--soft);
  font-size: 13px;
  margin-top: 20px;
  opacity: 1;
  letter-spacing: 0.04em;
  text-align: center;
  width: 100%;
  display: block;
}

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

/* ── DESKTOP (760px+) ── */
@media (min-width: 760px) {
  .app {
    padding: 0;
    align-items: stretch;
  }

  .phone {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    border-radius: 0;
    padding: 24px clamp(24px, 5vw, 72px);
    overflow: auto;
  }

  .screen {
    min-height: calc(100vh - 80px);
  }

  .center {
    width: min(1120px, 100%);
    margin: 0 auto;
  }

  .title {
    font-size: clamp(44px, 5vw, 66px);
  }

  .subtitle {
    max-width: 700px;
    font-size: 20px;
  }

  .welcome-purse-wrap {
    max-width: 100%;
    gap: 12px;
    margin-bottom: 22px;
  }

  .welcome-purse-card img {
    max-height: 200px;
    padding: 0;
  }

  .instructions-card {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
  }

  .btn-row {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr 1fr;
  }

  .top-nav {
    justify-content: flex-end;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
  }

  .top-title h2 {
    font-size: clamp(36px, 4vw, 52px);
  }

  .progress-wrap,
  .menu-actions,
  .menu-grid {
    width: min(1120px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .image-category-toggle {
    min-height: 280px;
  }

  .category-img {
    padding: 10px;
  }

  .category-text strong {
    font-size: 15px;
  }

  .hero-area {
    width: min(900px, 100%);
    margin: 0 auto;
    padding-right: 88px;
  }

  .side-actions {
    width: 74px;
    top: 20px;
  }

  .side-btn {
    min-height: 108px;
    font-size: 13px;
  }

  .full-scripture-card {
    padding: 24px 36px;
  }

  .card-purse-img {
    width: 96px;
    height: 96px;
  }

  .full-scripture-card h3 {
    font-size: 26px;
  }

  .full-scripture-card p {
    font-size: 19px;
  }

  .full-scripture-card .card-label {
    font-size: 16px;
  }

  .full-scripture-card span {
    font-size: 17px;
  }

  .big-promise-card {
    padding: 26px 40px;
  }

  .big-promise-card .promise-text {
    font-size: clamp(26px, 2.8vw, 34px);
  }

  .big-promise-card .card-label {
    font-size: 17px;
  }

  .reflection-card {
    font-size: 16px;
    padding: 16px 22px;
  }

  .completion-screen-card {
    width: min(800px, 100%);
    margin: 0 auto;
  }
}

/* ── HAMBURGER MENU ── */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: center;
  padding: 6px 8px;
  min-height: 36px;
  background: rgba(255, 248, 236, 0.94);
  border: 1.5px solid var(--royal);
  border-radius: 999px;
  cursor: pointer;
}

.ham-line {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--royal);
  border-radius: 2px;
}

.hamburger-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 50;
}

.hamburger-overlay.open {
  display: block;
}

.hamburger-drawer {
  position: fixed;
  top: 0;
  right: -260px;
  width: 240px;
  height: 100vh;
  background: #fffaf0;
  border-left: 1.5px solid rgba(22, 63, 159, 0.18);
  box-shadow: -6px 0 24px rgba(19, 46, 98, 0.14);
  z-index: 51;
  transition: right 0.28s ease;
  display: flex;
  flex-direction: column;
}

.hamburger-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 14px;
  border-bottom: 1.5px solid rgba(22, 63, 159, 0.12);
}

.drawer-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--royal);
  font-family: Georgia, serif;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--soft);
  cursor: pointer;
  padding: 4px 8px;
}

.drawer-item {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(22, 63, 159, 0.08);
  padding: 16px 18px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--royal);
  font-family: Georgia, serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-item:last-child {
  border-bottom: none;
  color: var(--soft);
  font-size: 14px;
}

.drawer-item:hover {
  background: rgba(22, 63, 159, 0.04);
}

.drawer-icon {
  font-size: 18px;
}

.music-btn {
  font-size: 16px;
  padding: 6px 10px;
}

/* ── ABOUT SCREEN ── */
.about-screen {
  padding-bottom: 24px;
}

.about-card {
  background: rgba(255, 252, 245, 0.94);
  border: 1.5px solid rgba(22, 63, 159, 0.22);
  border-radius: 24px;
  box-shadow: 0 12px 28px var(--shadow);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 16px;
}

.about-initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--royal), var(--royal2));
  color: #fffaf0;
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border: 3px solid var(--green);
}

.about-role {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.4;
}

.about-bio {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.contact-card {
  background: rgba(255, 252, 245, 0.94);
  border: 1.5px solid rgba(22, 63, 159, 0.22);
  border-radius: 24px;
  box-shadow: 0 12px 28px var(--shadow);
  padding: 20px;
  text-align: center;
}

.contact-text {
  color: var(--soft);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.contact-btn {
  width: 100%;
}
