/**
 * Career Page Styles
 * @package Engineering_Shield
 */

/* Hero */
.career-hero {
    background-color: var(--dark-bg);
    background-size: cover;
    background-position: center;
    padding-top: 10rem;
    padding-bottom: 6rem;
    color: white;
    position: relative;
}

.career-hero h1 {
    color: #fff !important;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.career-hero .lead {
    color: rgba(255, 255, 255, 0.72) !important;
    text-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.career-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
}

.career-hero .kicker {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    margin-bottom: 0.5rem;
    display: block;
}

/* Benefits Section */
.career-benefits {
    background: #f8f9fa;
    padding: 5rem 0;
}

.benefit-card {
    background: white;
    border: 1px solid var(--border-tech, #e0e6ed);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.benefit-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #4d8dff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.benefit-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Jobs Section */
.career-jobs {
    padding: 5rem 0;
    background: white;
}

.career-jobs h2 {
    font-weight: 700;
    margin-bottom: 2rem;
}

.job-card {
    background: white;
    border: 1px solid var(--border-tech, #e0e6ed);
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.job-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transform: translateX(5px);
}

.job-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.job-admin-debug {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    color: #6c757d;
}

.job-admin-debug span {
    background: #f1f3f5;
    border: 1px solid #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.job-meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.job-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Rich text formatting for Odoo HTML */
.job-description > :last-child {
    margin-bottom: 0;
}

.job-description p {
    margin: 0 0 0.85rem;
}

.job-description ul,
.job-description ol {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.job-description li {
    margin: 0.35rem 0;
}

.job-description h1,
.job-description h2,
.job-description h3,
.job-description h4,
.job-description h5,
.job-description h6 {
    color: #111827;
    font-weight: 800;
    margin: 1.15rem 0 0.65rem;
    line-height: 1.25;
}

.job-description a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.job-description a:hover {
    text-decoration-thickness: 2px;
}

/* Breadcrumbs (job detail) */
.eshield-breadcrumbs {
    margin-bottom: 0.75rem;
}

.eshield-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.eshield-breadcrumbs li::after {
    content: '/';
    margin-left: 0.5rem;
    color: #adb5bd;
}

.eshield-breadcrumbs li:last-child::after {
    content: '';
    margin: 0;
}

.eshield-breadcrumbs a {
    color: #6c757d;
    text-decoration: none;
}

.eshield-breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.job-badge {
    display: inline-block;
    background: #e8f0fe;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Empty State */
.career-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.career-empty-icon {
    width: 80px;
    height: 80px;
    background: #e8f0fe;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.career-empty-icon svg {
    width: 40px;
    height: 40px;
}

.career-empty h4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

/* CTA Section */
.career-cta {
    background: var(--dark-bg);
    padding: 5rem 0;
    color: white;
}

.career-cta h2 {
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.career-cta p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.career-cta-email {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.career-cta-email:hover {
    color: #4d8dff;
}

.career-cta-email svg {
    width: 28px;
    height: 28px;
}

/* Career Application Form */
.career-form-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2.5rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.career-form-container .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.career-form-container .form-control,
.career-form-container .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    min-height: 48px;
    line-height: 1.2;
    color: white;
    transition: all 0.2s ease;
}

.career-form-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.career-form-container .form-select {
    height: auto;
    padding: 12px 2.6rem 12px 15px;
    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='%23ffffff80' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.career-form-container .form-select option {
    background: var(--dark-bg);
    color: white;
}

.career-form-container .form-control {
    padding: 12px 15px;
}

.career-form-container .form-control:focus,
.career-form-container .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.career-form-container textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Custom file input */
.career-file-wrapper {
    position: relative;
}

.career-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.career-file-label {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.career-file-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: white;
}

.career-file-input:focus + .career-file-label {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

.career-file-name {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--primary-color);
    word-break: break-all;
}

/* Checkbox styling */
.career-form-container .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
}

.career-form-container .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.career-form-container .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
    border-color: var(--primary-color);
}

/* Submit button */
.btn-career-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 30px;
    font-weight: 600;
    border-radius: 4px;
    width: 100%;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-career-submit:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.btn-career-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Message styles */
.career-form-message {
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.career-form-message.text-success {
    background: rgba(40, 167, 69, 0.15);
    color: #4caf50 !important;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.career-form-message.text-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #f44336 !important;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.career-form-message.text-muted {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Border utilities for dark theme */
.career-form-container .border-top.border-secondary {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .career-form-container {
        padding: 1.5rem;
    }
    
    .career-cta {
        padding: 3rem 0;
    }
}

/* Admin alert */
.career-admin-alert {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.career-admin-alert strong {
    color: #664d03;
}
