/* NFL Predictions AI - Base Styles */
/* Foundation styles and reset with Tailwind CSS compatibility */

/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  line-height: 1.15;
}

body {
  margin: 0;
  font-family: var(--font-family-primary);
  font-size: 1rem;
  font-weight: var(--font-normal);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* Remove default margins and paddings */
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, dl, dt, dd,
blockquote, figure, figcaption {
  margin: 0;
  padding: 0;
}

/* List reset */
ul, ol {
  list-style: none;
}

/* Link reset */
a {
  color: inherit;
  text-decoration: inherit;
}

/* Button reset */
button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}

/* Form element reset */
input,
button,
textarea,
select {
  font: inherit;
}

/* Media reset */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Table reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Screen reader only utility */
.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;
}

/* Focus management */
*:focus {
  outline: 2px solid var(--accent-green-500);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--accent-green-500);
  outline-offset: 2px;
}

/* Smooth transitions by default */
* {
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast),
              color var(--transition-fast),
              fill var(--transition-fast),
              stroke var(--transition-fast),
              opacity var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
}

/* Disable transitions for reduced motion */
@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;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --gray-100: #000000;
    --gray-900: #ffffff;
  }
}

/* Dark mode preparation (for future implementation) */
@media (prefers-color-scheme: dark) {
  :root {
    --gray-50: var(--gray-900);
    --gray-100: var(--gray-800);
    --gray-200: var(--gray-700);
    --gray-300: var(--gray-600);
    --gray-600: var(--gray-300);
    --gray-700: var(--gray-200);
    --gray-800: var(--gray-100);
    --gray-900: var(--gray-50);
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  
  pre,
  blockquote {
    border: 1px solid var(--gray-600);
    page-break-inside: avoid;
  }
  
  thead {
    display: table-header-group;
  }
  
  tr,
  img {
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
  
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  
  h2,
  h3 {
    page-break-after: avoid;
  }
}