/**
 * DSC Global Styles
 * 
 * CSS Variables, Base Styles, and Utility Classes
 * Used across all DSC theme components
 * 
 * @package DSC_Theme
 * @version 1.0.0
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Backgrounds */
  --dsc-bg: #0a0a0f;
  --dsc-bg-header: rgba(10, 10, 15, 0.97);
  --dsc-surface: #111118;
  --dsc-surface-light: #16161f;
  --dsc-surface-lighter: #1c1c27;
  
  /* Borders */
  --dsc-border: rgba(255, 255, 255, 0.06);
  --dsc-border-light: rgba(255, 255, 255, 0.1);
  
  /* Brand Colors */
  --dsc-cyan: #22d3ee;
  --dsc-cyan-bright: #67e8f9;
  --dsc-cyan-dim: rgba(34, 211, 238, 0.08);
  --dsc-cyan-glow: rgba(34, 211, 238, 0.25);
  
  --dsc-violet: #a78bfa;
  --dsc-violet-dim: rgba(167, 139, 250, 0.08);
  
  --dsc-green: #22c55e;
  --dsc-green-dim: rgba(34, 197, 94, 0.08);
  
  --dsc-red: #f43f5e;
  --dsc-red-dim: rgba(244, 63, 94, 0.08);
  
  /* Text Colors */
  --dsc-text: #f8fafc;
  --dsc-text-secondary: #cbd5e1;
  --dsc-text-muted: #64748b;
  --dsc-text-dim: #475569;
  
  /* Typography */
  --dsc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --dsc-font-heading: 'Space Grotesk', var(--dsc-font);
  --dsc-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  
  /* Spacing */
  --dsc-container: 1200px;
  --dsc-container-wide: 1400px;
  
  /* Transitions */
  --dsc-transition: 0.3s ease;
  --dsc-transition-fast: 0.15s ease;
  
  /* Shadows */
  --dsc-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --dsc-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
  --dsc-shadow-cyan: 0 4px 20px var(--dsc-cyan-glow);
}

/* ============================================
   BASE RESET FOR DSC ELEMENTS
   ============================================ */
.dsc-theme {
  background: var(--dsc-bg);
  color: var(--dsc-text);
  font-family: var(--dsc-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dsc-theme *,
.dsc-theme *::before,
.dsc-theme *::after {
  box-sizing: border-box;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.dsc-theme h1,
.dsc-theme h2,
.dsc-theme h3,
.dsc-theme h4,
.dsc-theme h5,
.dsc-theme h6 {
  font-family: var(--dsc-font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--dsc-text);
}

.dsc-theme h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.dsc-theme h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
.dsc-theme h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.dsc-theme h4 { font-size: 1.25rem; }
.dsc-theme h5 { font-size: 1rem; }
.dsc-theme h6 { font-size: 0.875rem; }

.dsc-theme p {
  margin: 0 0 1em;
  color: var(--dsc-text-secondary);
}

.dsc-theme a {
  color: var(--dsc-cyan);
  text-decoration: none;
  transition: color var(--dsc-transition-fast);
}

.dsc-theme a:hover {
  color: var(--dsc-cyan-bright);
}

/* ============================================
   CONTAINER
   ============================================ */
.dsc-container {
  max-width: var(--dsc-container);
  margin: 0 auto;
  padding: 0 24px;
}

.dsc-container-wide {
  max-width: var(--dsc-container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   BUTTONS
   ============================================ */
.dsc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--dsc-font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--dsc-transition);
}

.dsc-btn svg {
  width: 18px;
  height: 18px;
}

.dsc-btn-primary {
  background: linear-gradient(135deg, var(--dsc-cyan) 0%, #06b6d4 100%);
  color: #0a0a0f;
  box-shadow: var(--dsc-shadow-cyan);
}

.dsc-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--dsc-cyan-glow);
  color: #0a0a0f;
}

.dsc-btn-secondary {
  background: var(--dsc-surface);
  color: var(--dsc-text);
  border: 1px solid var(--dsc-border-light);
}

.dsc-btn-secondary:hover {
  border-color: var(--dsc-cyan);
  color: var(--dsc-cyan);
}

.dsc-btn-outline {
  background: transparent;
  color: var(--dsc-text);
  border: 2px solid var(--dsc-border-light);
}

.dsc-btn-outline:hover {
  border-color: var(--dsc-cyan);
  color: var(--dsc-cyan);
  background: var(--dsc-cyan-dim);
}

.dsc-btn-emergency {
  background: linear-gradient(135deg, var(--dsc-red) 0%, #dc2626 100%);
  color: white;
}

.dsc-btn-emergency:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(244, 63, 94, 0.3);
  color: white;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.dsc-section {
  position: relative;
  padding: 80px 0;
  z-index: 1;
}

.dsc-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.dsc-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--dsc-cyan-dim);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dsc-cyan);
  margin-bottom: 16px;
}

