/**
 * Gator Abrasives - Main Stylesheet
 * Contains CSS custom properties for brand colors, typography, and spacing
 */

/* ========================================
   CSS Custom Properties (Design System)
   ======================================== */

:root {
  /* Primary Brand Colors */
  --gator-primary: #F47920;        /* Gator Orange - main brand color */
  --gator-primary-dark: #D66A1A;   /* Darker orange for hover states */
  --gator-primary-light: #FF9A56;  /* Lighter orange for accents */
  
  /* Secondary Colors */
  --gator-secondary: #212121;      /* Dark gray/black */
  --gator-secondary-light: #424242; /* Medium gray */
  
  /* Neutral Colors */
  --gator-white: #FFFFFF;
  --gator-gray-100: #F5F5F5;       /* Light background */
  --gator-gray-200: #EEEEEE;       /* Borders */
  --gator-gray-300: #E0E0E0;
  --gator-gray-400: #BDBDBD;
  --gator-gray-500: #9E9E9E;       /* Text secondary */
  --gator-gray-600: #757575;
  --gator-gray-700: #616161;
  --gator-gray-800: #424242;
  --gator-gray-900: #212121;       /* Text primary */
  
  /* Functional Colors */
  --gator-success: #4CAF50;
  --gator-warning: #FF9800;
  --gator-error: #F44336;
  --gator-info: #2196F3;
  
  /* Font Families */
  --font-primary: 'Arial', 'Helvetica Neue', sans-serif;
  --font-heading: 'Oswald', 'Impact', 'Arial Black', sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Spacing System */
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  --spacing-3xl: 4rem;     /* 64px */
}

/* ========================================
   Global Styles
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--gator-gray-900);
  background-color: var(--gator-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
  color: var(--gator-secondary);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--gator-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--gator-primary-dark);
}

a:active {
  color: var(--gator-primary-dark);
}

/* Focus styles for keyboard navigation - cross-browser compatible */
a:focus {
  outline: 2px solid var(--gator-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Modern browsers with :focus-visible support */
a:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--gator-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lists */
ul, ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-xl);
}

/* ========================================
   Utility Classes
   ======================================== */

.text-primary {
  color: var(--gator-primary) !important;
}

.text-secondary {
  color: var(--gator-secondary) !important;
}

.bg-primary {
  background-color: var(--gator-primary) !important;
}

.bg-secondary {
  background-color: var(--gator-secondary) !important;
}

.bg-light {
  background-color: var(--gator-gray-100) !important;
}

/* Spacing Utilities */
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.pt-xs { padding-top: var(--spacing-xs); }
.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }

.pb-xs { padding-bottom: var(--spacing-xs); }
.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }

/* ========================================
   Responsive Typography
   ======================================== */

@media (max-width: 767px) {
  h1 {
    font-size: var(--font-size-4xl);
  }
  
  h2 {
    font-size: var(--font-size-3xl);
  }
  
  h3 {
    font-size: var(--font-size-2xl);
  }
}


/* ========================================
   Additional Interactive Element Styles
   ======================================== */

/* Ensure all buttons have smooth transitions */
button {
  transition: all 0.3s ease;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Input elements */
input,
select,
textarea {
  transition: all 0.3s ease;
}

/* Image transitions */
img {
  transition: opacity 0.3s ease;
}

/* Selection color - cross-browser */
::-moz-selection {
  background-color: var(--gator-primary);
  color: var(--gator-white);
}

::selection {
  background-color: var(--gator-primary);
  color: var(--gator-white);
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--gator-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gator-gray-400);
  border-radius: 6px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gator-primary);
}

/* Loading animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Pulse animation for notifications */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.pulse {
  animation: pulse 2s infinite;
}