/* Calm Wealth Journal - Static Page Styles */
/* Matches the design system from src/index.css */

:root {
  /* Calm Wealth Journal - Trust & Growth Theme */
  --background: 210 20% 98%;
  --foreground: 215 25% 15%;

  --card: 0 0% 100%;
  --card-foreground: 215 25% 15%;

  /* Navy blue - trust, stability */
  --primary: 215 45% 25%;
  --primary-foreground: 210 20% 98%;

  /* Light sage - calm, secondary actions */
  --secondary: 150 15% 92%;
  --secondary-foreground: 215 45% 25%;

  /* Muted backgrounds */
  --muted: 210 20% 95%;
  --muted-foreground: 215 15% 45%;

  /* Sage green accent - growth, calm */
  --accent: 150 30% 45%;
  --accent-foreground: 0 0% 100%;

  /* Warning colors */
  --warning: 35 95% 55%;
  --warning-foreground: 215 25% 15%;

  /* Border */
  --border: 215 15% 88%;

  --radius: 0.75rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Typography */
h1 {
  font-size: 1.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

p {
  color: hsl(var(--foreground) / 0.9);
  margin-bottom: 0.75rem;
}

/* Header Section */
.page-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: background-color 0.2s;
  flex-shrink: 0;
  cursor: pointer;
}

.back-button:hover {
  background-color: hsl(var(--muted));
}

.back-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.page-header-content {
  flex: 1;
}

.page-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* Card */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.card-header {
  padding: 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
}

.card-header-with-icon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: hsl(var(--accent) / 0.1);
}

.icon-container svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--accent));
}

.warning-icon svg {
  color: hsl(var(--warning));
}

.card-content {
  padding: 1.25rem;
}

.card-content > * + * {
  margin-top: 1.5rem;
}

/* Text Styles */
.text-muted {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.text-sm {
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.8);
}

.text-highlight-destructive {
  font-weight: 500;
  color: hsl(0 70% 50%);
}

.text-highlight-accent {
  font-weight: 500;
  color: hsl(var(--accent));
}

.text-medium {
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* Spacing */
.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.pl-4 {
  padding-left: 1rem;
}

.ml-4 {
  margin-left: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

/* Button/Link */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--foreground));
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn:hover {
  background-color: hsl(var(--muted));
  border-color: hsl(var(--border));
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Content sections */
.section-list > * + * {
  margin-top: 1.5rem;
}

/* Leading relaxed */
.leading-relaxed {
  line-height: 1.75;
}