/**
 * Career Opportunities - Premium Simple CSS
 * Based on Vogue-inspired mockup with floating sidebar
 */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600&display=swap");

:root {
  --cream: #f8f4ed;
  --dark-green: #1a3028;
  --gold: #2d6a4f;
  --sage: #8b9b88;
  --muted-brown: #6b5d54;
  --pure-white: #ffffff;
  --light-gold: #faf7f2;
  --shadow-light: rgba(26, 48, 40, 0.03);
  --shadow-medium: rgba(26, 48, 40, 0.08);
  --shadow-heavy: rgba(26, 48, 40, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Main Wrapper - Full Page Background */
.sffc-opportunities-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  min-height: 100vh;
  background: linear-gradient(135deg, #fffdf8 0%, #faf7f2 100%);
  font-family: "Montserrat", sans-serif;
  color: var(--dark-green);
  font-weight: 300;
  letter-spacing: 0.02em;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1;
}

.sffc-opportunities-wrapper::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 50%,
      rgba(45, 106, 79, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(45, 106, 79, 0.02) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 20%,
      rgba(255, 249, 240, 0.5) 0%,
      transparent 40%
    );
  pointer-events: none;
  z-index: -1;
}

/* Shortlist styles removed */

/* Shortlist styles removed */

/* Priority Badge */
.sffc-priority-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

/* Shortlist item actions removed */

.sffc-analyze-btn {
  width: 100%;
  padding: 16px 24px;
  background: var(--dark-green);
  color: var(--pure-white);
  border: 2px solid var(--dark-green);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(26, 48, 40, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.sffc-analyze-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.sffc-analyze-btn:hover::before {
  width: 300px;
  height: 300px;
}

.sffc-analyze-btn:hover {
  background: transparent;
  color: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 48, 40, 0.2);
}

.sffc-analyze-btn span {
  position: relative;
  z-index: 1;
}

.sffc-analyze-btn[data-roles-count]::after {
  content: attr(data-roles-count) " roles";
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--gold);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}

/* Main Content Area - offset for sidebar */
.sffc-main-container {
  padding: 80px 48px 80px 360px;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.sffc-page-title {
  margin-bottom: 24px;
}

.sffc-page-title h1 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--dark-green);
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

.sffc-page-subtitle {
  font-size: 13px;
  color: var(--sage);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 20px 0;
}

/* Build Profile Button */
.sffc-build-profile-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--dark-green);
  color: var(--pure-white);
  border: none;
  border-radius: 30px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(26, 48, 40, 0.2);
}

.sffc-build-profile-btn:hover {
  background: var(--gold);
  color: var(--dark-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 106, 79, 0.3);
}

/* Masonry Grid Container */
.sffc-carousel-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.sffc-carousel-viewport {
  overflow: visible;
  padding: 0;
}

.sffc-cards-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  grid-auto-rows: auto;
  grid-auto-flow: row;
}

/* Opportunity Card - Masonry Style */
.sffc-opportunity-card {
  width: 100%;
  background: var(--pure-white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 12px var(--shadow-light), 0 0 0 1px rgba(45, 106, 79, 0.06);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.6s ease backwards;
  min-height: 380px;
  height: fit-content;
  display: flex;
  flex-direction: column;
}

.sffc-opportunity-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--sage));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sffc-opportunity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px var(--shadow-medium), 0 0 0 1px var(--gold);
}

.sffc-opportunity-card:hover::before {
  transform: scaleX(1);
}

/* Card Header */
.sffc-company-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 20px;
}

.sffc-company-info {
  flex: 1;
}

.sffc-company-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.sffc-job-title {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--dark-green);
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}

.sffc-company-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--light-gold), var(--cream));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-green);
}

/* Job Meta - Improved Layout */
.sffc-job-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(45, 106, 79, 0.15);
}

.sffc-meta-item {
  font-size: 11px;
  color: var(--muted-brown);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sffc-meta-item::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* No Profile Prompt - As button in footer */
.sffc-action-btn.sffc-no-profile-prompt {
  background: transparent;
  border: 1px dashed rgba(45, 106, 79, 0.4);
  color: var(--gold);
  font-size: 11px;
  padding: 8px 14px;
  opacity: 0.8;
}

.sffc-action-btn.sffc-no-profile-prompt:hover {
  background: var(--cream);
  border-style: solid;
  border-color: var(--gold);
  color: var(--dark-green);
  opacity: 1;
  transform: translateY(-1px);
}

/* Add profile icon */
.sffc-action-btn.sffc-no-profile-prompt::before {
  content: "👤";
  margin-right: 4px;
  font-size: 12px;
}

/* Match Badge - With Click Indicator */
.sffc-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(
    135deg,
    rgba(45, 106, 79, 0.1),
    rgba(139, 155, 136, 0.1)
  );
  padding: 8px 14px 8px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.sffc-match-badge:hover {
  background: linear-gradient(
    135deg,
    rgba(45, 106, 79, 0.15),
    rgba(139, 155, 136, 0.15)
  );
  transform: translateX(2px);
}

.sffc-match-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.sffc-match-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--dark-green);
}

