* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background: #f8f9ff; color: #1a1a2e; min-height: 100vh; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 1.5rem; background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.08); flex-wrap: wrap; gap: 0.5rem; }
.logo { font-size: 1.1rem; font-weight: 800; background: linear-gradient(135deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-decoration: none; }
.lang-selector { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.lang-btn { background: none; border: 1px solid #e0e0e0; border-radius: 20px; padding: 3px 10px; font-size: 0.78rem; cursor: pointer; white-space: nowrap; }
.lang-btn.active { background: #667eea; color: white; border-color: #667eea; }
.header-left { width: 120px; }
.lang-dropdown { padding: 5px 8px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 0.85rem; cursor: pointer; background: white; }

/* Main container */
.container { max-width: 900px; margin: 0 auto; padding: 1.5rem 1rem; }

/* Typography */
.main-title { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, #667eea, #764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-align: center; margin-bottom: 0.5rem; }
.sub-title { text-align: center; color: #666; font-size: 1rem; margin-bottom: 1.5rem; }

/* Buttons */
.btn-primary { display: inline-block; background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 0.8rem 2rem; border-radius: 25px; border: none; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; min-height: 44px; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { display: inline-block; background: white; color: #667eea; border: 2px solid #667eea; padding: 0.7rem 1.5rem; border-radius: 25px; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; min-height: 44px; }
.btn-large { width: 100%; padding: 1rem; font-size: 1.1rem; }
.btn-row { display: flex; gap: 1rem; margin-top: 1.5rem; }
.btn-row .btn-primary, .btn-row .btn-secondary { flex: 1; }

/* Welcome page */
.welcome-page { max-width: 600px; margin: 0 auto; text-align: center; }
.welcome-card { background: white; border-radius: 16px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin-bottom: 1.5rem; }
.lang-select-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 1rem; }
.lang-buttons { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-bottom: 1rem; }
.lang-flag-btn { background: #f0f0f0; border: 2px solid transparent; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 0.9rem; }
.lang-flag-btn.active { border-color: #667eea; background: #667eea18; }
.time-hint { color: #555; margin-bottom: 0.5rem; }
.feature-list { text-align: left; list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.feature-list li { padding: 0.3rem 0; color: #444; }
.feature-list li::before { content: "✓ "; color: #667eea; font-weight: 700; }
hr { border: none; border-top: 1px solid #e8e8e8; margin: 1rem 0; }

/* Info page */
.info-page { max-width: 600px; margin: 0 auto; }
.info-form { background: white; border-radius: 16px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.form-input { width: 100%; padding: 0.7rem 1rem; border: 2px solid #e0e0e0; border-radius: 10px; font-size: 1rem; }
.form-input:focus { outline: none; border-color: #667eea; }
.info-box { background: #f0f4ff; border-radius: 8px; padding: 0.7rem 1rem; font-size: 0.9rem; border-left: 4px solid #667eea; }
.radio-label { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.4rem 0; cursor: pointer; font-size: 0.92rem; }
.plan-preview { margin: 1rem 0; background: #fafafa; border-radius: 8px; padding: 0.8rem 1rem; }
.plan-preview summary { cursor: pointer; font-weight: 600; color: #667eea; }
.plan-preview ol { margin-top: 0.5rem; padding-left: 1.2rem; }
.alert { padding: 0.8rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-error { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }

/* Survey page */
.survey-page { max-width: 800px; margin: 0 auto; }
.progress-container { margin-bottom: 1.5rem; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: #666; margin-bottom: 0.3rem; }
.progress-bar { background: #e8e8e8; border-radius: 10px; height: 10px; }
.progress-fill { background: linear-gradient(90deg, #667eea, #764ba2); border-radius: 10px; height: 10px; transition: width 0.3s; }
.survey-form { background: white; border-radius: 16px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.question-block { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #f0f0f0; }
.question-block:last-of-type { border-bottom: none; }
.question-text { margin-bottom: 0.7rem; font-size: 0.95rem; line-height: 1.5; }
.likert-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.likert-option { flex: 1; min-width: 80px; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; cursor: pointer; }
.likert-option input { cursor: pointer; }
.likert-option span { font-size: 0.78rem; color: #666; text-align: center; }
.forced-choice-info { background: #f8f9ff; border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1rem; border-left: 4px solid #667eea; font-size: 0.9rem; }
.forced-choice-info small { display: block; color: #888; margin-top: 0.3rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.6rem 0.8rem; margin-bottom: 0.4rem; background: #fafafa; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; }
.checkbox-label:has(input:checked) { border-color: #667eea; background: #f0f4ff; }
.checkbox-label input { margin-top: 0.15rem; }
.fc-count { padding: 0.5rem 1rem; border-radius: 8px; font-weight: 600; margin-bottom: 0.5rem; }
.fc-count.info { background: #dbeafe; color: #1d4ed8; }
.fc-count.success { background: #dcfce7; color: #16a34a; }
.fc-count.error { background: #fee2e2; color: #dc2626; }

/* Result page */
.result-page { max-width: 1100px; margin: 0 auto; }
.metrics-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.metric-box { background: white; border-radius: 12px; padding: 1.2rem; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border: 1px solid #e8eaf6; }
.metric-val { font-size: 1.8rem; font-weight: 800; color: #667eea; }
.metric-label { font-size: 0.8rem; color: #666; margin-top: 0.3rem; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; border-bottom: 2px solid #e8e8e8; margin-bottom: 1.5rem; }
.tab-btn { padding: 0.6rem 1.2rem; border: none; background: none; cursor: pointer; font-size: 0.9rem; border-bottom: 3px solid transparent; margin-bottom: -2px; color: #666; font-weight: 500; }
.tab-btn.active { border-bottom-color: #667eea; color: #667eea; font-weight: 700; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Career cards */
.career-card { border: 1px solid #e0e0e0; border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 0.8rem; background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.career-card-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.career-rank { font-weight: 800; color: #667eea; margin-right: 0.5rem; }
.career-name { font-size: 1.05rem; font-weight: 700; }
.career-score { background: #667eea; color: white; padding: 3px 12px; border-radius: 20px; font-weight: 700; }
.career-detail { margin-top: 1rem; display: none; }
.career-detail.open { display: block; }
.career-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.badge { display: inline-block; border-radius: 20px; padding: 2px 12px; font-weight: 700; font-size: 0.82rem; margin-right: 4px; }
.badge-high { background: #22c55e22; color: #16a34a; border: 1px solid #22c55e60; }
.badge-mid { background: #f59e0b22; color: #d97706; border: 1px solid #f59e0b60; }
.badge-low { background: #ef444422; color: #dc2626; border: 1px solid #ef444460; }
.badge-category { background: #667eea18; color: #667eea; border: 1px solid #667eea40; }
.reason-item { background: #f8f9ff; border-radius: 8px; padding: 0.4rem 0.8rem; margin-bottom: 0.3rem; font-size: 0.88rem; border-left: 3px solid #667eea; }
.career-path-box { background: #f0f4ff; border-radius: 8px; padding: 0.5rem 0.8rem; margin-top: 0.5rem; font-size: 0.84rem; border-left: 3px solid #667eea; }
.alt-careers-box { background: #f0f4ff; border-radius: 8px; padding: 0.5rem 0.8rem; margin-top: 0.5rem; font-size: 0.85rem; border-left: 3px solid #667eea; }
.share-box { background: white; border-radius: 12px; padding: 1.2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-top: 1.5rem; }
.share-url-input { width: 100%; padding: 0.6rem 1rem; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 0.85rem; }
.chart-container { background: white; border-radius: 12px; padding: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 1rem; }

/* Ad banner */
.ad-banner { max-width: 900px; margin: 1rem auto; padding: 0 1rem; text-align: center; }
.ad-inline { margin: 1.5rem 0; }

/* Footer */
.site-footer { text-align: center; padding: 2rem 1rem; color: #999; font-size: 0.85rem; border-top: 1px solid #e8e8e8; background: white; margin-top: 2rem; }

/* Category filter */
.category-filter { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; flex-wrap: wrap; }
.category-filter label { font-weight: 600; }
.category-filter select { padding: 0.5rem 1rem; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 0.9rem; }

/* Section header */
.section-header { background: linear-gradient(90deg, #667eea20, transparent); border-left: 4px solid #667eea; padding: 0.6rem 1rem; border-radius: 0 8px 8px 0; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.8rem; color: #333; }

/* Shared result box */
.shared-result-box { background: white; border-radius: 16px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); text-align: center; max-width: 500px; margin: 0 auto; }

/* RTL Arabic */
[lang="ar"] { direction: rtl; text-align: right; }
[lang="ar"] .site-header { flex-direction: row-reverse; }
[lang="ar"] .btn-row { flex-direction: row-reverse; }
[lang="ar"] .likert-row { flex-direction: row-reverse; }

/* Mobile responsive */
@media (max-width: 768px) {
  .main-title { font-size: 1.5rem; }
  .metrics-row { grid-template-columns: 1fr; }
  .career-detail-grid { grid-template-columns: 1fr; }
  .tabs { gap: 0.3rem; }
  .tab-btn { padding: 0.4rem 0.7rem; font-size: 0.82rem; }
  .site-header { padding: 0.6rem 1rem; }
  .lang-selector { display: none; } /* hide header lang on mobile, use welcome page selector */
  .survey-form { padding: 1rem; }
}

/* Public SEO pages */
.top-nav { display: flex; align-items: center; justify-content: flex-end; gap: 0.8rem; min-width: 120px; }
.top-nav a { color: #555; text-decoration: none; font-size: 0.9rem; font-weight: 650; }
.top-nav a:hover { color: #667eea; }
.wide-page { max-width: 1100px; }
.hero-panel { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.5rem; align-items: stretch; background: white; border: 1px solid #e8eaf6; border-radius: 12px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); text-align: left; }
.hero-panel .main-title { text-align: left; margin-bottom: 0.8rem; }
.hero-panel .sub-title { text-align: left; margin-bottom: 1.2rem; line-height: 1.6; }
.eyebrow { color: #667eea; font-size: 0.78rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; margin-bottom: 0.45rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-facts { display: grid; gap: 0.8rem; }
.hero-facts div { background: #f8f9ff; border: 1px solid #e8eaf6; border-radius: 10px; padding: 1rem; }
.hero-facts strong { display: block; color: #667eea; font-size: 1.55rem; }
.hero-facts span { color: #666; font-size: 0.88rem; }
.content-section { margin-top: 1.8rem; text-align: left; }
.content-section h2, .article-page h2 { font-size: 1.25rem; margin-bottom: 0.8rem; color: #1a1a2e; }
.muted-section { background: #f0f4ff; border-left: 4px solid #667eea; border-radius: 8px; padding: 1rem 1.2rem; color: #444; line-height: 1.6; }
.link-grid, .career-teaser-grid, .feature-grid, .snapshot-grid, .review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.info-card, .career-teaser, .feature-grid div, .snapshot-grid div, .review-grid div { display: flex; flex-direction: column; gap: 0.35rem; background: white; border: 1px solid #e8eaf6; border-radius: 10px; padding: 1rem; color: #1a1a2e; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.info-card:hover, .career-teaser:hover { border-color: #667eea; box-shadow: 0 4px 14px rgba(102,126,234,0.14); }
.info-card span, .career-teaser span, .feature-grid span, .snapshot-grid span, .review-grid span { color: #666; font-size: 0.9rem; line-height: 1.45; }
.card-kicker { color: #667eea !important; font-weight: 800; font-size: 0.76rem !important; }
.article-page { max-width: 980px; margin: 0 auto; }
.article-page h1 { font-size: 2.1rem; margin-bottom: 0.7rem; color: #1a1a2e; }
.lead { color: #555; font-size: 1.05rem; line-height: 1.65; margin-bottom: 1.2rem; }
.article-page section { margin-top: 1.8rem; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #f0f4ff; border: 1px solid #dfe6ff; border-radius: 10px; padding: 1rem 1.2rem; margin: 1.3rem 0; }
.cta-band div { display: flex; flex-direction: column; gap: 0.25rem; }
.cta-band span { color: #666; font-size: 0.92rem; }
.career-category { margin-top: 2rem; }
.roadmap-list { margin-left: 1.2rem; line-height: 1.7; color: #444; }
.clean-list { margin: 0.8rem 0 1rem 1.2rem; text-align: left; line-height: 1.7; }
.article-list { margin-left: 1.2rem; line-height: 1.7; color: #444; }
.article-list li { margin-bottom: 0.35rem; }
.result-summary-card { background: #f8f9ff; border: 1px solid #e8eaf6; border-radius: 10px; padding: 1rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.result-summary-card strong { color: #1a1a2e; font-size: 1.05rem; }
.result-summary-card span { color: #666; font-size: 0.92rem; line-height: 1.5; }
.share-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.share-actions .btn-secondary { flex: 1 1 130px; padding: 0.55rem 0.9rem; }
.next-read-box { background: #f0f4ff; border-left: 4px solid #667eea; border-radius: 8px; padding: 0.9rem 1rem; margin-top: 1rem; }
.next-read-links { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.55rem; }
.next-read-links a { background: white; border: 1px solid #dfe6ff; border-radius: 8px; color: #667eea; padding: 0.4rem 0.65rem; text-decoration: none; font-size: 0.88rem; font-weight: 650; }

@media (max-width: 768px) {
  .top-nav { width: 100%; justify-content: center; }
  .hero-panel { grid-template-columns: 1fr; padding: 1.2rem; }
  .link-grid, .career-teaser-grid, .feature-grid, .snapshot-grid, .review-grid { grid-template-columns: 1fr; }
  .cta-band { align-items: stretch; flex-direction: column; }
  .article-page h1 { font-size: 1.55rem; }
  .share-actions { flex-direction: column; }
  .share-actions .btn-secondary { flex-basis: auto; }
}
