/* ===== JOB MATCHING FEATURE STYLES ===== */
/* Matches existing design system */

/* Homepage Section - Match existing section styling */
.job-matching-section {
    padding: 48px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 32px 0;
}

.job-matching-content {
    max-width: 1010px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}

.job-matching-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.2;
}

.job-matching-content p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.job-matching-content .btn-primary {
    background: linear-gradient(135deg, #06befc 0%, #05a8d8 100%);
    color: white !important;
    border: none;
    box-shadow: 0 4px 12px rgba(6, 190, 252, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.job-matching-content .btn-primary:hover {
    background: linear-gradient(135deg, #05a8d8 0%, #0488c4 100%);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(6, 190, 252, 0.4);
    text-decoration: none;
}

/* Category Pills - Match existing button/pill styling */
.job-matching-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.job-matching-category-pill {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    background: white;
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.job-matching-category-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.job-matching-category-pill:hover::before {
    left: 100%;
}

.job-matching-category-pill:hover {
    background: #f8f9fa;
    border-color: #06befc;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 190, 252, 0.2);
    text-decoration: none;
}

.job-matching-category-pill.active {
    background: linear-gradient(135deg, #06befc 0%, #05a3d9 100%);
    border-color: #06befc;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 190, 252, 0.4);
}

.job-matching-category-pill.active:hover {
    background: linear-gradient(135deg, #05a3d9 0%, #0488c4 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 190, 252, 0.5);
}

/* Position Cards - Match existing card styling */
.job-matching-positions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.job-matching-position-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.job-matching-position-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #06befc;
}

.job-matching-position-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.job-matching-position-card .position-location {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.job-matching-position-card .position-description {
    font-size: 0.875rem;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-matching-position-card .position-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

/* Buttons - Use existing button classes */
.position-card-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.position-card-btn.btn-primary {
    background: linear-gradient(135deg, #06befc 0%, #05a8d8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(6, 190, 252, 0.3);
}

.position-card-btn.btn-primary:hover {
    background: linear-gradient(135deg, #05a8d8 0%, #0488c4 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(6, 190, 252, 0.4);
    color: white;
    text-decoration: none;
}

.position-card-btn.btn-secondary {
    background: #ffffff;
    color: #6c757d;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.position-card-btn.btn-secondary:hover {
    border-color: #06befc;
    color: #06befc;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(6, 190, 252, 0.2);
    text-decoration: none;
}

/* Modal - Match existing modal styling */
.job-matching-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.job-matching-modal.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-body h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    font-size: 0.875rem;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-body ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.875rem;
    color: #495057;
    line-height: 1.6;
}

.modal-body ul li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #06befc;
    font-weight: bold;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Forms - Match existing form styling */
.job-matching-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #06befc;
    box-shadow: 0 0 0 3px rgba(6, 190, 252, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #d1d5db;
    background: #f9fafb;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #06befc;
    background: #f0f9ff;
}

.form-group .file-info {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-submit {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #06befc 0%, #05a8d8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #05a8d8 0%, #0488c4 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 190, 252, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Responsive - Match existing breakpoints */
@media (max-width: 768px) {
    .job-matching-section {
        padding: 32px 0;
        margin: 24px 0;
    }

    .job-matching-content h2 {
        font-size: 1.5rem;
    }

    .job-matching-content p {
        font-size: 0.9rem;
    }

    .job-matching-positions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .job-matching-categories {
        gap: 0.5rem;
    }

    .job-matching-category-pill {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .modal-content {
        padding: 1.5rem;
        max-height: 95vh;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .position-card-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }

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

    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .job-matching-content {
        padding: 0 12px;
    }

    .job-matching-content h2 {
        font-size: 1.25rem;
    }

    .job-matching-category-pill {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .modal-content {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* No positions message */
.no-positions {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.no-positions p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}
