/* ==========================================================================
   TRACN - Modern Job & Career Platform Design System
   Inspired by Naukri Portal Architecture + Modern SaaS Polish
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary: #4338ca;
  --primary-hover: #3730a3;
  --primary-light: #e0e7ff;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --info: #0284c7;

  /* Neutral Shades */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #818cf8;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Typography */
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   TOP NAVIGATION BAR (Naukri-Style Header with Tracn Identity)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 72px;
  display: flex;
  align-items: center;
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: var(--secondary);
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), #4338ca);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--text-muted);
}

.btn-accent {
  background: var(--accent);
  color: #78350f;
  font-weight: 700;
}

.btn-accent:hover {
  background: #f59e0b;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR (IIM CREDIBILITY)
   ========================================================================== */
.top-banner {
  background: linear-gradient(90deg, #1e1b4b, #312e81, #1e1b4b);
  color: #e0e7ff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-banner strong {
  color: #fbbf24;
}

/* ==========================================================================
   PORTAL 3-COLUMN LAYOUT (NAUKRI CANDIDATE DASHBOARD PATTERN)
   ========================================================================== */
.portal-layout {
  display: grid;
  grid-template-columns: 280px 1fr 340px;
  gap: 24px;
  padding: 28px 0 60px 0;
  align-items: start;
}

/* Common Card Base */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

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

/* --------------------------------------------------------------------------
   LEFT SIDEBAR: Candidate Profile & Quick Navigator
   -------------------------------------------------------------------------- */
.profile-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(135deg, #312e81, #4f46e5);
}

.profile-avatar-wrap {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: inline-block;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  border: 4px solid white;
  background: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: var(--shadow-md);
  margin: 0 auto;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-top: 10px;
}

.profile-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.strength-gauge {
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: left;
  margin-bottom: 16px;
}

.gauge-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.gauge-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.gauge-fill {
  height: 100%;
  width: 82%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}

.side-menu {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: background 0.2s;
}

.side-menu-item a:hover, .side-menu-item.active a {
  background: var(--primary-light);
  color: var(--primary);
}

.side-menu-badge {
  background: var(--bg-surface-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   CENTER FEED: Search Bar, Lead Magnet Hub & Recommended Feeds
   -------------------------------------------------------------------------- */
.center-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero Search Component (Naukri Pattern) */
.hero-search-card {
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: white;
  box-shadow: var(--shadow-lg);
}

.search-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}

.search-title span {
  background: linear-gradient(90deg, #818cf8, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.search-subtitle {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.search-bar-wrap {
  background: white;
  border-radius: var(--radius-md);
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.search-input-group {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 8px 12px;
  gap: 10px;
  border-right: 1px solid var(--border-color);
}

.search-input-group:last-of-type {
  border-right: none;
}

.search-input-group input, .search-input-group select {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-main);
  background: transparent;
}

.quick-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.tag-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.tag-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* 12 AI Tools Lead Magnet Grid Section */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(67, 56, 202, 0.15);
}

.tool-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--primary-light);
  color: var(--primary);
}

.pill-free {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--success-light);
  color: #065f46;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.tool-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.tool-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 14px;
}

.tool-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Job Cards Feed */
.job-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}

.job-card:hover {
  border-color: #94a3b8;
}

.job-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.job-title-group {
  display: flex;
  gap: 14px;
}

.company-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--text-muted);
}

.job-role {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.company-name {
  font-size: 13px;
  color: var(--text-muted);
}

.ats-score-chip {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.job-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.job-badge-iim {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   RIGHT SIDEBAR: IIM Mentors & Download Lead Magnets
   -------------------------------------------------------------------------- */
.mentor-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mentor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.mentor-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mentor-photo {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.mentor-info {
  flex: 1;
}

.mentor-name {
  font-weight: 700;
  font-size: 14px;
}

.mentor-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
}

.mentor-company {
  font-size: 11px;
  color: var(--text-muted);
}

/* Lead Magnet Download Box */
.lead-box-gradient {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: white;
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  margin-top: 20px;
}

.lead-box-gradient h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 8px;
}

.lead-box-gradient p {
  font-size: 12px;
  color: #c7d2fe;
  margin-bottom: 16px;
}

/* ==========================================================================
   MODAL DIALOGS (Interactive 12 AI Tools & Lead Capture)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background: white;
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalPop 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 20px 24px;
  background: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

/* Tool Calculation Result Screen */
.tool-result-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 18px;
  display: none;
}

.score-display {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.score-circle {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #0f172a;
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--primary);
  animation: slideToast 0.3s ease;
}

@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 1100px) {
  .portal-layout {
    grid-template-columns: 240px 1fr;
  }
  .right-sidebar {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .portal-layout {
    grid-template-columns: 1fr;
  }
  .left-sidebar {
    display: none; /* Can be toggled with mobile drawer */
  }
  .right-sidebar {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .search-bar-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input-group {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links {
    display: none;
  }
}
