/* =========================================================
   Bauhaus — Design System page
   Follows the standard project page template (white / black)
   Component container is unique to this page.
   ========================================================= */

/* --- Bauhaus-scoped font token --------------------------- */

.bauhaus-page {
  --font-bauhaus: "Inter", Helvetica, Arial, sans-serif;
}

/* --- Hero band override ---------------------------------- */

/* The standard hero band uses white → black at 50/50.
   Bauhaus needs more white so the container sits fully in
   the white zone before the black section takes over.       */
.bauhaus-band {
  background: linear-gradient(
    to bottom,
    var(--color-white) 60%,
    var(--color-black) 60%
  );
}

/* --- Component container --------------------------------- */

/* Outer shell: #F8F8F8 background, divides label from surface */
.component-container {
  background: #F8F8F8;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  padding: 16px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.component-container-label {
  font-family: var(--font-bauhaus);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--color-black);
  padding: 0 8px 4px;
}

/* Inner surface: white, inset 8px left/right/bottom from container */
.component-surface {
  background: var(--color-white);
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  padding: 32px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 3-column grid — one column per variant (fill / outline / ghost) */
.component-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 24px;
  column-gap: 0;
}

.component-col {
  display: flex;
  align-items: center;
}

/* --- Button base ----------------------------------------- */

.btn {
  font-family: var(--font-bauhaus);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  position: relative;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.4);
  outline-offset: 3px;
}

/* --- Button variants ------------------------------------- */

/* Fill: black bg, white text */
.btn--fill {
  background: #000000;
  color: var(--color-white);
  border: 1.5px solid #000000;
}

.btn--fill:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.btn--fill:active {
  background: #555555;
  border-color: #555555;
}

/* Outline: white bg, black border + text */
.btn--outline {
  background: var(--color-white);
  color: var(--color-black);
  border: 1.5px solid #000000;
}

.btn--outline:hover {
  background: #ebebeb;
}

.btn--outline:active {
  background: #d9d9d9;
}

/* Ghost: no bg, no border, black text */
.btn--ghost {
  background: transparent;
  color: var(--color-black);
  border: 1.5px solid transparent;
}

.btn--ghost:hover {
  background: #ebebeb;
  border-color: transparent;
}

.btn--ghost:active {
  background: #d9d9d9;
  border-color: transparent;
}

/* Icon-only: square aspect ratio */
.btn--icon-only {
  padding: 9px 10px;
}

/* Label + trailing icon */
.btn--with-icon {
  gap: 6px;
}

/* --- Responsive ------------------------------------------ */

@media (max-width: 600px) {
  .component-surface {
    padding: 20px;
  }

  .component-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
  }
}