.dsc-section-header h2 {
  margin-bottom: 16px;
}

.dsc-section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============================================
   CARDS
   ============================================ */
.dsc-card {
  background: var(--dsc-surface);
  border: 1px solid var(--dsc-border);
  border-radius: 16px;
  padding: 28px;
  transition: all var(--dsc-transition);
}

.dsc-card:hover {
  border-color: var(--dsc-cyan);
  transform: translateY(-4px);
  box-shadow: var(--dsc-shadow-lg);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.dsc-input,
.dsc-select,
.dsc-textarea {
  width: 100%;
  background: var(--dsc-bg);
  border: 1px solid var(--dsc-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--dsc-text);
  font-family: var(--dsc-font);
  font-size: 0.95rem;
  transition: all var(--dsc-transition-fast);
}

.dsc-input:focus,
.dsc-select:focus,
.dsc-textarea:focus {
  outline: none;
  border-color: var(--dsc-cyan);
  box-shadow: 0 0 0 3px var(--dsc-cyan-dim);
}

.dsc-input::placeholder,
.dsc-textarea::placeholder {
  color: var(--dsc-text-muted);
}

.dsc-textarea {
  min-height: 120px;
  resize: vertical;
}

.dsc-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dsc-text);
  margin-bottom: 6px;
}

.dsc-label .required {
  color: var(--dsc-red);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.dsc-text-center { text-align: center; }
.dsc-text-left { text-align: left; }
.dsc-text-right { text-align: right; }

.dsc-text-cyan { color: var(--dsc-cyan); }
.dsc-text-violet { color: var(--dsc-violet); }
.dsc-text-green { color: var(--dsc-green); }
.dsc-text-red { color: var(--dsc-red); }
.dsc-text-muted { color: var(--dsc-text-muted); }

.dsc-bg-cyan { background: var(--dsc-cyan-dim); }
.dsc-bg-violet { background: var(--dsc-violet-dim); }
.dsc-bg-green { background: var(--dsc-green-dim); }
.dsc-bg-red { background: var(--dsc-red-dim); }

.dsc-gradient-text {
  background: linear-gradient(135deg, var(--dsc-cyan) 0%, var(--dsc-cyan-bright) 50%, var(--dsc-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dsc-mt-0 { margin-top: 0; }
.dsc-mb-0 { margin-bottom: 0; }
.dsc-my-0 { margin-top: 0; margin-bottom: 0; }

.dsc-hidden { display: none !important; }
.dsc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   BODY OFFSET FOR FIXED HEADER
   ============================================ */
body.dsc-theme {
  padding-top: 104px; /* 64px header + 40px ticker */
}

body.dsc-theme.dsc-no-ticker {
  padding-top: 64px;
}

body.dsc-theme.dsc-no-header {
  padding-top: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  body.dsc-theme {
    padding-top: 96px;
  }
  
  body.dsc-theme.dsc-no-ticker {
    padding-top: 56px;
  }
  
  .dsc-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  body.dsc-theme {
    padding-top: 88px;
  }
  
  body.dsc-theme.dsc-no-ticker {
    padding-top: 52px;
  }
  
  .dsc-section {
    padding: 48px 0;
  }
  
  .dsc-container,
  .dsc-container-wide {
    padding: 0 16px;
  }
  
  .dsc-btn {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
}
