/* base.css - Reset, fonts, and CSS custom properties for Portal Hub V4 - Holographic Display */

/* Brand kit fonts */
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    local('Poppins SemiBold'),
    local('Poppins-SemiBold'),
    url('./fonts/poppins-semibold.woff2') format('woff2');
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src:
    local('Inter Light'),
    local('Inter-Light'),
    url('./fonts/inter-light.woff2') format('woff2');
}

/* CSS Custom Properties - Brand Kit 04-portal-hub-4 */
:root {
  /* Brand kit colors - Holographic Display */
  --color-neon-cyan: #00e5ff;
  --color-midnight-blue: #0a0f1f;
  --color-white: #fff;
  --color-deep-navy: #08101c;
  --color-soft-cyan: #7ff6ff;
  --color-magenta-pulse: #ff00c8;

  /* Semantic Colors */
  --color-bg-primary: var(--color-midnight-blue);
  --color-bg-secondary: var(--color-deep-navy);
  --color-text-primary: var(--color-white);
  --color-text-secondary: var(--color-neon-cyan);
  --color-accent: var(--color-neon-cyan);
  --color-accent-alt: var(--color-magenta-pulse);

  /* Compatibility alias */
  --color-cool-gray: rgb(0, 229, 255, 0.15);

  /* Typography Scale - Brand kit fonts */
  --font-headline: poppins, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter Light', inter, system-ui, sans-serif;
  --font-ui: 'SF Pro Rounded', inter, system-ui, sans-serif;
  --font-code: 'IBM Plex Mono', 'SF Mono', consolas, monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows - dark theme with glow */
  --shadow-sm: 0 2px 8px rgb(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgb(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgb(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgb(0, 229, 255, 0.3);
  --shadow-glow-strong: 0 0 40px rgb(0, 229, 255, 0.5);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headline);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: var(--font-ui);
  cursor: pointer;
  border: none;
  background: none;
}

button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 500;
  z-index: 9999;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  top: var(--space-md);
}

/* Selection */
::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-cool-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (width >= 768px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* Touch target minimum */
a,
button {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
