/* 
 * 2MARU - Base Styles
 * Typography, Layout, and Common Utilities
 */

/* Typography System */
.font-headline-xl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.font-headline-lg {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.font-headline-md {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.font-body-lg {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.font-body-md {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.font-label-caps {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.font-mono-spec {
  font-family: 'Space Grotesk', monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

/* Material Icons */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1;
}

/* Layout Utilities */
.container-max {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.section-gap {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.py-section-gap {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.px-margin {
  padding-left: var(--margin);
  padding-right: var(--margin);
}

.px-gutter {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.gap-gutter {
  gap: var(--gutter);
}

/* Background Color Classes */
.bg-background {
  background-color: var(--background);
}

.bg-surface {
  background-color: var(--surface);
}

.bg-surface-container {
  background-color: var(--surface-container);
}

.bg-surface-container-low {
  background-color: var(--surface-container-low);
}

.bg-surface-container-high {
  background-color: var(--surface-container-high);
}

.bg-surface-container-highest {
  background-color: var(--surface-container-highest);
}

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

/* Typography Classes */
.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.text-display {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.font-label-sm {
  font-family: 'Space Grotesk', sans-serif;
}

.text-label-sm {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.font-label-md {
  font-family: 'Space Grotesk', sans-serif;
}

.text-label-md {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.font-label-lg {
  font-family: 'Space Grotesk', sans-serif;
}

.text-label-lg {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.font-h1 {
  font-family: 'Space Grotesk', sans-serif;
}

.text-h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.font-h2 {
  font-family: 'Space Grotesk', sans-serif;
}

.text-h2 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.font-h3 {
  font-family: 'Space Grotesk', sans-serif;
}

.text-h3 {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0;
  font-weight: 600;
}

.font-headline-sm {
  font-family: 'Space Grotesk', sans-serif;
}

.text-headline-sm {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.font-title-lg {
  font-family: 'Space Grotesk', sans-serif;
}

.text-title-lg {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}

.font-body-md {
  font-family: 'Space Grotesk', sans-serif;
}

.text-body-md {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  font-weight: 400;
}

.font-body-lg {
  font-family: 'Space Grotesk', sans-serif;
}

.text-body-lg {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0;
  font-weight: 400;
}

/* Text Color Classes */
.text-on-primary {
  color: var(--on-primary);
}

.text-on-surface {
  color: var(--on-surface);
}

.text-on-surface-variant {
  color: var(--on-surface-variant);
}

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

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

/* Hero Overlay */
.hero-overlay {
  background: linear-gradient(to right, 
    var(--surface-container-lowest) 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    transparent 100%
  );
}

:root[data-theme="light"] .hero-overlay {
  background: linear-gradient(to right, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 255, 255, 0.6) 50%, 
    transparent 100%
  );
}

:root[data-theme="dark"] .hero-overlay {
  background: linear-gradient(to right, 
    rgba(0, 0, 0, 0.8) 0%, 
    rgba(0, 0, 0, 0.5) 50%, 
    transparent 100%
  );
}

/* Navigation Links */
.nav-link {
  color: var(--on-surface-variant);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
}

.nav-link-mobile {
  color: var(--on-surface-variant);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  padding-left: 12px;
}

.nav-link-mobile:hover {
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 16px;
}

.nav-link-mobile.active {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 700;
}

/* Glass Effects */
.glass-panel {
  background: rgba(32, 31, 31, 0.6);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-effect {
  background: rgba(28, 27, 27, 0.6);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(42, 42, 42, 0.4);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glow Effects */
.glow-effect {
  box-shadow: 0 0 20px rgba(173, 198, 255, 0.15);
}

.glow-primary {
  box-shadow: 0 0 15px rgba(173, 198, 255, 0.3);
}

.glow-secondary {
  box-shadow: 0 0 15px rgba(162, 231, 255, 0.2);
}

.glow-blue {
  filter: drop-shadow(0 0 8px rgba(173, 198, 255, 0.3));
}

.luminous-glow:hover {
  box-shadow: 0 0 20px rgba(173, 198, 255, 0.3);
}

.text-glow {
  text-shadow: 0 0 10px rgba(173, 198, 255, 0.5);
}

/* Hero Gradient */
.hero-gradient {
  background: linear-gradient(0deg, #131313 0%, rgba(19, 19, 19, 0) 100%);
}

/* Responsive Typography */
@media (max-width: 768px) {
  :root {
    --headline-xl: 32px;
    --headline-lg: 28px;
    --headline-md: 24px;
    --body-lg: 16px;
    --body-md: 14px;
  }
  
  .font-headline-xl {
    font-size: 48px;
  }
  
  .font-headline-lg {
    font-size: 32px;
  }
  
  .font-headline-md {
    font-size: 20px;
  }
  
  .font-body-lg {
    font-size: 16px;
  }
}

/* Smooth Transitions */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Focus Styles */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Selection Styles */
::selection {
  background-color: var(--primary);
  color: var(--on-primary);
}
