/* Add Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Standardize box sizing so width:100% elements respect container padding */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1, h2 {
  text-align: left;
  font-weight: 600;
}

p {
    line-height: 1.5;
}

form {
  margin-top: 1rem;
}

input[type='text'],
input[type='email'],
input[type='password'],
textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1.0rem;
}

button {
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.error {
  color: red;
} 

/* Landing Page Styles */
body.landing {
  background: #ffffff;
  color: black;
}

.hero {
  text-align: center;
  padding: 4rem 1rem;
}

.success {
  background-color: #d0f5d0;
  color: green;
  padding: 10px;
  border-radius: 6px;
}

.tagline {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.cta-buttons {
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  background: #fff;
  color: #ff7e5f;
  border: none;
  margin-bottom: 14px !important;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  margin: 0 0.5rem;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover {
  background: #ffe;
}

.btn.secondary {
  background: transparent;
  border: none;
  box-shadow: inset 0 0 0 2px #ec008c; /* inner border */
  color: #ec008c;
  border-radius: 100px;
}

.features {
  background: #fff;
  color: black;
  padding: 2rem 1rem;
  border-radius: 10px;
  max-width: 600px;
  margin: -2rem auto 2rem;
  border: 2px solid #ddd;
}

.features h2 {
  text-align: center;
}

.features ul {
  list-style: disc;
  margin: 1rem 0 0 1.5rem;
  padding: 0;
} 

/* === Honesty Box Theme Refresh – July 2025 === */
body {
  /* Reset previous layout constraints and add gradient */
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #a0dfff 0%, #ffa0e6 100%);
  min-height: 100vh;
  font-family: 'Outfit', sans-serif;
  color: black;
}

/* Remove white override from the landing page version */
body.landing {
  background: transparent;
}

/* Site-wide content wrapper */
.page-container {
  background: #ffffff;
  padding: 2rem 1.5rem;
  margin: 2rem auto;
  max-width: 900px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Shared logo styles */
.logo {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
}

/* Tweak feature section spacing now that it lives inside the container */
.features {
  margin: 2rem 0 0;
  max-width: 100%;
  border: none; /* remove the inner border */
} 

/* Style for the “Save changes” button on settings page */
.btn-save {
  background-color: #ec008c;
  color: #ffffff;
  border-radius: 100px;
  border: none;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
} 

/* Ensure form controls use the Outfit font */
input,
select,
textarea,
button {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
} 

/* --------------------------------------------------
   Feature Cards – responsive grid
   -------------------------------------------------- */
.features {
  /* switch to grid layout so cards can span columns */
  display: grid;
  grid-template-columns: 1fr; /* mobile: single column */
  gap: 1.5rem; /* consistent spacing between cards */
  padding: 2rem 0; /* retain breathing room */
}

@media (min-width: 768px) {
  /* desktop / tablet – exactly three cards side-by-side */
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card styling */
.feature-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-card svg {
  width: 40px;
  height: 40px;
  color: #ec008c; /* match brand accent */
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.5;
} 

/* --------------------------------------------------
   Message list – card look
   -------------------------------------------------- */

.msg-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.msg-list li {
  background: #f9f9fb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.msg-list li em {
  display: block;
  color: #777;
  font-size: 0.85rem;
  margin-top: 0.4rem;
  font-style: normal;
} 

.msg-list li.placeholder {
  color: #666;
  font-style: italic;
  text-align: center;
}

#shareCard {
  width: 100%;
  max-width: 350px;
  height: auto;
  display: block;
}

.share-card-wrapper img {
  width: 100%;
  height: auto;
  max-width: 350px;
  display: block;
}

.share-card-wrapper {
  overflow-x: auto;
}

/* --------------------------------------------------
   Navigation bar
   -------------------------------------------------- */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.nav-links a {
  color: #ec008c;
  text-decoration: none;
  font-weight: 600;
  margin-left: 1rem;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------
   Prompt vibe chips
   -------------------------------------------------- */
.vibes {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.vibe-chip {
  background: #f0f2f7;
  color: #333;
  border: none;
  border-radius: 16px;
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.vibe-chip.active,
.vibe-chip:hover {
  background: #ec008c;
  color: #ffffff;
}

.vibe-helper {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.25rem;
}

#shufflePrompt {
  margin-top: 0.5rem;
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 24px;
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------
   Footer
   -------------------------------------------------- */
.footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer a {
  color: #ec008c;
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.pagination span {
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e0e0e0;
}

.tab {
  text-decoration: none;
  color: #555;
  padding: 0.5rem 0;
  font-weight: 600;
  position: relative;
}

.tab.active {
  color: #ec008c;
}

.tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #ec008c;
}