.sffc-match-badge::after {
  content: "→";
  position: absolute;
  right: 10px;
  color: var(--gold);
  font-size: 12px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.sffc-match-badge:hover::after {
  opacity: 1;
  transform: translateX(2px);
}

/* Strategy Preview */
.sffc-strategy-preview {
  margin-bottom: 24px;
  min-height: 180px; /* Increased for multiple requirements */
  max-height: 200px;
  overflow-y: auto;
  position: relative;
}

/* Preview Content Container */
.sffc-preview-content {
  font-size: 12px;
  line-height: 1.5;
}

/* Skills Preview Section */
.sffc-skills-preview {
  margin-bottom: 12px;
}

.sffc-preview-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sage);
  display: block;
  margin-bottom: 6px;
}

.sffc-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sffc-skill-tag {
  background: linear-gradient(
    135deg,
    rgba(45, 106, 79, 0.08),
    rgba(45, 106, 79, 0.04)
  );
  border: 1px solid rgba(45, 106, 79, 0.15);
  color: var(--dark-green);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.sffc-skill-tag:hover {
  background: rgba(45, 106, 79, 0.15);
  border-color: rgba(45, 106, 79, 0.25);
}

.sffc-skill-more {
  color: var(--gold);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  font-style: italic;
}

/* Qualification Preview Section */
.sffc-qualification-preview {
  margin-top: 10px;
}

.sffc-qualification-text {
  color: var(--muted-brown);
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Requirements Preview Section */
.sffc-requirements-preview {
  margin-top: 10px;
}

.sffc-requirements-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sffc-requirement-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted-brown);
  padding-left: 4px;
}

.sffc-req-icon {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
  margin-top: 1px;
  color: var(--gold);
}

.sffc-req-text {
  flex: 1;
  word-break: break-word;
}

/* Priority-based styling */
.sffc-req-must-have {
  font-weight: 500;
}

.sffc-req-must-have .sffc-req-icon {
  color: var(--gold);
}

.sffc-req-must-have .sffc-req-text {
  color: var(--dark-green);
}

.sffc-req-nice-to-have {
  font-style: italic;
  opacity: 0.85;
}

.sffc-req-nice-to-have .sffc-req-icon {
  color: var(--sage);
}

.sffc-req-normal .sffc-req-icon {
  color: var(--sage);
}

/* Description Fallback */
.sffc-description-preview .sffc-description-text,
.sffc-generic-preview .sffc-generic-text {
  color: var(--muted-brown);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Footer */
.sffc-card-footer {
  display: flex;
  margin-top: auto; /* Push footer to bottom of card */
  justify-content: flex-end;
  align-items: center;
}

.sffc-card-actions {
  display: flex;
  gap: 10px;
}

.sffc-action-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

.sffc-btn-interested {
  background: var(--dark-green);
  color: var(--pure-white);
}

.sffc-btn-interested:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

.sffc-btn-interested.added {
  background: var(--gold);
}

.sffc-btn-pass {
  background: transparent;
  color: var(--muted-brown);
  border: 1px solid rgba(107, 93, 84, 0.2);
}

.sffc-btn-pass:hover {
  background: var(--cream);
  border-color: var(--sage);
}

.sffc-btn-pass.passed {
  opacity: 0.5;
}

/* Navigation Indicators */
.sffc-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.sffc-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(45, 106, 79, 0.2);
  cursor: pointer;
  transition: all 0.4s ease;
}

.sffc-indicator.active {
  width: 28px;
  border-radius: 3px;
  background: var(--gold);
}

/* Loading State */
.sffc-loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: var(--sage);
}

.sffc-loading-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  border: 3px solid var(--light-gold);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Professional Icon Styles */
.filter-icon[data-icon],
.option-icon[data-icon],
.action-icon[data-icon],
.info-icon[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-icon[data-icon]::before,
.option-icon[data-icon]::before,
.action-icon[data-icon]::before,
.info-icon[data-icon]::before {
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--gold);
}

