/* ========================================
   MAIN CSS FILE
   ======================================== */

/* Import core styles */
@import url('./variables.css');
@import url('./base.css');
@import url('./layout.css');
@import url('./components.css');

/* Import theme styles */
@import url('./themes/light.css');
@import url('./themes/dark.css');
@import url('./themes/theme-switcher.css');

/* ========================================
   ADDITIONAL STYLES
   ======================================== */

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-background-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for better accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Reduced motion support */
@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 {
    --color-border: #000000;
    --color-text-secondary: #000000;
    --glass-border: #000000;
  }
  
  [data-theme="dark"] {
    --color-border: #ffffff;
    --color-text-secondary: #ffffff;
    --glass-border: #ffffff;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .site-header,
  .main-navigation,
  .theme-toggle,
  .btn,
  .modal {
    display: none !important;
  }
  
  .modern-card,
  .banner-card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  
  .page-break {
    page-break-before: always;
  }
}
