/* ========================================
   CLEVA CAREERS - PUBLIC STYLES
   ======================================== */

/* Container & Layout */
.cleva-careers-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

.cleva-careers-container {
    width: 100%;
}

/* Header */
.cleva-careers-header {
    text-align: center;
    margin-bottom: 50px;
}

.cleva-careers-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.cleva-careers-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters Section */
.cleva-careers-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    align-items: center;
}

.filter-search {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #fff;
}

.search-input:focus {
    outline: none;
    border-color: #008577;
    box-shadow: 0 0 0 3px rgba(0, 133, 119, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
    pointer-events: none;
    z-index: 1;
}

.filter-select {
    position: relative;
    width: 100%;
}

.filter-dropdown {
    width: 100%;
    padding: 12px 35px 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #008577;
    box-shadow: 0 0 0 3px rgba(0, 133, 119, 0.1);
}

.filter-dropdown:hover {
    border-color: #bbb;
}

/* Jobs Grid */
.cleva-careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.job-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #008577;
}

.job-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
}

.job-title a {
    color: inherit;
    text-decoration: none;
}

.job-title a:hover {
    color: #008577;
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.job-meta span {
    font-size: 14px;
    color: #666;
    display: inline-block;
}

.job-category {
    font-weight: 600;
    color: #008577;
}

.job-type {
    color: #555;
}

.job-location {
    color: #777;
}

.job-apply-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #008577;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.job-apply-btn:hover {
    background: #0052a3;
    transform: translateX(5px);
    color: #fff;
}

/* No results */
.no-jobs-found {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    grid-column: 1 / -1;
}

.no-jobs-found p {
    font-size: 18px;
    color: #666;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #008577;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Spontaneous Section */
.spontaneous-section {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #fff;
    margin-top: 50px;
}

.spontaneous-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.spontaneous-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-spontaneous {
    padding: 16px 40px;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-spontaneous:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ========================================
   SPONTANEOUS FORM INLINE
   ======================================== */

.cleva-spontaneous-form-wrapper {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.spontaneous-form-header {
    text-align: center;
    margin-bottom: 35px;
}

.spontaneous-form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.spontaneous-form-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.cleva-spontaneous-inline .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

.cleva-spontaneous-inline .form-group {
    margin-bottom: 20px;
}

/* ========================================
   SEARCH WIDGET SHORTCODE
   ======================================== */

.cleva-careers-search-widget {
    margin: 40px 0;
}

.search-widget-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    text-align: center;
}

/* Make search widget filters stack on mobile */
@media (max-width: 768px) {
    .cleva-spontaneous-inline .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   COMPLETE WIDGET SHORTCODE
   ======================================== */

.cleva-careers-complete-widget {
    margin: 40px 0;
}

.cleva-careers-complete-widget .cleva-careers-filters {
    margin-bottom: 40px;
}

.cleva-careers-complete-widget .cleva-careers-grid {
    margin-bottom: 50px;
}

.shortcode-spontaneous-wrapper {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid var(--cleva-border-light);
}

/* ========================================
   SINGLE JOB PAGE
   ======================================== */

.cleva-job-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.back-link {
    margin-bottom: 30px;
}

.back-link a {
    color: #008577;
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
}

.back-link a:hover {
    text-decoration: underline;
}

.job-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.job-header .job-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.job-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge-category {
    background: #e3f2fd;
    color: #008577;
}

.badge-type {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-location {
    background: #fff3e0;
    color: #e65100;
}

.badge-remote {
    background: #e8f5e9;
    color: #2e7d32;
}

.job-salary {
    font-size: 18px;
    font-weight: 600;
    color: #2e7d32;
}

.job-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.job-main-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.job-section {
    margin-bottom: 30px;
}

.job-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.job-description {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.job-list {
    list-style: none;
    padding: 0;
}

.job-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.job-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #008577;
    font-weight: bold;
    font-size: 18px;
}

/* Application Form */
.job-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.application-box {
    background: #fff;
    border: 2px solid #008577;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,102,204,0.1);
}

.application-box h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.cleva-application-form .form-group {
    margin-bottom: 20px;
}

.cleva-application-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.cleva-application-form .form-control,
.cleva-application-form .form-control-file {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.cleva-application-form .form-control:focus {
    outline: none;
    border-color: #008577;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.cleva-application-form textarea.form-control {
    resize: vertical;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 13px;
    line-height: 1.5;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: #008577;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .cleva-careers-filters {
        grid-template-columns: 1fr 1fr;
    }
    
    .filter-search {
        grid-column: 1 / -1;
    }
    
    .job-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .job-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .cleva-careers-title {
        font-size: 32px;
    }
    
    .cleva-careers-filters {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .cleva-careers-grid {
        grid-template-columns: 1fr;
    }
    
    .job-header .job-title {
        font-size: 28px;
    }
    
    .spontaneous-section {
        padding: 40px 20px;
    }
    
    .spontaneous-section h2 {
        font-size: 24px;
    }
}
