/* ================================================
   HOME DASHBOARD - BORDERLESS DESIGN SYSTEM
   Follows CareerFlow brand: Muted pastels, #E8E6E3 background
   Everything blends except white content cards
   ================================================ */

/* Main Container */
.home-view {
  background: #E8E6E3;
  min-height: 100vh;
  padding: 40px 32px;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Welcome Header - Blends into background */
.welcome-header {
  background: transparent;
  padding: 0;
  margin-bottom: 16px;
}

.welcome-title {
  font-size: 32px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 8px 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.welcome-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  margin: 0;
}

/* System Status Banner - Contextual guidance */
.system-status-banner {
  background: #F5EFE7;
  border-left: 3px solid #E8C48A; /* Muted gold */
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.system-status-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.system-status-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.system-status-message {
  font-size: 15px;
  color: #000000;
  flex: 1;
}

.system-status-cta {
  background: transparent;
  border: 1px solid #E8C48A;
  color: #000000;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.system-status-cta:hover {
  background: rgba(232, 196, 138, 0.15);
  border-color: #D4A574;
  transform: translateY(-1px);
}

.system-status-dismiss {
  background: transparent;
  border: none;
  color: rgba(0, 0, 0, 0.4);
  padding: 4px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: color 0.2s;
}

.system-status-dismiss:hover {
  color: rgba(0, 0, 0, 0.7);
}

/* Key Metrics - Borderless, blend into background */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.metric-card {
  background: #E8E6E3;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  cursor: pointer;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.06);
}

.metric-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.metric-value {
  font-size: 48px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 8px 0;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

.metric-label {
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.65);
  margin: 0;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.section-link {
  font-size: 14px;
  font-weight: 500;
  color: #9DB8CD;
  text-decoration: none;
  transition: color 0.2s;
}

.section-link:hover {
  color: #8AA7BC;
  text-decoration: underline;
}

/* Active Jobs - White cards that stand out */
.active-jobs-section {
  margin-top: 16px;
}

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

.job-card-home {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.job-card-home:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.08);
}

.job-company {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 6px 0;
  font-family: 'Inter', sans-serif;
}

.job-position {
  font-size: 16px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.7);
  margin: 0 0 16px 0;
}

.job-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.job-status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: none;
}

.job-status-badge.interested {
  background: rgba(208, 155, 141, 0.25); /* Muted rose */
  color: rgba(0, 0, 0, 0.8);
}

.job-status-badge.applied {
  background: rgba(184, 201, 190, 0.25); /* Muted sage */
  color: rgba(0, 0, 0, 0.8);
}

.job-status-badge.interviewing {
  background: rgba(157, 184, 205, 0.25); /* Muted blue */
  color: rgba(0, 0, 0, 0.8);
}

.job-status-badge.offered {
  background: rgba(168, 200, 154, 0.3); /* Muted green */
  color: rgba(0, 0, 0, 0.8);
}

.job-status-badge.rejected {
  background: rgba(217, 160, 154, 0.25); /* Muted red */
  color: rgba(0, 0, 0, 0.8);
}

.job-date {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
}

.job-action {
  background: transparent;
  border: none;
  color: #9DB8CD;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.job-action:hover {
  color: #8AA7BC;
  text-decoration: underline;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: rgba(0, 0, 0, 0.5);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
  margin: 0 0 8px 0;
}

.empty-state-message {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.5);
  margin: 0 0 24px 0;
}

/* Next Interview Card - Featured with muted accent */
.next-interview-card {
  background: linear-gradient(135deg,
    rgba(208, 155, 141, 0.15) 0%,
    rgba(208, 155, 141, 0.08) 100%
  );
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 16px;
  border: 1px solid rgba(208, 155, 141, 0.2);
}

.interview-header {
  font-size: 16px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.interview-position {
  font-size: 22px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 6px 0;
  font-family: 'Inter', sans-serif;
}

.interview-company {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.7);
  margin: 0 0 20px 0;
}

.interview-datetime {
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  margin: 0 0 8px 0;
}

.interview-details {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  margin: 0 0 20px 0;
}

.interview-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-prepare {
  background: #D09B8D;
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.btn-prepare:hover {
  background: #C89090;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-view-details {
  background: transparent;
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.btn-view-details:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

/* Quick Actions - Minimal, blend with background */
.quick-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.action-btn-inline {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #000000;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
}

.action-btn-inline:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.action-btn-inline.primary {
  background: #9DB8CD;
  color: #FFFFFF;
  border: none;
}

.action-btn-inline.primary:hover {
  background: #8AA7BC;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .home-view {
    padding: 32px 24px;
  }

  .dashboard-container {
    gap: 28px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .welcome-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .home-view {
    padding: 24px 16px;
  }

  .dashboard-container {
    gap: 24px;
  }

  .welcome-title {
    font-size: 24px;
  }

  .welcome-subtitle {
    font-size: 14px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .metric-card {
    padding: 20px 16px;
  }

  .metric-value {
    font-size: 36px;
  }

  .metric-label {
    font-size: 13px;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .job-card-home {
    padding: 16px;
  }

  .system-status-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .system-status-cta {
    width: 100%;
    text-align: center;
  }

  .next-interview-card {
    padding: 20px;
  }

  .interview-position {
    font-size: 20px;
  }

  .interview-actions {
    flex-direction: column;
  }

  .interview-actions button {
    width: 100%;
  }

  .quick-actions {
    flex-direction: column;
  }

  .action-btn-inline {
    width: 100%;
    justify-content: center;
  }
}

/* Dark Mode Support */
body.dark-mode .home-view {
  background: #0f0f0f;
}

body.dark-mode .welcome-title,
body.dark-mode .section-title,
body.dark-mode .job-company,
body.dark-mode .interview-position,
body.dark-mode .metric-value {
  color: #e4e4e7;
}

body.dark-mode .welcome-subtitle,
body.dark-mode .metric-label,
body.dark-mode .job-position {
  color: #a1a1aa;
}

body.dark-mode .metric-card {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

body.dark-mode .metric-card:hover {
  background: #262626;
  border-color: #3a3a3a;
}

body.dark-mode .job-card-home {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

body.dark-mode .job-card-home:hover {
  background: #262626;
  border-color: #3a3a3a;
}

body.dark-mode .system-status-banner {
  background: #1a1a1a;
  border-color: #E8C48A;
}

body.dark-mode .next-interview-card {
  background: linear-gradient(135deg,
    rgba(208, 155, 141, 0.1) 0%,
    rgba(208, 155, 141, 0.05) 100%
  );
  border-color: rgba(208, 155, 141, 0.15);
}

body.dark-mode .action-btn-inline {
  border-color: #2a2a2a;
  color: #e4e4e7;
}

body.dark-mode .action-btn-inline:hover {
  background: #262626;
  border-color: #3a3a3a;
}
