/**
 * 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: #C9A961;
    --sage: #8B9B88;
    --muted-brown: #6B5D54;
    --pure-white: #FFFFFF;
    --light-gold: #E8DCC4;
    --shadow-light: rgba(26, 48, 40, 0.03);
    --shadow-medium: rgba(26, 48, 40, 0.08);
    --shadow-heavy: rgba(26, 48, 40, 0.15);
}

/* 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, #FFF9F0 0%, #F5E6D3 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(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(201, 169, 97, 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;
}

/* Compact Floating Shortlist Panel - EXACTLY like mockup */
.sffc-shortlist-floating {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(26, 48, 40, 0.08),
        0 0 0 1px rgba(201, 169, 97, 0.08);
    z-index: 100;
    max-height: 60vh;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInLeft 0.6s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sffc-shortlist-floating.collapsed {
    width: 64px;
    cursor: pointer;
}

.sffc-shortlist-header {
    padding: 24px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
    cursor: pointer;
}

.sffc-shortlist-floating.collapsed .sffc-shortlist-header {
    padding: 20px;
    border-bottom: none;
}

.sffc-shortlist-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--dark-green);
    margin: 0 0 2px 0;
}

.sffc-shortlist-floating.collapsed .sffc-shortlist-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 16px;
    text-align: center;
}

.sffc-shortlist-subtitle {
    font-size: 11px;
    color: var(--sage);
    letter-spacing: 0.05em;
    margin: 0;
}

.sffc-shortlist-floating.collapsed .sffc-shortlist-subtitle {
    display: none;
}

.sffc-shortlist-content {
    padding: 16px;
    max-height: calc(60vh - 140px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sffc-shortlist-content.sffc-sortable {
    min-height: 100px;
}

.sffc-shortlist-floating.collapsed .sffc-shortlist-content {
    display: none;
}

/* Redesigned Shortlist Cards */
.sffc-shortlist-item {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: move;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sffc-shortlist-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF9F0 100%);
}

.sffc-shortlist-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

/* Card Header */
.sffc-shortlist-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.sffc-shortlist-item h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-green);
    line-height: 1.4;
    flex: 1;
}

/* Card Meta Info */
.sffc-shortlist-item-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #666;
    flex-wrap: wrap;
}

.sffc-shortlist-item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card Actions */
.sffc-shortlist-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.sffc-shortlist-item-actions button {
    padding: 4px 8px;
    font-size: 10px;
    background: transparent;
    border: 1px solid var(--light-gold);
    border-radius: 4px;
    color: var(--dark-green);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-shortlist-item-actions button:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

/* 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;
}

.sffc-shortlist-item .sffc-shortlist-content {
    flex: 1;
    padding-right: 10px;
}

.sffc-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(201, 169, 97, 0.3);
    background: rgba(255, 255, 255, 0.8);
    color: var(--muted-brown);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.sffc-shortlist-item:hover .sffc-remove-btn {
    opacity: 1;
}

.sffc-remove-btn:hover {
    background: #E74C3C;
    border-color: #E74C3C;
    color: var(--pure-white);
    transform: scale(1.1);
}

.sffc-shortlist-actions {
    padding: 20px;
    border-top: 1px solid rgba(201, 169, 97, 0.1);
}

.sffc-shortlist-floating.collapsed .sffc-shortlist-actions {
    display: none;
}

.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(201, 169, 97, 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(201, 169, 97, 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(201, 169, 97, 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(201, 169, 97, 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(201, 169, 97, 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(201, 169, 97, 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(201, 169, 97, 0.08), rgba(201, 169, 97, 0.04));
    border: 1px solid rgba(201, 169, 97, 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(201, 169, 97, 0.15);
    border-color: rgba(201, 169, 97, 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(201, 169, 97, 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(201, 169, 97, 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, #FFF9F0 0%, #F5E6D3 100%);
    border-color: rgba(201, 169, 97, 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(201, 169, 97, 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(201, 169, 97, 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(201, 169, 97, 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, #FFF9F0 0%, #F5E6D3 100%);
    border: 2px solid rgba(201, 169, 97, 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%, #C9A961 100%);
    border-color: #D4AF37;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(212, 175, 55, 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) {
    .sffc-shortlist-floating {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 40vh;
    }
    
    .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(201, 169, 97, 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(201, 169, 97, 0.05), rgba(201, 169, 97, 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(201, 169, 97, 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(201, 169, 97, 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(201, 169, 97, 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));
}