/* Job Board Page Styles */

/* Page Layout */
.job-board-wrapper {
    background-color: #f8f9fa;
    min-height: calc(100vh - 60px);
    padding: 2rem 0;
}

/* Filter Card */
.filter-card {
    position: sticky;
    top: 20px;
    transition: all 0.3s ease;
    background-color: white;
}

.filter-card:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.05) !important;
}

.filter-card-compact {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.filter-changed {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Search Input */
.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}

.search-input {
    padding-left: 35px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Custom Select */
.custom-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.custom-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Apply Filters Button */
.apply-filters-btn {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #3498db;
    border-color: #3498db;
}

.apply-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Featured Job Cards */
.featured-job-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.featured-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.company-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.job-title-link {
    color: #343a40;
    text-decoration: none;
    transition: color 0.2s ease;
}

.job-title-link:hover {
    color: #3498db;
}

/* Source Badges */
.source-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
}

.source-badge.internal {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.source-badge.external {
    background-color: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
}

.source-badge-sm {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.source-badge-sm.internal {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.source-badge-sm.external {
    background-color: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
}

/* Jobs Count Badge */
.jobs-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    background-color: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

/* Job Cards */
.job-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f5;
    overflow: hidden;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    border-color: #e9ecef;
}

.job-card-body {
    padding: 1.5rem;
}

.job-title {
    color: #343a40;
    font-weight: 600;
}

.company-name {
    color: #6c757d;
}

.job-detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #495057;
}

.posted-time {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Job Action Buttons */
.job-actions {
    display: flex;
    gap: 0.5rem;
}

.job-actions .btn {
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.details-btn:hover, .apply-btn:hover, .share-btn:hover, .save-job-btn:hover {
    transform: translateY(-2px);
}

.apply-btn {
    background-color: #3498db;
    border-color: #3498db;
}

.apply-btn:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Save Job Button */
.save-job-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.save-job-btn.saved {
    color: #ffc107;
    border-color: #ffc107;
}

.save-job-btn.saved:hover {
    background-color: rgba(255, 193, 7, 0.1);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 500px;
    margin: 2rem auto;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #343a40;
}

.empty-state-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Pagination */
.pagination {
    gap: 0.3rem;
}

.pagination .page-link {
    border-radius: 6px;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: #3498db;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    color: white;
}

/* Share Modal */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #f1f3f5;
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

/* Social Sharing Buttons */
#shareLinkedIn {
    color: #0077b5;
    border-color: #0077b5;
}

#shareLinkedIn:hover {
    background-color: #0077b5;
    color: white;
}

#shareTwitter {
    color: #1da1f2;
    border-color: #1da1f2;
}

#shareTwitter:hover {
    background-color: #1da1f2;
    color: white;
}

#shareFacebook {
    color: #4267B2;
    border-color: #4267B2;
}

#shareFacebook:hover {
    background-color: #4267B2;
    color: white;
}

/* Copy URL Input */
#jobUrl {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    font-size: 0.9rem;
}

#copyJobUrl {
    border-color: #dee2e6;
}

#copyJobUrl:hover {
    background-color: #e9ecef;
}

#copyMessage {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    height: 20px;
}

/* Toast Notifications */
.toast-container {
    z-index: 1060;
}

.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.toast-body {
    padding: 0.75rem 1rem;
}

/* Tooltip Styling */
.tooltip {
    font-size: 0.85rem;
}

.tooltip .tooltip-inner {
    background-color: #343a40;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tooltip .tooltip-arrow::before {
    border-top-color: #343a40;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .job-card-body {
        padding: 1rem;
    }
    
    .job-actions {
        margin-top: 1rem;
        margin-left: 0 !important;
        width: 100%;
        justify-content: space-between;
    }
    
    .job-actions .btn {
        flex: 1;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
}

/* Skill-based view styles */
.match-score {
    background-color: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.match-score.high {
    background-color: #d4edda;
    color: #198754;
}
.match-score.medium {
    background-color: #fff3cd;
    color: #856404;
}
.match-score.low {
    background-color: #f8d7da;
    color: #721c24;
}
.view-toggle-btn {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}
.skill-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    margin: 0.25rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    color: #495057;
}
.matched-skills {
    margin-top: 0.5rem;
}
.missing-skills-container {
    margin-top: 0.5rem;
}
.progress {
    height: 0.5rem;
    margin-bottom: 0.5rem;
}
.skill-recommendations {
    margin-top: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.25rem;
}
.recommendation-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}
.recommendation-item:last-child {
    border-bottom: none;
} 