/* Icon mappings */
.filter-icon[data-icon="star"]::before {
  content: "\f005";
}
.filter-icon[data-icon="target"]::before {
  content: "\f140";
}
.filter-icon[data-icon="location"]::before {
  content: "\f3c5";
}
.filter-icon[data-icon="dollar"]::before {
  content: "\f155";
}
.info-icon[data-icon="info"]::before {
  content: "\f05a";
  font-size: 12px;
}

.option-icon[data-icon="shield"]::before {
  content: "\f132";
  font-size: 24px;
}
.option-icon[data-icon="balance"]::before {
  content: "\f24e";
  font-size: 24px;
}
.option-icon[data-icon="rocket"]::before {
  content: "\f135";
  font-size: 24px;
}

.action-icon[data-icon="chart"]::before {
  content: "\f080";
}
.action-icon[data-icon="refresh"]::before {
  content: "\f2f1";
}
.action-icon[data-icon="analytics"]::before {
  content: "\f201";
}
.action-icon[data-icon="save"]::before {
  content: "\f0c7";
}

/* Fallback for when Font Awesome isn't loaded */
.filter-icon[data-icon]:empty::after {
  content: attr(data-icon);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--gold);
}

.sffc-filter-btn .filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.sffc-filter-btn:hover .filter-icon[data-icon]::before {
  color: var(--dark-green);
}

/* Error State */
.sffc-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background: rgba(255, 0, 0, 0.05);
  border-radius: 12px;
  color: #c0392b;
}

/* Empty State */
.sffc-empty {
  text-align: center;
  color: var(--sage);
  font-size: 14px;
  padding: 40px;
}

/* Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-100px) translateY(-50%);
    opacity: 0;
  }
  to {
    transform: translateX(0) translateY(-50%);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Personalized Filter Section */
.sffc-filter-section {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.sffc-filter-dropdown {
  position: relative;
}

.sffc-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #ffffff 0%, #fff9f0 100%);
  border: 1px solid rgba(45, 106, 79, 0.25);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #6b4a2b;
}

.sffc-filter-btn:hover {
  background: linear-gradient(135deg, #fffdf8 0%, #faf7f2 100%);
  border-color: rgba(45, 106, 79, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 98, 57, 0.1);
}

.filter-icon {
  font-size: 16px;
}

.filter-label {
  font-weight: 600;
  color: #8b6239;
}

.filter-value {
  color: #d4af37;
  font-weight: 500;
}

/* Personalized Filter Menus */
.sffc-filter-dropdown.personalized .filter-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(45, 106, 79, 0.2);
  padding: 16px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.sffc-filter-dropdown.personalized.open .filter-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b6239;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(45, 106, 79, 0.15);
}

.filter-menu label {
  display: block;
  padding: 8px 0;
  cursor: pointer;
  font-size: 13px;
  color: #6b4a2b;
  transition: all 0.2s ease;
}

.filter-menu label:hover {
  color: #d4af37;
  padding-left: 4px;
}

.filter-menu input[type="radio"] {
  margin-right: 8px;
  accent-color: #d4af37;
}

/* Salary Slider Styles */
.salary-slider {
  margin: 16px 0;
}

.salary-slider input[type="range"] {
  width: 100%;
  margin: 8px 0;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #f5e6d3;
  outline: none;
  border-radius: 2px;
}

.salary-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #d4af37;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.salary-display {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #1a3028;
  margin-top: 12px;
}

.filter-suggestions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(45, 106, 79, 0.15);
}

.filter-suggestions small {
  display: block;
  color: #8b6239;
  font-size: 11px;
  margin-bottom: 8px;
}

.filter-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-suggestions li {
  font-size: 12px;
  color: #6b4a2b;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.filter-suggestions li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #d4af37;
}

/* View More Matches Button */
.sffc-load-more-container {
  text-align: center;
  margin: 48px 0;
  padding: 20px;
}

.sffc-view-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #fffdf8 0%, #faf7f2 100%);
  border: 2px solid rgba(45, 106, 79, 0.3);
  border-radius: 50px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #6b4a2b;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.sffc-view-more-btn:hover {
  background: linear-gradient(135deg, #d4af37 0%, #2d6a4f 100%);
  border-color: #d4af37;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sffc-view-more-btn:active {
  transform: translateY(0);
}

.sffc-view-more-btn .btn-text {
  font-weight: 600;
}

.sffc-view-more-btn .btn-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.sffc-view-more-btn:hover .btn-icon {
  transform: translateX(4px);
}

.sffc-view-more-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.sffc-view-more-btn.loading .btn-text {
  display: none;
}

.sffc-view-more-btn.loading::after {
  content: "Loading...";
  display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .sffc-opportunity-card {
    flex: 0 0 calc(50% - 14px);
  }

  .sffc-main-container {
    padding-left: 320px;
  }
}

