/**
 * ALFA Design System - Core Styles
 * Version: 1.0.0
 * Last Updated: 2025-06-27
 */

/* CSS Variables - ALFA Brand Colors */
:root {
  /* Primary Colors */
  --alfa-dark: #2B1B5A;
  --alfa-darker: #1a0f3a;
  --alfa-gold: #FFD700;
  --alfa-neon: #00FF41;
  
  /* Secondary Colors */
  --alfa-dark-secondary: #1a1a2e;
  --alfa-gold-light: #FFEB3B;
  --alfa-neon-light: #C8FF00;
  
  /* Neutral Colors */
  --alfa-white: #FFFFFF;
  --alfa-gray-light: #E0E0E0;
  --alfa-gray-medium: #B0B0B0;
  --alfa-black: #000000;
  
  /* Semantic Colors */
  --alfa-error: #FF3333;
  --alfa-success: #4CAF50;
  --alfa-warning: #FFD700;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Consolas', 'Monaco', 'Courier New', 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;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: all 0.15s ease;
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
  --shadow-glow-neon: 0 0 30px rgba(0, 255, 65, 0.4);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Body Defaults */
body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--alfa-white);
  background: var(--alfa-darker);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: var(--space-md);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Gradient Text */
.gradient-text {
  background: linear-gradient(90deg, var(--alfa-gold), var(--alfa-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Links */
a {
  color: var(--alfa-gold);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--alfa-gold-light);
  text-decoration: underline;
}

/* Container */
.alfa-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Card Component */
.alfa-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: var(--transition-base);
}

.alfa-card:hover {
  transform: translateY(-2px);
  border-color: var(--alfa-gold);
  box-shadow: var(--shadow-glow);
}

/* Buttons */
.alfa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  outline: none;
}

.alfa-btn:hover {
  transform: translateY(-2px);
}

.alfa-btn:active {
  transform: translateY(0);
}

/* Button Variants */
.alfa-btn-primary {
  background: linear-gradient(135deg, var(--alfa-gold), var(--alfa-gold-light));
  color: var(--alfa-dark);
}

.alfa-btn-primary:hover {
  box-shadow: var(--shadow-glow);
}

.alfa-btn-secondary {
  background: transparent;
  color: var(--alfa-gold);
  border: 2px solid var(--alfa-gold);
}

.alfa-btn-secondary:hover {
  background: var(--alfa-gold);
  color: var(--alfa-dark);
}

.alfa-btn-neon {
  background: var(--alfa-neon);
  color: var(--alfa-dark);
}

.alfa-btn-neon:hover {
  box-shadow: var(--shadow-glow-neon);
}

/* Badge */
.alfa-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.alfa-badge-success {
  background: rgba(76, 175, 80, 0.2);
  color: var(--alfa-success);
  border-color: var(--alfa-success);
}

.alfa-badge-warning {
  background: rgba(255, 215, 0, 0.2);
  color: var(--alfa-warning);
  border-color: var(--alfa-warning);
}

.alfa-badge-error {
  background: rgba(255, 51, 51, 0.2);
  color: var(--alfa-error);
  border-color: var(--alfa-error);
}

/* Tables */
.alfa-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.alfa-table th {
  background: rgba(255, 215, 0, 0.1);
  color: var(--alfa-gold);
  padding: var(--space-md);
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--alfa-gold);
}

.alfa-table td {
  padding: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.alfa-table tr:hover {
  background: rgba(255, 215, 0, 0.05);
}

/* Forms */
.alfa-input,
.alfa-select,
.alfa-textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-md);
  color: var(--alfa-white);
  transition: var(--transition-fast);
}

.alfa-input:focus,
.alfa-select:focus,
.alfa-textarea:focus {
  outline: none;
  border-color: var(--alfa-gold);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

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

.alfa-mt-0 { margin-top: 0; }
.alfa-mt-1 { margin-top: var(--space-sm); }
.alfa-mt-2 { margin-top: var(--space-md); }
.alfa-mt-3 { margin-top: var(--space-lg); }
.alfa-mt-4 { margin-top: var(--space-xl); }

.alfa-mb-0 { margin-bottom: 0; }
.alfa-mb-1 { margin-bottom: var(--space-sm); }
.alfa-mb-2 { margin-bottom: var(--space-md); }
.alfa-mb-3 { margin-bottom: var(--space-lg); }
.alfa-mb-4 { margin-bottom: var(--space-xl); }

/* Animations */
@keyframes alfa-glow {
  0% { box-shadow: 0 0 5px var(--alfa-gold); }
  50% { box-shadow: 0 0 20px var(--alfa-gold), 0 0 30px var(--alfa-gold); }
  100% { box-shadow: 0 0 5px var(--alfa-gold); }
}

.alfa-glow {
  animation: alfa-glow 2s ease-in-out infinite;
}

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

.alfa-pulse {
  animation: alfa-pulse 2s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .alfa-container {
    padding: 0 var(--space-md);
  }
}