/* ============================================
   BOX COMPONENT SYSTEM
   
   Base: .box-container
   Variants: .box-info, .box-bio, .box-newsletter
   Modifiers: .text-centered, .verticalContent
   States: .positive, .negative, .info
   ============================================ */

/* Base box component */
.box-container {
  padding: var(--space-10);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  flex-direction: column;
  row-gap: 0;
}

.box-container h2 {
  margin-bottom: var(--space-4) !important;
}

.box-container > p,
.box-container > ul,
.box-container > blockquote {
  margin: 0;
}

/* ============================================
   VARIANT: Info Box (colored background)
   ============================================ */
.box-info {
  background: var(--bg-secondary);
}

/* ============================================
   VARIANT: Bio Box (avatar + text)
   ============================================ */
.box-bio {
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.box-bio .avatar {
  margin: 0 auto;
  width: 100px;
}

.box-bio p {
  margin-top: var(--space-4);
  font-size: var(--font-size-md);
  line-height: var(--line-height-base);
  font-family: var(--font-serif);
}

/* ============================================
   VARIANT: Newsletter Box (bordered)
   ============================================ */
.box-newsletter {
  text-align: center;
  border: 1px solid var(--border-secondary);
}

/* ============================================
   MODIFIERS
   ============================================ */
.box-container.text-centered {
  text-align: center;
  justify-content: center;
}

.box-container.verticalContent {
  flex-direction: column;
}

/* ============================================
   STATE COLORS (Semantic feedback)
   ============================================ */
.box-container.positive,
.box-info.positive {
  background: #10b981; /* Success green */
  color: white;
}

.box-container.negative,
.box-info.negative {
  background: #ef4444; /* Error red */
  color: white;
}

.box-container.info,
.box-info.info {
  background: var(--bg-inverse);
  color: var(--text-inverse);
}