/**
 * Profile Settings Modal Styles
 * Settings interface for managing career profile and match threshold
 */

/* Prevent body scroll when modal open */
body.sffc-modal-open {
    overflow: hidden;
}

/* =====================================================
   OVERLAY
   ===================================================== */
.sffc-profile-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.sffc-profile-settings-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   MODAL CONTAINER
   ===================================================== */
.sffc-profile-settings-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.sffc-profile-settings-overlay.active .sffc-profile-settings-modal {
    transform: translateY(0) scale(1);
}

/* =====================================================
   HEADER
   ===================================================== */
.sffc-ps-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.sffc-ps-title-section {
    flex: 1;
}

.sffc-ps-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.sffc-ps-completion {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sffc-ps-completion-bar {
    width: 100px;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
}

.sffc-ps-completion-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #34D399);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.sffc-ps-completion-text {
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 500;
}

.sffc-ps-close {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #9CA3AF;
    transition: color 0.2s ease;
    margin-left: 1rem;
}

.sffc-ps-close:hover {
    color: #374151;
}

/* =====================================================
   CONTENT
   ===================================================== */
.sffc-ps-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.sffc-ps-section {
    margin-bottom: 1.5rem;
}

.sffc-ps-section:last-child {
    margin-bottom: 0;
}

.sffc-ps-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a3028;
    margin: 0 0 0.5rem 0;
}

.sffc-ps-section-title svg {
    color: #6B7280;
}

.sffc-ps-section-desc {
    font-size: 0.8125rem;
    color: #6B7280;
    margin: 0 0 1rem 0;
}

/* =====================================================
   THRESHOLD CONTROL
   ===================================================== */
.sffc-ps-threshold-section {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.sffc-ps-threshold-control {
    margin-top: 0.75rem;
}

.sffc-ps-threshold-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #3B82F6 0%, #3B82F6 40%, #E5E7EB 40%, #E5E7EB 100%);
    outline: none;
    cursor: pointer;
}

.sffc-ps-threshold-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 3px solid #3B82F6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease;
}

.sffc-ps-threshold-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.sffc-ps-threshold-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: 3px solid #3B82F6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sffc-ps-threshold-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6B7280;
}

.sffc-ps-threshold-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a3028;
}

/* =====================================================
   FORM FIELDS
   ===================================================== */
.sffc-ps-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.sffc-ps-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.sffc-ps-field:first-child {
    grid-column: 1 / -1;
}

.sffc-ps-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
}

.sffc-ps-label .required {
    color: #EF4444;
    margin-left: 0.125rem;
}

.sffc-ps-input,
.sffc-ps-select {
    padding: 0.625rem 0.875rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #111827;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sffc-ps-input:focus,
.sffc-ps-select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sffc-ps-input::placeholder {
    color: #9CA3AF;
}

.sffc-ps-select {
    cursor: pointer;
}

/* =====================================================
   SKILLS DISPLAY
   ===================================================== */
.sffc-ps-skills-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    min-height: 2rem;
}

.sffc-ps-skill-tag {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #374151;
}

.sffc-ps-no-skills {
    font-size: 0.8125rem;
    color: #9CA3AF;
    font-style: italic;
    margin: 0;
}

.sffc-ps-edit-skills-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: 1px dashed #D1D5DB;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-ps-edit-skills-btn:hover {
    border-color: #3B82F6;
    color: #3B82F6;
    background: #F0F9FF;
}

/* =====================================================
   FOOTER
   ===================================================== */
.sffc-ps-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid #E5E7EB;
    background: #F9FAFB;
    flex-shrink: 0;
}

.sffc-ps-btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1a3028 0%, #2d4a3e 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-ps-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 48, 40, 0.3);
}

.sffc-ps-btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: white;
    color: #6B7280;
    border: 1px solid #E5E7EB;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sffc-ps-btn-secondary:hover {
    background: #F9FAFB;
    color: #374151;
    border-color: #D1D5DB;
}

/* =====================================================
   TOAST NOTIFICATION
   ===================================================== */
.sffc-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #1a3028;
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999999;
}

.sffc-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.sffc-toast-success svg {
    color: #34D399;
}

/* =====================================================
   PROFILE INDICATOR (Job Board Header)
   ===================================================== */
.sffc-profile-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.sffc-profile-indicator:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sffc-profile-indicator-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3028 0%, #2d4a3e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.sffc-profile-indicator-info {
    display: flex;
    flex-direction: column;
}

.sffc-profile-indicator-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
}

.sffc-profile-indicator-threshold {
    font-size: 0.6875rem;
    color: #6B7280;
}

.sffc-profile-indicator-threshold span {
    color: #3B82F6;
    font-weight: 600;
}

.sffc-profile-indicator-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #3B82F6;
    font-size: 0.8125rem;
    font-weight: 500;
}

.sffc-profile-indicator-cta svg {
    width: 14px;
    height: 14px;
}

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */
@media (max-width: 640px) {
    .sffc-profile-settings-modal {
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: none;
        transform: translateY(100%);
    }

    .sffc-profile-settings-overlay.active .sffc-profile-settings-modal {
        transform: translateY(0);
    }

    .sffc-ps-header {
        padding: 1.25rem;
    }

    .sffc-ps-content {
        padding: 1.25rem;
    }

    .sffc-ps-fields {
        grid-template-columns: 1fr;
    }

    .sffc-ps-field:first-child {
        grid-column: 1;
    }

    .sffc-ps-footer {
        flex-direction: column-reverse;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
    }

    .sffc-ps-btn-primary,
    .sffc-ps-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .sffc-profile-indicator {
        padding: 0.375rem 0.75rem;
    }

    .sffc-profile-indicator-info {
        display: none;
    }
}
