/* Jobs Page Styles - Updated with Side Panel */

.jobs-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.jobs-main {
    min-width: 0; /* Prevents grid overflow */
}

.jobs-sidebar {
    background: var(--pure-white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-family: 'Anton', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--pure-black);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: var(--medium-gray);
}

.sidebar-item:hover {
    background: rgba(229, 9, 20, 0.05);
    color: var(--revolution-red);
}

.sidebar-item.active {
    background: rgba(229, 9, 20, 0.1);
    color: var(--revolution-red);
    font-weight: 600;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile Completion Circle */
.profile-completion {
    width: 40px;
    height: 40px;
    position: relative;
}

.completion-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.quadrant {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--success-green);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.quadrant.completed {
    opacity: 1;
}

.quadrant-1 { top: 0; left: 0; border-radius: 100% 0 0 0; }
.quadrant-2 { top: 0; right: 0; border-radius: 0 100% 0 0; }
.quadrant-3 { bottom: 0; left: 0; border-radius: 0 0 0 100%; }
.quadrant-4 { bottom: 0; right: 0; border-radius: 0 0 100% 0; }

.completion-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--revolution-red);
}

.jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.jobs-title {
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--pure-black);
}

.jobs-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    color: var(--revolution-red);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jobs-filters {
    background: var(--pure-white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.filter-btn {
    background: var(--revolution-red);
    color: var(--pure-white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--dark-red);
    transform: translateY(-1px);
}

.jobs-grid {
    display: grid;
    gap: 1.5rem;
}

.job-card {
    background: var(--pure-white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.job-card:hover {
    border-color: var(--revolution-red);
    box-shadow: 0 8px 30px rgba(229, 9, 20, 0.1);
    transform: translateY(-2px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.job-info {
    flex: 1;
}

.job-title-main {
    font-family: 'Anton', sans-serif;
    font-size: 1.3rem;
    color: var(--pure-black);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.job-company {
    color: var(--revolution-red);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.job-location {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.job-badge {
    background: var(--success-green);
    color: var(--pure-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-match {
    background: rgba(229, 9, 20, 0.05);
    border-left: 4px solid var(--revolution-red);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.match-title {
    font-weight: 700;
    color: var(--revolution-red);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.match-reason {
    color: var(--medium-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

.job-description {
    color: var(--pure-black);
    line-height: 1.6;
    margin: 1.5rem 0;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.job-tag {
    background: var(--light-gray);
    color: var(--medium-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.job-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.apply-btn {
    background: var(--revolution-red);
    color: var(--pure-white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.apply-btn:hover {
    background: var(--dark-red);
    transform: translateY(-1px);
}

.save-job-btn {
    background: var(--light-gray);
    color: var(--medium-gray);
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-job-btn:hover {
    background: var(--medium-gray);
    color: var(--pure-white);
}

.profile-completion-banner {
    background: linear-gradient(135deg, var(--revolution-red), var(--dark-red));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.banner-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.banner-text {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.banner-btn {
    background: var(--pure-white);
    color: var(--revolution-red);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Job Application Modal */
.job-application-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 2rem;
}

.job-application-modal.active {
    display: flex;
}

.application-content {
    background: var(--pure-white);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.application-header {
    background: linear-gradient(135deg, var(--revolution-red), var(--dark-red));
    color: white;
    padding: 2rem;
    border-radius: 12px 12px 0 0;
}

.application-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.application-company {
    font-size: 1.1rem;
    opacity: 0.9;
}

.close-application {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.close-application:hover {
    background: rgba(255, 255, 255, 0.3);
}

.application-form {
    padding: 2rem;
}

.application-section {
    margin-bottom: 2rem;
}

.section-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--pure-black);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-gray);
    padding-bottom: 0.5rem;
}

.file-upload-area {
    border: 2px dashed var(--border-gray);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 1rem;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--revolution-red);
    background: rgba(229, 9, 20, 0.05);
}

.upload-icon {
    font-size: 2rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.upload-text {
    color: var(--medium-gray);
}

.uploaded-file {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 6px;
    margin-top: 0.5rem;
}

.file-name {
    flex: 1;
    color: var(--success-green);
    font-weight: 600;
}

.remove-file {
    background: none;
    border: none;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 0.25rem;
}

.application-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 2rem;
    border-top: 1px solid var(--border-gray);
}

/* Responsive */
@media (max-width: 1200px) {
    .jobs-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .jobs-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .jobs-header {
        flex-direction: column;
        text-align: center;
    }

    .jobs-stats {
        justify-content: center;
    }

    .filters-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-actions {
        flex-direction: column;
    }
    
    .application-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .application-form {
        padding: 1rem;
    }
}