@media (max-width: 768px) {
  /* Shortlist mobile styles removed */

  .sffc-main-container {
    padding: 40px 20px 100px 20px;
  }

  .sffc-opportunity-card {
    flex: 0 0 100%;
  }
}

/* Match Explanation Modal */
.sffc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 48, 40, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.modal-open {
  overflow: hidden;
}

.sffc-modal-container {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow: auto;
  animation: modalSlideIn 0.3s ease;
}

.sffc-modal-content {
  background: var(--pure-white);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(26, 48, 40, 0.25);
}

.sffc-modal-header {
  padding: 30px;
  border-bottom: 1px solid rgba(45, 106, 79, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sffc-modal-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--dark-green);
  margin: 0;
}

.sffc-modal-close {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(107, 93, 84, 0.2);
  border-radius: 50%;
  font-size: 24px;
  color: var(--muted-brown);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sffc-modal-close:hover {
  background: var(--cream);
  border-color: var(--gold);
  color: var(--dark-green);
}

.sffc-modal-body {
  padding: 30px;
}

/* Match Job Info */
.sffc-match-job-info {
  text-align: center;
  margin-bottom: 30px;
}

.sffc-match-job-info h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  color: var(--dark-green);
  margin: 0 0 8px 0;
}

.sffc-match-job-info p {
  color: var(--sage);
  font-size: 14px;
  margin: 0;
}

/* Match Score Visual */
.sffc-match-score-visual {
  text-align: center;
  margin: 40px 0;
}

.sffc-score-circle {
  position: relative;
  display: inline-block;
}

.sffc-score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 600;
  color: var(--dark-green);
}

.sffc-score-label {
  margin-top: 15px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

/* Match Factors */
.sffc-match-factors {
  background: var(--cream);
  border-radius: 16px;
  padding: 25px;
  margin: 30px 0;
}

.sffc-match-factors h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  color: var(--dark-green);
  margin: 0 0 20px 0;
}

.sffc-match-reason {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sffc-reason-icon {
  width: 24px;
  height: 24px;
  background: var(--gold);
  color: var(--pure-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.sffc-reason-text {
  color: var(--dark-green);
  font-size: 14px;
}

/* Match Details */
.sffc-match-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin: 30px 0;
}

.sffc-detail-section {
  background: linear-gradient(
    135deg,
    rgba(45, 106, 79, 0.05),
    rgba(45, 106, 79, 0.02)
  );
  border-radius: 12px;
  padding: 20px;
}

.sffc-detail-section h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-green);
  margin: 0 0 15px 0;
}

.sffc-skills-match p {
  font-size: 13px;
  color: var(--muted-brown);
  margin: 0 0 12px 0;
}

.sffc-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sffc-match-details .sffc-skill-tag {
  background: var(--pure-white);
  border: 1px solid var(--light-gold);
  color: var(--dark-green);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
}

/* Experience Indicator */
.sffc-experience-bar {
  height: 8px;
  background: rgba(45, 106, 79, 0.2);
  border-radius: 4px;
  margin: 15px 0;
  overflow: hidden;
}

.sffc-experience-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.sffc-experience-indicator p {
  font-size: 13px;
  color: var(--muted-brown);
  margin: 10px 0 0 0;
}

/* Trajectory Points */
.sffc-trajectory-points {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
}

.sffc-trajectory-points li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted-brown);
}

.sffc-trajectory-points li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Preference Learning */
.sffc-preference-learning {
  background: linear-gradient(
    135deg,
    rgba(26, 48, 40, 0.03),
    rgba(26, 48, 40, 0.01)
  );
  border-radius: 16px;
  padding: 25px;
  margin: 30px 0;
}

.sffc-preference-learning h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  color: var(--dark-green);
  margin: 0 0 20px 0;
}

.sffc-insights-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.sffc-insights-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--dark-green);
}

.sffc-insights-list li:before {
  content: "◉";
  position: absolute;
  left: 0;
  color: var(--sage);
}

.sffc-insight-note {
  font-size: 12px;
  color: var(--sage);
  font-style: italic;
  margin: 15px 0 0 0;
}

/* Modal Actions */
.sffc-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(45, 106, 79, 0.15);
}

.sffc-action-primary,
.sffc-action-secondary {
  flex: 1;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: inherit;
}

.sffc-action-primary {
  background: var(--dark-green);
  color: var(--pure-white);
}

.sffc-action-primary:hover {
  background: var(--gold);
  transform: translateY(-1px);
}

.sffc-action-secondary {
  background: transparent;
  color: var(--dark-green);
  border: 2px solid var(--light-gold);
}

