/* Frontend Styles */

/* Custom file input translation (French only) */
input.dwc-file-hidden {
    display: none !important;
}
label.dwc-file-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #000 !important;
    height: auto !important;
    background: transparent !important;
    color: #000;
    border: 1px solid #888;
    border-radius: 0px !important;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    vertical-align: middle;
    margin-right: 6px;
}
label.dwc-file-btn:hover {
    background: #ddd;
}
.dwc-file-label {
    font-size: 16px !important;
    font-family: inherit;
    color: #555;
    vertical-align: middle;
}
.dwc-careers-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dwc-jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dwc-jobs-heading {
    font-size: 1.8em;
    font-weight: 600;
    margin: 0;
    color: #000;
}

.dwc-submit-resume-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 0.95em;
}

.dwc-submit-resume-link:hover {
    text-decoration: underline;
}

.dwc-jobs-list {
    display: block !important;
    margin-bottom: 30px;
    width: 80%;
    grid-template-columns: none !important;
    flex-direction: column !important;
}

/* One item per row layout */
.dwc-jobs-list .dwc-job-item {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 4px;
    box-sizing: border-box;
    float: none !important;
    clear: both !important;
}

.dwc-job-item:last-child {
    margin-bottom: 0;
}

.dwc-job-filters {
    margin-bottom: 20px;
}

.dwc-job-filters .dwc-careers-filters {
    margin-bottom: 0 !important;
}

/* Simple loading state */
#dwc-jobs-list.dwc-loading {
    opacity: 0.6;
    pointer-events: none;
}

.dwc-job-title {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.dwc-job-title a {
    color: #0073aa;
    text-decoration: none;
}

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

.dwc-job-description {
    margin-bottom: 15px;
    color: #000;
    line-height: 1.6;
    font-size: 0.95em;
}

.dwc-job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.9em;
    font-weight: 600;
    color: #000;
}

.dwc-hiring-entity-location {
    flex: 1;
}

.dwc-job-id {
    color: #000;
    font-weight: 600;
}

.dwc-no-jobs {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.dwc-careers-filters {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.dwc-careers-filter-form {
    display: flex !important;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0 0 15px;
}

.dwc-search-box {
    flex: 1;
    min-width: 250px;
}

.dwc-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.dwc-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dwc-filter-select {
    padding: 12px 16px;
    border: 2px solid #000 !important;
    border-radius: 4px;
    font-size: 14px;
    min-width: 180px;
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
    width: auto !important;
    max-width: 45vw;
}

.dwc-select-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
}

.dwc-select-wrap .dwc-filter-select {
    padding-right: 44px; /* space for caret */
    position: relative;
    z-index: 1;
}

.dwc-select-wrap .dwc-select-caret {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
    color: #000;
    z-index: 2;
}

@media (max-width: 600px) {
    .dwc-careers-filter-form {
        flex-wrap: wrap;
    }
    .dwc-filter-select {
        width: 100%;
        min-width: 0;
    }
}


.dwc-job-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.dwc-job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dwc-job-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
}

.dwc-job-title a {
    color: #333;
    text-decoration: none;
}

.dwc-job-title a:hover {
    color: #0073aa;
}

.dwc-job-location,
.dwc-job-department {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.dwc-icon {
    margin-right: 5px;
}

.dwc-job-excerpt {
    margin: 15px 0;
    color: #555;
    line-height: 1.6;
}

.dwc-job-actions {
    margin-top: 15px;
}

.dwc-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.dwc-button-primary {
    background-color: #0073aa;
    color: #fff;
}

.dwc-button-primary:hover {
    background-color: #005a87;
    color: #fff;
}

.dwc-no-jobs {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

.dwc-error {
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    margin: 20px 0;
}

/* Job Detail Page */
.dwc-job-detail {
    margin: 0 auto !important;
    max-width: 800px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.dwc-job-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.dwc-job-header .dwc-job-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.dwc-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.dwc-meta-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.dwc-job-content {
    margin-bottom: 40px;
}

.dwc-job-description,
.dwc-job-requirements,
.dwc-job-benefits {
    margin-bottom: 30px;
}

.dwc-job-description h3,
.dwc-job-requirements h3,
.dwc-job-benefits h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.dwc-job-description p,
.dwc-job-requirements p,
.dwc-job-benefits p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    font-size: 16px;
}

.dwc-job-description p em {
    font-size: 16px;
    font-weight: bold;
}

.dwc-job-description p strong {
    font-size: 18px;
    font-weight: bold;
}


.dwc-job-apply {
    background-color: #f9f9f9;
    padding: 30px 20px;
    width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
}

.dwc-job-apply-inner {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.dwc-job-apply h2 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.dwc-job-apply h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.dwc-pagination {
    text-align: center;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .dwc-careers-filters {
        flex-direction: column;
    }
    
    .dwc-search-box,
    .dwc-filter-select {
        width: 100%;
    }
    
    .dwc-jobs-list {
        display: block;
    }
    
    .dwc-job-meta {
        flex-direction: column;
        gap: 10px;
    }
}
