/* QBN Online - Global Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* CSS Variables - QBN Brand Colors */
:root {
  --qbn-primary: #1a1a2e;
  --qbn-secondary: #16213e;
  --qbn-accent: #0f3460;
  --qbn-gold: #d4af37;
  --qbn-gold-light: #f4e4b0;
  --qbn-blue: #0066cc;
  --qbn-blue-light: #4d94ff;
  --qbn-dark: #0a0a0f;
  --qbn-light: #f8f9fa;
  --qbn-white: #ffffff;
  --qbn-gray: #6c757d;
  --qbn-gray-light: #e9ecef;
  
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--qbn-dark);
  background-color: var(--qbn-white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--qbn-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  color: var(--qbn-gray);
}

a {
  color: var(--qbn-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--qbn-blue-light);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1400px;
}

.container-narrow {
  max-width: 900px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  font-family: var(--font-heading);
}

.btn-primary {
  background: linear-gradient(135deg, var(--qbn-blue) 0%, var(--qbn-blue-light) 100%);
  color: var(--qbn-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--qbn-white);
}

.btn-gold {
  background: linear-gradient(135deg, var(--qbn-gold) 0%, var(--qbn-gold-light) 100%);
  color: var(--qbn-primary);
  box-shadow: var(--shadow-md);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--qbn-primary);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--qbn-blue);
  color: var(--qbn-blue);
}

.btn-outline:hover {
  background: var(--qbn-blue);
  color: var(--qbn-white);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.875rem;
}

/* Cards */
.card {
  background: var(--qbn-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-dark {
  background: var(--qbn-primary);
  color: var(--qbn-white);
}

.card-dark h3, .card-dark h4 {
  color: var(--qbn-white);
}

.card-dark p {
  color: var(--qbn-gray-light);
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-column {
  flex-direction: column;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Spacing Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-dark {
  background: linear-gradient(135deg, var(--qbn-primary) 0%, var(--qbn-secondary) 50%, var(--qbn-accent) 100%);
  color: var(--qbn-white);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
  color: var(--qbn-white);
}

.section-dark p {
  color: var(--qbn-gray-light);
}

.section-light {
  background: var(--qbn-light);
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--qbn-primary); }
.text-gold { color: var(--qbn-gold); }
.text-blue { color: var(--qbn-blue); }
.text-white { color: var(--qbn-white); }
.text-gray { color: var(--qbn-gray); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-slide-down {
  animation: slideDown 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease-out;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--qbn-primary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-primary);
  border: 2px solid var(--qbn-gray-light);
  border-radius: 8px;
  transition: var(--transition-fast);
  background: var(--qbn-white);
}

.form-control:focus {
  outline: none;
  border-color: var(--qbn-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-control.error {
  border-color: #dc3545;
}

.form-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .btn {
    padding: 12px 24px;
  }
  
  .btn-lg {
    padding: 14px 32px;
  }
}

/* Loading Spinner */
.spinner {
  border: 3px solid var(--qbn-gray-light);
  border-top: 3px solid var(--qbn-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utility Classes */
.hidden { display: none; }
.visible { display: block; }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.pointer { cursor: pointer; }
.no-select { user-select: none; }
