/* public/app.css */

/*
 * ===================================================================
 *  IMPORTS
 * ===================================================================
 */

/* Base imports */
@import url('./base/_reset.css');
@import url('./base/_variables.css');
@import url('./base/_typography.css');
@import url('./base/_utilities.css');

/* Layout imports */
@import url('./layout/_container.css');
@import url('./layout/_header.css');
@import url('./layout/_footer.css');
@import url('./layout/_grid.css');

/* Component imports */
@import url('./components/_buttons.css');
@import url('./components/_cards.css');
@import url('./components/_navigation.css');
@import url('./components/_logo.css');
@import url('./components/_status.css');
@import url('./components/_forms.css');
@import url('./components/_flash.css');

/* Theme */
@import url('./themes/_dark.css');

/*
 * ===================================================================
 *  GLOBAL STYLES & VARIABLES
 * ===================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --bg-color: #0a0a0a;
  --text-primary: #E0E0E0;
  --text-secondary: #a0a0a0;
  --accent-primary: #00BFFF; /* Electric Blue */
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A subtle, static grid background to add depth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    linear-gradient(to right, rgba(30, 30, 30, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 30, 30, 0.4) 1px, transparent 1px);
  background-size: 4rem 4rem;
  z-index: -1;
  opacity: 0.5;
}


/*
 * ===================================================================
 *  CUSTOM UTILITY CLASSES
 * ===================================================================
 */

/* The core Glassmorphism Effect class */
.glass-effect {
  background: rgba(16, 16, 16, 0.6); /* Slightly lighter than pure black for depth */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* For Safari */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Animated glowing horizontal rule */
.glow-hr {
  border: none;
  height: 1px;
  background-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary), 0 0 20px var(--accent-primary);
  animation: glow 2s ease-in-out infinite alternate;
}

/* Keyframe animation for the glow effect */
@keyframes glow {
  from {
    box-shadow: 0 0 5px var(--accent-primary), 0 0 10px var(--accent-primary);
  }
  to {
    box-shadow: 0 0 20px var(--accent-primary), 0 0 30px var(--accent-primary);
  }
}

/* Style for active navigation links */
.nav-link:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 8px var(--accent-primary);
}

/* JavaScript-enhanced styles */

/* Initial state for animations */
.stat-card,
.info-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-card.visible,
.info-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Touch hover state for mobile */
.touch-hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Header transition for scroll effects */
.site-header {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Body loaded state */
body.loaded {
  opacity: 1;
}

/* Mobile menu animation */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Smooth number transitions */
.stat-number {
  display: inline-block;
  min-width: 3ch;
  text-align: right;
}