/* ============================================================
   Job Board Specific Styles - Modern & Premium
   ============================================================ */

/* Page Header */
.jobs-page-header {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(79, 70, 229, 0.05));
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 123, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.05);
}

.jobs-page-title {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0B132B, #007BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.jobs-page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Toggle Switch Styling */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

.toggle-label-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
    background-color: #007BFF;
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Job Cards Grid */
.jobs-grid {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

/* Wellfound Style Row */
.job-row-wellfound {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background-color 0.15s ease;
}

.job-row-wellfound:last-child {
    border-bottom: none;
}

.job-row-wellfound:hover {
    background-color: #fcfcfc;
}

/* Company Logo Placeholder */
.job-company-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #495057;
    flex-shrink: 0;
}

/* Main Content Area */
.job-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Header Row (Title & Meta vs Badges) */
.job-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.job-titles {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.job-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
}

.job-meta-wellfound {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #555;
}

.company-name {
    font-weight: 600;
    color: #333;
}

.dot {
    color: #ccc;
    font-size: 0.7rem;
}

/* Badges */
.match-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.match-badge.excellent { background: #ecfdf5; color: #059669; border: 1px solid #d1fae5; }
.match-badge.good { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.match-badge.fair { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }

/* Skills */
.job-skills-wellfound {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.skill-pill {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #f1f3f5;
    color: #495057;
    border: 1px solid transparent;
}

.skill-pill.skill-matched {
    background: #ecfdf5;
    color: #059669;
    border-color: #d1fae5;
}

.skill-pill.skill-missing {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fee2e2;
}

/* Footer (Time vs Actions) */
.job-footer-wellfound {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.job-time-source {
    font-size: 0.75rem;
    color: #888;
}

.job-action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Micro Buttons */
.btn-micro {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-micro-primary {
    background: #000;
    color: #fff;
}
.btn-micro-primary:hover {
    background: #333;
}

.btn-micro-secondary {
    background: #fff;
    color: #333;
    border-color: #ddd;
}
.btn-micro-secondary:hover {
    background: #f8f9fa;
    border-color: #bbb;
}

.btn-micro-disabled {
    background: #f1f3f5;
    color: #adb5bd;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 640px) {
    .job-row-wellfound {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 1rem;
    }
    
    .job-company-logo {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .job-header-row {
        flex-direction: column;
    }
    
    .job-right-actions {
        align-self: flex-start;
    }
    
    .job-footer-wellfound {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-action-buttons {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .btn-micro {
        flex: 1;
        text-align: center;
    }
}

/* Filter Pills */
.filter-pill {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}
