/*
 * Platform Utilities - CSS Reset
 * Modern CSS reset for consistent cross-browser styling
 * Version: 1.0.0
 */

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

/* Remove default margins and padding */
* {
  margin: 0;
  padding: 0;
}

/* Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

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

/* Modern body styling */
body {
  line-height: 1.6;
  font-family: var(--font-family-sans, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif);
  font-size: var(--text-base, 1rem);
  font-weight: var(--font-normal, 400);
  color: var(--color-text-secondary, #525252);
  background-color: var(--color-background, #ffffff);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Remove default link styles */
a {
  text-decoration: none;
  color: inherit;
}

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

/* Form element consistency */
input,
textarea,
select {
  border: none;
  outline: none;
  background: none;
}

/* Remove default fieldset styles */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* Better focus styles */
:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* Motion preferences */
@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;
  }

  /* Remove hover/active transforms for common interactive elements */
  .btn:hover,
  .btn:active,
  .top-nav__link:hover,
  .sidebar-nav__link:hover,
  .tabs__tab:hover,
  .pagination__item:hover,
  .card:hover,
  .stat-card:hover {
    transform: none !important;
  }
}
