/* Job Details Page Styles */

.loading-container,
.error-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}

.error-content {
    text-align: center;
    max-width: 500px;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-content h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.job-details-container {
    padding: 2rem 0;
    min-height: 60vh;
}

.job-details-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Main Content */
.job-main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.job-header-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.job-header-top {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.company-logo-large {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: var(--background);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.job-header-info {
    flex: 1;
}

.job-header-info h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.company-name {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.job-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-secondary);
}

.job-header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-save,
.btn-share {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-save:hover,
.btn-share:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-save.saved {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.job-section-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.job-section-card h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.content-text {
    color: var(--text-secondary);
    line-height: 1.8;
    /*white-space: pre-wrap;*/
}

.content-text ul,
.content-text ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

/* Sidebar */
.job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.apply-card {
    text-align: center;
    border: 2px solid var(--primary-color);
}

.salary-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.salary-label {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-apply-large {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-apply-large:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-apply-large:disabled {
    background: var(--border);
    cursor: not-allowed;
    transform: none;
}

.applied-status {
    padding: 1rem;
    background: var(--success);
    color: white;
    border-radius: 8px;
    margin-top: 1rem;
}

.applied-status span {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.sidebar-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

.contact-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

.contact-card h3 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.btn-whatsapp {
    width: 100%;
    padding: 0.875rem;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    background: #20ba59;
    transform: translateY(-2px);
}

.btn-whatsapp span {
    font-size: 1.25rem;
}

.report-card {
    background: transparent;
    border: 1px dashed var(--border);
    padding: 1rem;
}

.btn-report {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.btn-report:hover {
    color: var(--error);
}

/* Similar Jobs */
.similar-jobs-section {
    margin-top: 3rem;
}

.similar-jobs-section h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .job-details-layout {
        grid-template-columns: 1fr;
    }
    
    .job-sidebar {
        position: static;
    }
    
    .sidebar-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .job-header-card {
        padding: 1.5rem;
    }
    
    .job-header-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .job-header-info h1 {
        font-size: 1.5rem;
    }
    
    .company-name {
        font-size: 1.1rem;
    }
    
    .job-meta-info {
        justify-content: center;
    }
    
    .job-header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-save,
    .btn-share {
        width: 100%;
        justify-content: center;
    }
    
    .salary-display {
        font-size: 1.5rem;
    }
}