/* =========================================
   HELIACORE - MAIN STYLESHEET
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --primary: #0B2545;
  --secondary: #134074;
  --accent: #13A0C7;
  --accent2: #0EA47A;
  --accent3: #6C5CE7;
  --dark: #0A1628;
  --light: #F0F4F8;
  --card: #FFFFFF;
  --text: #1A2332;
  --text-secondary: #5A6B80;
  --border: #E2E8F0;
  --success: #0EA47A;
  --warning: #F5A623;
  --danger: #E74C3C;
  --gradient: linear-gradient(135deg, #0B2545 0%, #134074 50%, #13A0C7 100%);
  --gradient2: linear-gradient(135deg, #13A0C7 0%, #0EA47A 100%);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--light);
  color: var(--text);
  overflow-x: hidden;
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; color: var(--primary);
  text-decoration: none;
}
.nav-logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color 0.2s; cursor: pointer; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta { background: var(--gradient2); color: white; border: none; padding: 10px 24px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(19,160,199,0.4); }

/* SCREEN TABS */
.screen-tabs {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 200;
  background: var(--primary);
  border-radius: 16px; padding: 6px;
  display: flex; gap: 4px;
  box-shadow: 0 10px 40px rgba(10,22,40,0.4);
}
.screen-tab {
  padding: 10px 20px; border-radius: 12px; border: none;
  background: transparent; color: rgba(255,255,255,0.6);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s;
  white-space: nowrap;
}
.screen-tab.active { background: var(--accent); color: white; }
.screen-tab:hover:not(.active) { color: white; background: rgba(255,255,255,0.1); }

