/* ==========================================================================
   National Home Mortgage - Careers Portal Test Styling
   ========================================================================== */

:root {
  --primary: #0f4c81;
  --primary-dark: #0b3459;
  --primary-light: #2575fc;
  --accent: #00d2ff;
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(15, 76, 129, 0.1), 0 8px 10px -6px rgba(15, 76, 129, 0.05);
  --radius: 12px;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
  padding: 8px 12px;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success-bg);
  color: #065f46;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
}

.pulse {
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   Main Content & Hero
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 40px 0 60px;
}

.hero-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.hero-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Cards & Diagnostics
   ========================================================================== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.diagnostic-card {
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.card-icon {
  font-size: 1.8rem;
  background: #f1f5f9;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.card-body {
  flex: 1;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.88rem;
  border-bottom: 1px dashed #f1f5f9;
}

.info-row:last-child {
  border-bottom: none;
}

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

.info-value {
  font-weight: 600;
  color: #334155;
}

.info-value.highlight {
  color: var(--primary);
  font-family: monospace;
  font-size: 0.9rem;
}

.info-value.success {
  color: var(--success);
}

.badge-version {
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
}

/* ==========================================================================
   Test Panel
   ========================================================================== */
.test-panel-section {
  margin-bottom: 40px;
}

.test-panel-card {
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-left: 4px solid var(--primary-light);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: gap;
  gap: 16px;
}

.panel-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
}

.panel-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.test-output {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.88rem;
  min-height: 100px;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.output-line {
  line-height: 1.4;
}

.log-system { color: #38bdf8; }
.log-info { color: #a5b4fc; }
.log-success { color: #4ade80; }
.log-warn { color: #fbbf24; }

/* ==========================================================================
   Jobs Preview Section
   ========================================================================== */
.careers-preview-section {
  margin-bottom: 40px;
}

.section-title-wrap {
  margin-bottom: 24px;
}

.section-title-wrap h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
}

.section-title-wrap p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.job-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.job-tag {
  align-self: flex-start;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.job-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #0f172a;
}

.job-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.job-desc {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 20px;
  flex: 1;
}

/* ==========================================================================
   Guide Section
   ========================================================================== */
.guide-section {
  margin-bottom: 40px;
}

.guide-card {
  padding: 28px;
}

.guide-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0f172a;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  background: var(--primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.88rem;
  color: #64748b;
}

.step-content code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--primary-dark);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: var(--font-family);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-note {
  font-size: 0.78rem;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn {
    width: 100%;
  }
}
