/* styles.css */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f6f9fc, #e8f0ff);
  color: #1f2933;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem;
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  color: #111827;
}

.logo span {
  color: #3b82f6;
}

.main-nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #4b5563;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: #111827;
}

.site-main {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Hero / intro */
.hero {
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.hero p {
  max-width: 640px;
  margin: 0.5rem auto;
  color: #4b5563;
}

/* Category grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 150ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  border-color: rgba(59,130,246,0.4);
}

.card:hover::before {
  opacity: 1;
}

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.card p {
  font-size: 0.92rem;
  color: #4b5563;
}

.card a {
  position: absolute;
  inset: 0;
  text-indent: -9999px;
}

/* Category page */
.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  text-decoration: none;
  color: #4b5563;
  margin-bottom: 1rem;
}

.back-link span {
  margin-left: 0.25rem;
}

.category-header {
  margin-bottom: 1rem;
}

.category-header h1 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.category-header p {
  color: #4b5563;
  font-size: 0.95rem;
}

/* Affirmation box */
.affirmation-box {
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
  border: 1px solid rgba(148,163,184,0.4);
  margin-bottom: 1.5rem;
}

.affirmation-box h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.affirmation-box p {
  font-size: 1.1rem;
  color: #111827;
}

/* Controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.controls label {
  font-size: 0.95rem;
}

.select-field,
.button-primary {
  border-radius: 999px;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}

.select-field {
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(255,255,255,0.9);
}

.button-primary {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(59,130,246,0.35);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(79,70,229,0.45);
}

.button-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Session page */
.session-wrapper {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.session-affirmation {
  background: rgba(255,255,255,0.98);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 18px 40px rgba(15,23,42,0.15);
  border: 1px solid rgba(148,163,184,0.5);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.session-affirmation p {
  font-size: 1.3rem;
  color: #111827;
}

/* Progress bar */
.progress-container {
  width: 100%;
  background: rgba(148,163,184,0.25);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 8px;
  width: 0%;
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  transition: width 500ms ease;
}

.session-meta {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.session-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button-secondary {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  background: rgba(255,255,255,0.9);
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  color: #374151;
}

/* Completion message */
.session-complete {
  margin-top: 1rem;
  font-size: 1rem;
  color: #16a34a;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  .session-affirmation {
    padding: 1.5rem 1rem;
  }
  .session-affirmation p {
    font-size: 1.15rem;
  }
}


.email-signup {
  text-align: center;
  margin-top: 1rem;
}

.email-button {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  font-size: 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 8px 18px rgba(99,102,241,0.25);
  transition: all 150ms ease;
}

.email-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(79,70,229,0.35);
}

.email-button:active {
  transform: translateY(0px);
  box-shadow: 0 6px 12px rgba(79,70,229,0.2);
}
