/* ===================================================================
   PHASE 3 STANDARDIZATION - NOVA TITAN SYSTEMS
   Global CSS utilities for consistent branding and layout
   =================================================================== */

/* === BRAND COLOR ENFORCEMENT === */
:root {
  /* Primary Brand Colors */
  --cy: #00d4ff;     /* Cyan - Primary accent */
  --gr: #00ff88;     /* Green - Secondary accent */
  --purple: #b300ff; /* Purple - Tertiary accent */
  --red: #ff0066;    /* Red - Error/alert */
  --orange: #ff8800; /* Orange - Warning */
  
  /* Background Colors */
  --bg-primary: #0d0f17;     /* Dark navy blue */
  --bg-secondary: #1a1a2e;   /* Medium dark */
  --bg-tertiary: #16213e;    /* Slightly lighter */
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;  /* gray-300 */
  --text-tertiary: #9ca3af;   /* gray-400 */
}

/* === STANDARDIZED SECTION SPACING === */
.content-section {
  padding-top: 3rem;    /* py-12 */
  padding-bottom: 3rem;
}

.content-section-lg {
  padding-top: 4rem;    /* py-16 */
  padding-bottom: 4rem;
}

.hero-section {
  padding-top: 8rem;    /* pt-32 - accounts for fixed header */
  padding-bottom: 3rem; /* pb-12 */
}

/* === STANDARDIZED HEADING STYLES === */
.heading-hero {
  font-size: clamp(2.25rem, 5vw, 3.75rem);  /* text-4xl to text-6xl */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.heading-primary {
  font-size: clamp(1.875rem, 4vw, 3rem);  /* text-3xl to text-5xl */
  font-weight: 700;
  line-height: 1.2;
}

.heading-secondary {
  font-size: clamp(1.5rem, 3vw, 2.25rem);  /* text-2xl to text-4xl */
  font-weight: 700;
  line-height: 1.3;
}

.heading-tertiary {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);  /* text-xl to text-3xl */
  font-weight: 600;
  line-height: 1.4;
}

/* === STANDARDIZED CARD STYLES === */
.card-standard {
  background: linear-gradient(135deg, rgba(20, 25, 45, 0.9), rgba(15, 20, 35, 0.95));
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 0.75rem;  /* rounded-xl */
  padding: 1.5rem;         /* p-6 */
  transition: all 0.3s ease;
}

.card-standard:hover {
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
}

.card-compact {
  background: rgba(31, 41, 55, 0.5);  /* bg-gray-800/50 */
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 0.5rem;  /* rounded-lg */
  padding: 1rem;          /* p-4 */
  transition: all 0.3s ease;
}

/* === STANDARDIZED BUTTON STYLES === */
.btn-primary {
  background: linear-gradient(45deg, var(--cy), var(--gr));
  color: #0a0a0f;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--cy);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(0, 212, 255, 0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.6);
}

/* === STANDARDIZED BADGE STYLES === */
.badge-primary {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 9999px;  /* rounded-full */
  color: var(--cy);
  font-size: 0.875rem;
  font-family: 'JetBrains Mono', monospace;
}

.badge-success {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 9999px;
  color: var(--gr);
  font-size: 0.875rem;
}

/* === STANDARDIZED GRID LAYOUTS === */
.grid-standard {
  display: grid;
  gap: 1.5rem;  /* gap-6 */
}

@media (min-width: 768px) {
  .grid-standard-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .grid-standard-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-standard-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* === STANDARDIZED GLOW EFFECTS === */
.glow-cyan {
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.glow-green {
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.glow-purple {
  text-shadow: 0 0 20px rgba(179, 0, 255, 0.6);
}

/* === STANDARDIZED ICON CONTAINERS === */
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cy), var(--gr));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #0a0a0f;
}

.icon-box-outline {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  border: 2px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--cy);
}

/* === ANIMATION UTILITIES === */
.fade-in {
  animation: fadeIn 0.6s ease-in forwards;
}

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

.fade-in-delay-1 {
  animation: fadeIn 0.6s ease-in 0.1s forwards;
  opacity: 0;
}

.fade-in-delay-2 {
  animation: fadeIn 0.6s ease-in 0.2s forwards;
  opacity: 0;
}

.fade-in-delay-3 {
  animation: fadeIn 0.6s ease-in 0.3s forwards;
  opacity: 0;
}

/* === RESPONSIVE TEXT UTILITIES === */
.text-responsive-hero {
  font-size: clamp(2rem, 6vw, 3.75rem);
}

.text-responsive-heading {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.text-responsive-body {
  font-size: clamp(1rem, 2vw, 1.125rem);
}

/* === STANDARDIZED LINK STYLES === */
.link-primary {
  color: var(--cy);
  text-decoration: none;
  transition: all 0.3s ease;
}

.link-primary:hover {
  color: var(--gr);
  text-decoration: underline;
}

/* === ENSURE MOBILE-FIRST RESPONSIVE UTILITIES === */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 6rem;  /* Reduced for mobile */
    padding-bottom: 2rem;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  .grid-standard {
    grid-template-columns: 1fr;
  }
}

/* === ACCESSIBILITY IMPROVEMENTS === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--cy);
  outline-offset: 2px;
}
