/* VATCareer 2.0 - Main Stylesheet */

/* Layout */
.main-content {
  min-height: calc(100vh - 200px); /* Adjust based on header/footer height */
  padding: var(--spacing-6) 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  margin: 0 0 var(--spacing-4) 0;
  color: var(--color-text);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin: 0 0 var(--spacing-4) 0;
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

/* Utility Classes */
.text-primary { color: var(--color-text); }
.text-muted { color: var(--color-text-muted); }
.text-light { color: var(--color-text-light); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.text-info { color: var(--color-info); }

.bg-primary { background-color: var(--color-primary); }
.bg-surface { background-color: var(--color-surface); }
.bg-surface-elevated { background-color: var(--color-surface-elevated); }

/* Spacing utilities */
.m-0 { margin: 0; }
.m-1 { margin: var(--spacing-1); }
.m-2 { margin: var(--spacing-2); }
.m-3 { margin: var(--spacing-3); }
.m-4 { margin: var(--spacing-4); }
.m-6 { margin: var(--spacing-6); }
.m-8 { margin: var(--spacing-8); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-1); }
.p-2 { padding: var(--spacing-2); }
.p-3 { padding: var(--spacing-3); }
.p-4 { padding: var(--spacing-4); }
.p-6 { padding: var(--spacing-6); }
.p-8 { padding: var(--spacing-8); }

/* Flexbox utilities */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.flex-grow-1 { flex-grow: 1; }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.fw-bold { font-weight: var(--font-weight-bold); }
.fw-medium { font-weight: var(--font-weight-medium); }
.fw-normal { font-weight: var(--font-weight-normal); }

/* Responsive utilities */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-3);
  }
  
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-2);
  }
  
  h1 { font-size: var(--font-size-2xl); }
  h2 { font-size: var(--font-size-xl); }
  h3 { font-size: var(--font-size-lg); }
}

/* Pilot Com Modal Styles */
.pilot-com-badge {
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#pilotComModal .modal-content {
  border-radius: 1rem;
}

#pilotComModal .modal-header {
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  padding: 1.5rem;
}

#pilotComModal .modal-header[style*="background-color"] {
  border-bottom: none;
}

#pilotComModal .modal-body {
  max-height: 500px;
  overflow-y: auto;
  line-height: 1.6;
  padding: 2rem;
}

#pilotComModal .modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

#pilotComModal .modal-body h1,
#pilotComModal .modal-body h2,
#pilotComModal .modal-body h3,
#pilotComModal .modal-body h4,
#pilotComModal .modal-body h5,
#pilotComModal .modal-body h6 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: inherit;
}

#pilotComModal .modal-body p {
  margin-bottom: 1rem;
  color: inherit;
}

#pilotComModal .modal-body ul,
#pilotComModal .modal-body ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

#pilotComModal .modal-body li {
  margin-bottom: 0.5rem;
  color: inherit;
}


#pilotComModal .modal-footer > div {
  display: flex;
  gap: 0.5rem;
}

#pilotComModal .btn {
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

#pilotComModal .btn-primary {
  background: #3b82f6;
  color: white;
}

#pilotComModal .btn-primary:hover:not(:disabled) {
  background: #1e40af;
}

#pilotComModal .btn-primary:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  opacity: 1;
}

#pilotComModal .btn-outline-primary {
  background: transparent;
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

#pilotComModal .btn-outline-primary:hover {
  background: #3b82f6;
  color: white;
}

/* Pilot Com Modal Dark Theme Support */
[data-theme="dark"] #pilotComModal .modal-content {
  background-color: var(--color-surface-elevated) !important;
  color: var(--color-text) !important;
}

[data-theme="dark"] #pilotComModal .modal-header {
  background-color: var(--color-surface) !important;
  border-bottom-color: var(--color-border) !important;
}

[data-theme="dark"] #pilotComModal .modal-body {
  color: var(--color-text) !important;
}

[data-theme="dark"] #pilotComModal .modal-body h1,
[data-theme="dark"] #pilotComModal .modal-body h2,
[data-theme="dark"] #pilotComModal .modal-body h3,
[data-theme="dark"] #pilotComModal .modal-body h4,
[data-theme="dark"] #pilotComModal .modal-body h5,
[data-theme="dark"] #pilotComModal .modal-body h6,
[data-theme="dark"] #pilotComModal .modal-body p,
[data-theme="dark"] #pilotComModal .modal-body li,
[data-theme="dark"] #pilotComModal .modal-body a {
  color: var(--color-text) !important;
}

[data-theme="dark"] #pilotComModal .modal-footer {
  border-top-color: var(--color-border) !important;
  background-color: var(--color-surface) !important;
}

/* Ensure badge is visible in dark theme */
[data-theme="dark"] #pilotComModal .pilot-com-badge {
  display: inline-block !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  /* Ensure inline styles from JS are respected */
  border-radius: 4px !important;
  padding: 4px 12px !important;
  font-size: 0.875rem !important;
  margin-right: 10px !important;
}

/* Dark theme title styling to ensure proper contrast */
[data-theme="dark"] #pilotComModal .modal-title {
  color: var(--color-text) !important;
}