/* =========================
 * Bible Journey Styles – build 9
 * ========================= */

/* --- Base Reset + Body --- */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  background: #0b1020;
  color: #e7ebf3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 600; margin: 0; }

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.lang-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

#langSelect {
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #25325e;
  background: #0f1530;
  color: #e7ebf3;
}


/* --- Container + Layout --- */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px;
}
header { margin-bottom: 12px; text-align: center; }
.subtitle { margin: 0; color: #aab3c9; }

/* --- Card Style --- */
.card {
  background: #121a33;
  border: 1px solid #25325e;
  border-radius: 16px;
  padding: 20px;
  margin: 12px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* --- Daily Verse --- */
#verse-card {
  text-align: center;
  background: #f8fafc;
  color: #222;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  border: none;
}
#verse-card h2 {
  color: #111;
  font-size: 1.3rem;
}
#daily-verse {
  font-size: 1.1rem;
  margin: 1rem 0;
  transition: opacity 0.6s ease;
  opacity: 1;
}
#refresh-btn {
  background: #52796f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}
#refresh-btn:hover {
  background: #354f52;
}

/* --- Inputs & Labels --- */
label { display: block; margin: 10px 0 6px; color: #c7d2f0; }
input[type=text], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #2a3a70;
  background: #0f1530;
  color: #e7ebf3;
  min-height: 44px;
}
textarea { resize: vertical; }

.input-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

/* --- Buttons --- */
button {
  background: #33415c;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}
button:hover { background: #445b84; }
button.secondary { background: #283046; }
button.secondary:hover { background: #3b4b69; }
button.danger { background: #8b2c2c; }
button.danger:hover { background: #a83636; }
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Result Area --- */
.result, .reflections, .meaning, .verse {
  margin-top: 8px;
}
.hidden { display: none; }
.muted {
  color: #aab3c9;
  font-size: 0.95rem;
}
.journal-list {
  margin-top: 1rem;
  border-top: 1px solid #2a3a70;
  padding-top: 0.8rem;
}
.journal-item {
  background: #0f1530;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  border: 1px solid #25325e;
}

/* --- Footer --- */
footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #8c96b3;
}

/* --- Smooth Fade-in for Verse --- */
.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-in;
}
.fade-in.show {
  opacity: 1;
}

/* --- Media Tweaks --- */
@media (min-width: 600px) {
  .input-row {
    flex-direction: row;
    align-items: center;
  }
  .input-row label {
    flex: 1;
    margin: 0;
  }
  .input-row input, .input-row select, .input-row textarea {
    flex: 3;
  }
  #refresh-btn { margin-top: 0.4rem; }
}
/* ---------- Checkbox Highlight Fix ---------- */
input[type="checkbox"] {
  accent-color: #4fa3ff; /* modern browsers */
}

/* Slight glow for selected checkboxes (for Safari/Firefox fallback) */
input[type="checkbox"]:checked {
  outline: 2px solid #4fa3ff55;
  background-color: #4fa3ff22;
  border-radius: 3px;
}

