/* ========================================
   PINOCCHIO NEWS NETWORK - MASTER CSS
   Enterprise-Quality Design System
   ======================================== */

/* ===== CSS RESET & BASE STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto Mono', monospace;
  line-height: 1.6;
  color: var(--text-primary, rgba(200, 255, 255, 0.9));
  background-color: var(--dark-bg, #001022);
  background-image:
    radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(157, 0, 255, 0.1) 0%, transparent 50%);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Primary Brand Colors */
  --primary-cyan: #00ffff;
  --primary-magenta: #ff00ff;
  --primary-green: #00ff88;
  --primary-purple: #9d00ff;
  --primary-yellow: #fff200;
  
  /* Neutral Colors */
  --dark-bg: #001022;
  --darker-bg: #000a14;
  --glass-bg: rgba(0, 30, 60, 0.7);
  --glass-bg-light: rgba(0, 30, 60, 0.5);
  --text-primary: rgba(200, 255, 255, 0.9);
  --text-secondary: rgba(200, 255, 255, 0.7);
  --text-muted: rgba(200, 255, 255, 0.5);
  
  /* Status Colors */
  --success: #00ff88;
  --warning: #fff200;
  --error: #ff3860;
  --info: #00ffff;
  
  /* Border & Effects */
  --border-primary: rgba(0, 255, 255, 0.3);
  --border-secondary: rgba(157, 0, 255, 0.3);
  --border-success: rgba(0, 255, 136, 0.3);
  --border-radius: 8px;
  --border-radius-sm: 4px;
  --border-radius-lg: 12px;
  
  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glow-primary: 0 0 20px rgba(0, 255, 255, 0.5);
  --glow-secondary: 0 0 20px rgba(157, 0, 255, 0.5);
  --glow-success: 0 0 20px rgba(0, 255, 136, 0.5);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Typography */
  --font-primary: 'Roboto Mono', monospace;
  --font-heading: 'Orbitron', sans-serif;
  
  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  
  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===== TYPOGRAPHY SYSTEM ===== */
.heading-1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-cyan);
  text-shadow: var(--glow-primary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
}

.heading-2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.heading-3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.heading-4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.body-text {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.body-text-lg {
  font-size: 1.125rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.caption {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.text-muted {
  color: var(--text-muted);
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-error {
  color: var(--error);
}

.text-info {
  color: var(--info);
}

/* ===== LAYOUT SYSTEM ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-md);
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  padding: var(--spacing-xl) 0;
}

.page-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-xl);
  background: var(--glass-bg);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-primary);
  backdrop-filter: blur(10px);
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-cyan);
  text-shadow: var(--glow-primary);
  margin-bottom: var(--spacing-sm);
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== GRID SYSTEM ===== */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .heading-1 {
    font-size: 2.25rem;
  }
  
  .heading-2 {
    font-size: 1.875rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .page-header {
    padding: var(--spacing-lg);
  }
  
  .heading-1 {
    font-size: 1.875rem;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
}

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

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

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

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

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

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

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

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

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

.glow-primary { box-shadow: var(--glow-primary); }
.glow-secondary { box-shadow: var(--glow-secondary); }
.glow-success { box-shadow: var(--glow-success); }
