/* Job Detail Page Styles */

/* Company Header */
.job-company-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.job-company-header .company-logo {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.job-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.job-company-name {
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: 0;
    font-weight: 500;
}

/* Job Attributes Grid */
.job-attributes {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.job-attributes .row {
    margin-bottom: 0.75rem;
}

.job-attributes .row:last-child {
    margin-bottom: 0;
}

.job-attribute-label {
    font-weight: 700;
    color: #495057;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-attribute-value {
    color: #1a1a1a;
    font-weight: 400;
}

.job-attribute-value .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Job Image */
.job-image {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    max-width: 100%;
    height: auto;
}

/* Job Description */
.job-description {
    color: #495057;
    line-height: 1.7;
    font-size: 1rem;
}

.job-description h1,
.job-description h2,
.job-description h3,
.job-description h4,
.job-description h5,
.job-description h6 {
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.job-description h1 { font-size: 1.75rem; }
.job-description h2 { font-size: 1.5rem; }
.job-description h3 { font-size: 1.25rem; }
.job-description h4 { font-size: 1.125rem; }

.job-description p {
    margin-bottom: 1rem;
}

.job-description ul,
.job-description ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.job-description li {
    margin-bottom: 0.5rem;
}

.job-description strong,
.job-description b {
    font-weight: 600;
    color: #1a1a1a;
}

.job-description a {
    color: #0d6efd;
    text-decoration: none;
}

.job-description a:hover {
    text-decoration: underline;
}

/* Sidebar Styles */
.job-sidebar {
    padding-left: 2rem;
}

/* Apply Card - Sticky on Desktop */
.apply-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.apply-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.apply-card .card-header h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

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

.apply-card .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.apply-card .form-control,
.apply-card .form-select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.apply-card .form-control:focus,
.apply-card .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.apply-card .form-check {
    margin-bottom: 1rem;
}

.apply-card .form-check-input {
    margin-top: 0.125rem;
}

.apply-card .form-check-label {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #495057;
}

.apply-card .btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
    font-weight: 600;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

.apply-card .btn-primary:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Consent Disclaimer */
.consent-disclaimer {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Related Jobs */
.related-jobs {
    margin-top: 3rem;
}

.related-jobs h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.related-job-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-job-item:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.related-job-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.related-job-meta {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.related-job-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.related-job-highlights .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-weight: 500;
}

/* Applications Closed State */
.applications-closed {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
}

.applications-closed h4 {
    color: #6c757d;
    margin-bottom: 1rem;
}

.applications-closed .btn {
    margin-top: 1rem;
}

/* Desktop Sticky Sidebar */
@media (min-width: 992px) {
    .job-sidebar-sticky {
        position: sticky;
        top: 1.5rem;
        max-height: calc(100vh - 3rem);
        overflow-y: auto;
    }
    
    .job-main-content {
        padding-right: 2rem;
    }
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .job-sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .job-title {
        font-size: 1.75rem;
    }
    
    .job-attributes {
        padding: 1.25rem;
    }
    
    .apply-card .card-body {
        padding: 1.25rem;
    }
    
    .related-jobs {
        margin-top: 2rem;
    }
}

@media (max-width: 575.98px) {
    .job-title {
        font-size: 1.5rem;
    }
    
    .job-company-header .company-logo {
        max-width: 100px;
        max-height: 50px;
    }
    
    .job-attributes .job-attribute-label,
    .job-attributes .job-attribute-value {
        font-size: 0.875rem;
    }
    
    .apply-card .card-header {
        padding: 1rem 1.25rem;
    }
    
    .apply-card .card-body {
        padding: 1rem 1.25rem;
    }
    
    .related-job-item {
        padding: 1rem;
    }
}

/* Loading States */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Focus States for Accessibility */
.apply-card .form-control:focus,
.apply-card .form-select:focus,
.apply-card .form-check-input:focus,
.apply-card .btn:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.related-job-item:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .apply-card,
    .related-jobs {
        display: none;
    }
    
    .job-sidebar {
        display: none;
    }
    
    .job-main-content {
        width: 100% !important;
        max-width: none !important;
    }
}
