@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Inter:wght@300..700&display=swap');

:root {
  --color-primary: rgb(0, 153, 254);
  --color-primary-hover: rgb(12, 109, 174);

  --color-bg-light: #f3f4f6;
  --color-text-dark: #1f2937;

  --color-red-brick: #D11013;
  --color-yellow-brick: #FFCF00;
  --color-green-brick: #009647;
  --color-blue-brick: rgb(0, 153, 254);
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

h1, h2, h3, h4, .font-display {
  font-family: "Fredoka", sans-serif;
}

/* ---- Brick shadow ---- */
.brick-shadow {
  box-shadow: 5px 5px 0 0 rgba(0, 0, 0, 0.9);
}

.brick-shadow-sm {
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.9);
}

/* ---- Brick Button ---- */
.btn-brick {
  transition: all 0.1s ease;
  border-bottom-width: 4px;
}

.btn-brick:active {
  transform: translateY(2px);
  border-bottom-width: 0px;
  margin-top: 4px;
  box-shadow: none !important;
}

/* ---- Input styling ---- */
.input-brick {
  border: 2px solid #e5e7eb;
  transition: border-color 0.2s;
}

.input-brick:focus {
  border-color: #000;
  outline: none;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

/* ---- Stud pattern background ---- */
.stud-bg {
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 2px);
  background-size: 24px 24px;
}

/* ---- Spinner ---- */
.spinner {
  border: 4px solid #e5e7eb;
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

.btn-spinner {
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---- Prose typography (blog articles) ---- */
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.5rem; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose p  { margin-bottom: 1.25rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose a  { color: var(--color-primary); text-decoration: underline; }