.sffc-action-secondary:hover {
  background: var(--cream);
  border-color: var(--gold);
}

/* Success Message */
.sffc-success-message {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 14px;
  animation: slideDown 0.3s ease;
}

/* Animations */
@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

/* Make match badge clickable */
.sffc-match-badge {
  cursor: pointer;
  transition: all 0.2s ease;
}

.sffc-match-badge:hover {
  transform: scale(1.05);
  background: linear-gradient(
    135deg,
    rgba(45, 106, 79, 0.2),
    rgba(139, 155, 136, 0.2)
  );
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
  .sffc-modal-container {
    max-width: 100%;
    max-height: 100vh;
    margin: 0;
  }

  .sffc-modal-content {
    border-radius: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .sffc-modal-body {
    flex: 1;
    overflow-y: auto;
  }

  .sffc-match-details {
    grid-template-columns: 1fr;
  }

  .sffc-modal-actions {
    flex-direction: column;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--sage));
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--sage), var(--gold));
}

/* Glassmorphism Autocomplete Container */
.sffc-autocomplete-container {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  padding: 20px 10px;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 -8px 32px 0 rgba(31, 38, 135, 0.12),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.sffc-autocomplete-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
  padding: 0 5px;
}

/* Autocomplete Suggestions */
.sffc-autocomplete-suggestions {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 10px;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  display: none;
  animation: slideUp 0.3s ease-out;
}

.sffc-autocomplete-suggestions.active {
  display: block;
}

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

.suggestion-category {
  padding: 12px 16px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage);
  font-weight: 600;
  background: rgba(45, 106, 79, 0.03);
  border-bottom: 1px solid rgba(45, 106, 79, 0.08);
}

.suggestion-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(45, 106, 79, 0.05);
}

.suggestion-item:hover {
  background: linear-gradient(
    90deg,
    rgba(45, 106, 79, 0.08),
    rgba(45, 106, 79, 0.04)
  );
  padding-left: 24px;
}

.suggestion-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(45, 106, 79, 0.1),
    rgba(45, 106, 79, 0.05)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.suggestion-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
}

.suggestion-text {
  flex: 1;
}

.suggestion-main {
  font-size: 14px;
  color: var(--dark-green);
  font-weight: 500;
  margin-bottom: 2px;
}

.suggestion-sub {
  font-size: 12px;
  color: var(--sage);
  font-weight: 400;
}

/* Input Group */
.sffc-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 8px 8px 8px 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0px;
  transition: all 0.3s ease;
}

.sffc-mode-toggle {
  display: flex;
  flex: 1 1 100%;
  order: -1;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 4px;
  gap: 6px;
  transition: background 0.3s ease;
}

.sffc-mode-option {
  flex: 1 1 auto;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--dark-green);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sffc-mode-option.is-active {
  background: linear-gradient(135deg, var(--gold), #1e4a38);
  color: #fff;
  box-shadow: 0 6px 16px rgba(45, 106, 79, 0.25);
}

.sffc-mode-option:focus-visible {
  outline: 2px solid rgba(30, 74, 56, 0.6);
  outline-offset: 2px;
}

.sffc-input-group:focus-within {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(45, 106, 79, 0.3);
  box-shadow: 0 4px 20px 0 rgba(45, 106, 79, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.sffc-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--dark-green);
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  padding: 12px 8px;
  min-width: 0;
  width: 100%;
}

.sffc-chat-input::placeholder {
  color: rgba(26, 48, 40, 0.5);
}

#senna-send {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #1e4a38);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
  flex-shrink: 0;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

#senna-send:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.4);
}

#senna-send:active {
  transform: scale(0.98);
}

#senna-send svg {
  pointer-events: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .sffc-autocomplete-container {
    padding: 15px;
  }

  .sffc-autocomplete-suggestions {
    max-height: 200px;
  }

  .sffc-input-group {
    padding: 6px 6px 6px 20px;
  }

  .sffc-mode-toggle {
    flex-basis: 100%;
    margin-bottom: 6px;
  }

  .sffc-mode-option {
    font-size: 12px;
    padding: 6px 12px;
  }

  .sffc-chat-input {
    font-size: 14px;
  }
}

@media (min-width: 769px) {
  .sffc-mode-toggle {
    flex: 0 0 auto;
    order: 0;
    margin-bottom: 0;
    margin-right: 8px;
  }

  .sffc-mode-option {
    flex: 0 0 auto;
  }
}

.job-cards-in-chat.blur-mode .sffc-match-card.job-card-vogue,
.job-cards-in-chat.blur-mode .sffc-match-card.job-card-vogue.is-muted {
  filter: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