/* SCREENS */
.screen { display: none; padding-top: 64px; min-height: 100vh; animation: fadeIn 0.4s ease; }
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* === SCREEN 1: LANDING === */
.hero {
  background: var(--gradient);
  padding: 100px 60px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(19,160,199,0.15) 0%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,164,122,0.1) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px; padding: 6px 16px; margin-bottom: 24px;
  color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 500;
}
.hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: 52px; font-weight: 900; color: white; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.hero h1 .highlight { background: var(--gradient2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.hero-desc { font-size: 18px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 40px; max-width: 560px; }

.hero-upload {
  background: rgba(255,255,255,0.08); border: 2px dashed rgba(255,255,255,0.25);
  border-radius: 20px; padding: 40px; text-align: center; max-width: 500px;
  transition: all 0.3s; cursor: pointer;
}
.hero-upload:hover { background: rgba(255,255,255,0.12); border-color: var(--accent); }
.hero-upload-icon { font-size: 48px; margin-bottom: 12px; }
.hero-upload h3 { color: white; font-size: 18px; margin-bottom: 8px; }
.hero-upload p { color: rgba(255,255,255,0.5); font-size: 14px; margin-bottom: 20px; }
.hero-upload-btn {
  background: white; color: var(--primary); border: none;
  padding: 14px 32px; border-radius: 12px; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all 0.2s;
}
.hero-upload-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

.hero-stats {
  display: flex; gap: 48px; margin-top: 60px; position: relative; z-index: 1;
}
.hero-stat-value { font-size: 36px; font-weight: 800; color: white; }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 4px; }

.hero-visual {
  position: absolute; right: 60px; top: 50%; transform: translateY(-45%); z-index: 1;
  display: flex; flex-direction: column; gap: 12px;
}
.mini-card {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 14px;
  padding: 16px 20px; min-width: 300px;
  animation: float 3s ease-in-out infinite;
}
.mini-card:nth-child(2) { animation-delay: -1s; margin-left: 30px; }
.mini-card:nth-child(3) { animation-delay: -2s; margin-left: 15px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.mini-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mini-card-company { color: white; font-weight: 600; font-size: 14px; }
.mini-card-match { background: var(--accent2); color: white; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.mini-card-title { color: rgba(255,255,255,0.7); font-size: 12px; }
.mini-card-salary { color: var(--accent); font-size: 12px; font-weight: 600; margin-top: 4px; }

/* FEATURES SECTION */
.features { padding: 80px 60px; max-width: 1200px; margin: 0 auto; }
.features-title { text-align: center; font-size: 36px; font-weight: 800; margin-bottom: 12px; color: var(--primary); }
.features-sub { text-align: center; font-size: 16px; color: var(--text-secondary); margin-bottom: 60px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: white; border-radius: 20px; padding: 36px;
  border: 1px solid var(--border); transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); border-color: var(--accent); }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.feature-icon.blue { background: rgba(19,160,199,0.1); }
.feature-icon.green { background: rgba(14,164,122,0.1); }
.feature-icon.purple { background: rgba(108,92,231,0.1); }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* === SCREEN 2: DASHBOARD === */
.dashboard { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  width: 260px; background: var(--primary); padding: 28px 20px;
  display: flex; flex-direction: column; gap: 4px; flex-shrink: 0;
}
.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px; color: rgba(255,255,255,0.6);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.sidebar-item:hover { background: rgba(255,255,255,0.08); color: white; }
.sidebar-item.active { background: rgba(19,160,199,0.2); color: var(--accent); }
.sidebar-item .icon { width: 20px; text-align: center; }
.sidebar-section { color: rgba(255,255,255,0.3); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 20px 16px 8px; }

.main-content { flex: 1; padding: 32px; overflow-y: auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.page-title { font-size: 26px; font-weight: 800; color: var(--primary); }
.page-subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* Stats Row */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: white; border-radius: 16px; padding: 24px; border: 1px solid var(--border); }
.stat-card-label { font-size: 12px; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card-value { font-size: 32px; font-weight: 800; margin-top: 8px; }
.stat-card-value.blue { color: var(--accent); }
.stat-card-value.green { color: var(--accent2); }
.stat-card-value.purple { color: var(--accent3); }
.stat-card-value.orange { color: var(--warning); }
.stat-card-change { font-size: 12px; margin-top: 4px; font-weight: 600; }
.stat-card-change.up { color: var(--success); }

/* AI Banner */
.ai-banner {
  background: linear-gradient(135deg, #0B2545 0%, #134074 100%);
  border-radius: 16px; padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; position: relative; overflow: hidden;
}
.ai-banner::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(19,160,199,0.2) 0%, transparent 70%);
}
.ai-banner-left { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.ai-avatar { width: 48px; height: 48px; border-radius: 14px; background: var(--gradient2); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.ai-banner-title { color: white; font-weight: 700; font-size: 16px; }
.ai-banner-sub { color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 2px; }
.ai-activity { display: flex; gap: 6px; align-items: center; position: relative; z-index: 1; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); animation: pulse 1.5s infinite; }
.ai-activity span { color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 500; }

/* Job Cards */
.jobs-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.jobs-section-title { font-size: 18px; font-weight: 700; color: var(--primary); }
.jobs-filter { display: flex; gap: 8px; }
.filter-btn {
  padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: white; font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--text-secondary); transition: all 0.2s;
}
.filter-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  background: white; border-radius: 16px; padding: 24px;
  border: 1px solid var(--border); display: flex; align-items: center;
  gap: 20px; transition: all 0.2s; cursor: pointer;
}
.job-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(19,160,199,0.1); }
.job-logo {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: white; flex-shrink: 0;
}
.job-info { flex: 1; }
.job-title-row { display: flex; align-items: center; gap: 10px; }
.job-title { font-size: 16px; font-weight: 700; color: var(--primary); }
.job-new { background: rgba(19,160,199,0.1); color: var(--accent); padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.job-company { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
.job-meta { display: flex; gap: 16px; margin-top: 8px; }
.job-meta span { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
.job-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.match-score { font-size: 22px; font-weight: 800; padding: 4px 14px; border-radius: 10px; }
.match-score.high { color: var(--accent2); background: rgba(14,164,122,0.1); }
.match-score.medium { color: var(--warning); background: rgba(245,166,35,0.1); }
.job-status-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.badge-applied { background: rgba(19,160,199,0.1); color: var(--accent); }
.badge-ready { background: rgba(14,164,122,0.1); color: var(--accent2); }
.badge-viewed { background: rgba(108,92,231,0.1); color: var(--accent3); }
.badge-interview { background: rgba(245,166,35,0.15); color: #D4940A; }
.auto-apply-btn {
  background: var(--gradient2); color: white; border: none;
  padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 14px;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: all 0.2s; white-space: nowrap;
}
.auto-apply-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,164,122,0.4); }

/* === SCREEN 3: AUTO-APPLY === */
.apply-pipeline { padding: 32px; max-width: 1100px; margin: 0 auto; }
.pipeline-header { text-align: center; margin-bottom: 40px; }
.pipeline-title { font-size: 28px; font-weight: 800; color: var(--primary); }
.pipeline-sub { color: var(--text-secondary); margin-top: 8px; font-size: 15px; }
.pipeline-steps { display: flex; gap: 20px; margin-bottom: 40px; justify-content: center; flex-wrap: wrap; }
.pipeline-step {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 12px; background: white;
  border: 1px solid var(--border); font-size: 13px; font-weight: 600;
}
.pipeline-step .step-num {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: white;
}
.pipeline-step.done .step-num { background: var(--accent2); }
.pipeline-step.active .step-num { background: var(--accent); }
.pipeline-step.pending .step-num { background: var(--border); color: var(--text-secondary); }
.pipeline-step.done { border-color: var(--accent2); }
.pipeline-step.active { border-color: var(--accent); background: rgba(19,160,199,0.05); }
.pipeline-arrow { color: var(--border); font-size: 18px; display: flex; align-items: center; }

.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.apply-card { background: white; border-radius: 16px; padding: 24px; border: 1px solid var(--border); }
.apply-card.full-width { grid-column: span 2; }
.apply-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.apply-card h3 { font-size: 16px; font-weight: 700; color: var(--primary); }
.cv-adapt-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cv-adapt-item:last-child { border: none; }
.adapt-icon { font-size: 18px; margin-top: 2px; }
.adapt-label { font-size: 12px; color: var(--text-secondary); }
.adapt-value { font-size: 14px; font-weight: 600; color: var(--primary); margin-top: 2px; }
.apply-progress-list { display: flex; flex-direction: column; gap: 10px; }
.apply-progress-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; background: var(--light); }
.progress-status { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.progress-status.done { background: rgba(14,164,122,0.1); }
.progress-status.loading { background: rgba(19,160,199,0.1); animation: pulse 1s infinite; }
.progress-status.waiting { background: rgba(0,0,0,0.04); }
.progress-info { flex: 1; }
.progress-name { font-size: 13px; font-weight: 600; color: var(--primary); }
.progress-detail { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.progress-time { font-size: 11px; color: var(--text-secondary); }

/* Coach IA */
.coach-container { background: var(--light); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.coach-message { display: flex; gap: 12px; align-items: flex-start; }
.coach-avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--gradient2); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.coach-bubble { background: white; border-radius: 12px; padding: 14px 18px; font-size: 14px; line-height: 1.6; color: var(--text); max-width: 80%; border: 1px solid var(--border); }
.coach-actions { display: flex; gap: 8px; margin-left: 48px; flex-wrap: wrap; }
.coach-btn { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); background: white; color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.coach-btn:hover { border-color: var(--accent); color: var(--accent); }
.coach-btn.primary { border-color: var(--accent); color: var(--accent); }

/* === SCREEN 4: TRACKING === */
.tracking-board { padding: 32px; }
.kanban { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 20px; }
.kanban-col { background: var(--light); border-radius: 16px; padding: 16px; min-height: 400px; }
.kanban-col-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.kanban-col-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.kanban-col-count { background: white; width: 24px; height: 24px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.kanban-card { background: white; border-radius: 12px; padding: 16px; border: 1px solid var(--border); margin-bottom: 10px; transition: all 0.2s; cursor: pointer; }
.kanban-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.kanban-card-logo { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: white; margin-bottom: 10px; }
.kanban-card-title { font-size: 13px; font-weight: 700; color: var(--primary); }
.kanban-card-company { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.kanban-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.kanban-date { font-size: 10px; color: var(--text-secondary); }
.kanban-match { font-size: 11px; font-weight: 700; }

/* === SCREEN 5: PROFILE === */
.profile-page { padding: 32px; max-width: 900px; margin: 0 auto; }
.profile-card { background: white; border-radius: 20px; padding: 36px; border: 1px solid var(--border); margin-bottom: 24px; }
.profile-top { display: flex; gap: 24px; align-items: center; margin-bottom: 28px; }
.profile-avatar { width: 80px; height: 80px; border-radius: 20px; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 32px; color: white; font-weight: 800; }
.profile-name { font-size: 24px; font-weight: 800; color: var(--primary); }
.profile-role { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.profile-tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.profile-tag { padding: 4px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; background: rgba(19,160,199,0.08); color: var(--accent); }
.prefs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pref-item { padding: 16px; background: var(--light); border-radius: 12px; }
.pref-label { font-size: 11px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.pref-value { font-size: 16px; font-weight: 700; color: var(--primary); margin-top: 6px; }
.section-title { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.ai-score-section { margin-top: 28px; }
.score-bars { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.score-bar-item { display: flex; align-items: center; gap: 14px; }
.score-bar-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); width: 140px; }
.score-bar-track { flex: 1; height: 8px; background: var(--light); border-radius: 4px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }
.score-bar-fill.high { background: var(--gradient2); }
.score-bar-fill.mid { background: var(--warning); }
.score-bar-pct { font-size: 13px; font-weight: 700; width: 40px; text-align: right; }
.ai-recommendation { margin-top: 20px; padding: 16px; background: rgba(19,160,199,0.05); border-radius: 12px; border: 1px solid rgba(19,160,199,0.15); }
.ai-recommendation .rec-title { font-size: 13px; font-weight: 700; color: var(--accent); }
.ai-recommendation .rec-text { font-size: 13px; color: var(--text-secondary); margin-top: 6px; line-height: 1.6; }

/* RESPONSIVE */
@media (max-width: 1200px) {
  .hero-visual { display: none; }
  .kanban { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 24px 60px; }
  .hero h1 { font-size: 32px; }
  .apply-grid { grid-template-columns: 1fr; }
  .apply-card.full-width { grid-column: span 1; }
  .nav { padding: 0 16px; }
  .nav-links { display: none; }
  .screen-tabs { flex-wrap: wrap; bottom: 10px; }
  .kanban { grid-template-columns: 1fr; }
  .prefs-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
