/* Nerdi Gras Unified Stylesheet */
/* Complete CSS architecture with proper cascade order */

/* 1. CSS Variables and Design Tokens */
@import url('variables.css');

/* 2. Font Declarations */
@import url('fonts.css');

/* 3. Base Styles and Reset */
@import url('base.css');

/* 4. Layout System */
@import url('layout.css');

/* 5. Reusable Components */
@import url('components.css');

/* Page-Specific Imports */
/* Homepage styles loaded separately when needed */
/* Admin styles loaded separately when needed */

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }

.p-0 { padding: 0; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pl-0 { padding-left: 0; }
.pr-0 { padding-right: 0; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-glow { box-shadow: var(--shadow-glow); }

.transition { transition: all var(--transition-normal); }
.transition-fast { transition: all var(--transition-fast); }
.transition-slow { transition: all var(--transition-slow); }

/* Color Utilities */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--mardi-gras-gold); }
.text-cyan { color: var(--tech-cyan); }
.text-purple { color: var(--mardi-gras-purple); }
.text-green { color: var(--mardi-gras-green); }

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

/* Animation Utilities */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

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

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

/* Holographic Effects */
.holographic-border {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background-clip: padding-box;
}

.holographic-border:before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  margin: -1px;
  border-radius: inherit;
  background: linear-gradient(45deg, var(--mardi-gras-gold), var(--tech-cyan), var(--mardi-gras-purple));
  animation: holographicShift 3s ease-in-out infinite;
}

@keyframes holographicShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hologram-scan {
  position: relative;
  overflow: hidden;
}

.hologram-scan::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(64, 224, 208, 0.1),
    transparent
  );
  animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
  0% { transform: translateX(-100%) translateY(-100%); }
  50% { transform: translateX(0%) translateY(0%); }
  100% { transform: translateX(100%) translateY(100%); }
}

/* Neon Glow Effects */
.neon-glow {
  text-shadow: 
    0 0 5px currentColor,
    0 0 10px currentColor,
    0 0 15px currentColor,
    0 0 20px var(--tech-cyan);
}

.neon-border {
  border: 2px solid var(--tech-cyan);
  box-shadow: 
    0 0 10px var(--tech-cyan),
    inset 0 0 10px rgba(64, 224, 208, 0.2);
}

/* Accessibility Enhancements */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--text-primary);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Print Optimizations */
@media print {
  .nav-menu,
  .modal,
  .btn,
  .site-header,
  .site-footer {
    display: none !important;
  }
  
  .main-content {
    margin-top: 0;
  }
  
  .card {
    border: 1px solid #ccc;
    background: white;
    color: black;
  }
}