/* ============================================================
   base.css — Bet Orange Casino Microsite
   Modern CSS reset + base typography
   Font: Inter via Google Fonts
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400;1,14..32,500&display=swap');

/* ------------------------------------------------------------
   Box-sizing reset
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ------------------------------------------------------------
   Modern CSS reset
   ------------------------------------------------------------ */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Remove default margin from block elements */
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Set core body defaults */
body {
  min-height: 100dvh;
}

/* Reset anchor defaults */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Remove built-in form typography styles */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Remove all animations/transitions for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Create a root stacking context */
#root,
#__next {
  isolation: isolate;
}

/* Normalize table defaults */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove button default styles */
button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* Form element normalization */
fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

/* Textarea resize control */
textarea {
  resize: vertical;
}

/* Hidden utility */
[hidden] {
  display: none !important;
}

/* Visually hidden (accessible) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   Base typography scale
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.375rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

small {
  font-size: 0.875rem;
}

strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

/* Link defaults */
a:focus-visible {
  outline: 2px solid var(--color-accent, #f5a623);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Code */
code, kbd, samp, pre {
  font-family: 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
  font-size: 0.9em;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0.5rem;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--color-border, #1e2440);
  margin: 2rem 0;
}

/* Blockquote */
blockquote {
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-accent, #f5a623);
  font-style: italic;
  color: var(--color-text-muted, #8b8fa6);
}

/* Selection */
::selection {
  background-color: rgba(245, 166, 35, 0.25);
  color: inherit;
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg, #0b0e1a);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border, #1e2440);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted, #8b8fa6);
}

/* Scrollbar (Firefox) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border, #1e2440) transparent;
}
