/**
 * Lyceum Careers Styling
 * Custom styling for Zoho Recruit API integration
 */

.lyceum-careers-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: "ibm-plex-sans", Sans-serif;
}

/* Filters Section */
.lyceum-careers-filters {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 20px;
    margin-bottom: 30px;
}

.lyceum-careers-search {
    margin-bottom: 15px;
}

.lyceum-careers-search input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.lyceum-careers-search input[type="text"]:focus {
    outline: none;
    border-color: #bd1d23;
    box-shadow: 0 0 0 2px rgba(189, 29, 35, 0.1);
}

.lyceum-careers-filter-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
}

.lyceum-careers-filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    min-width: 150px;
    font-size: 14px;
}

#lyceum-clear-filters {
    background: #2b2e34;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#lyceum-clear-filters:hover {
    background: #650f14;
}

/* Jobs Grid/List Layout */
.lyceum-careers-jobs {
    display: grid;
    gap: 20px;
}

.lyceum-careers-jobs.grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.lyceum-careers-jobs.list {
    grid-template-columns: 1fr;
}

/* Job Cards */
.lyceum-job-card {
    background: white;
    border: 1px solid #e9ecef;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.lyceum-job-card.hidden {
    display: none;
}

/* Job Title */
.job-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.job-title a {
    color: #2b2e34;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Job Meta Information */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.job-meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #f1f3f4;
    color: #5f6368;
    font-weight: 500;
}

.job-department {
    background: rgba(0, 149, 172, 0.1) !important;
    color: #0095ac !important;
}

.job-location {
    background: rgba(101, 15, 20, 0.1) !important;
    color: #650f14 !important;
}

.job-type {
    background: rgba(189, 29, 35, 0.1) !important;
    color: #bd1d23 !important;
}

/* Job Date */
.job-date {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 12px;
}

/* Job Excerpt */
.job-excerpt {
    color: #495057;
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Job Actions */
.job-actions {
    text-align: right;
}

.job-apply-btn {
    display: inline-block;
    background: #bd1d23;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    border: 2px solid #bd1d23;
    transition: all 0.3s ease;
}

.job-apply-btn:hover {
    background: white;
    color: #bd1d23;
    text-decoration: none;
    border: 2px solid #bd1d23;
}

/* No Results */
.lyceum-careers-no-results,
.lyceum-careers-no-jobs {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* Loading State */
.lyceum-careers-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.lyceum-careers-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #bd1d23;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .lyceum-careers-filter-group {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .lyceum-careers-container {
        padding: 15px;
    }
    
    .lyceum-careers-filters {
        padding: 15px;
    }
    
    .lyceum-careers-filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .lyceum-careers-filter-group select {
        min-width: auto;
        width: 100%;
    }
    
    .lyceum-careers-jobs.grid {
        grid-template-columns: 1fr;
    }
    
    .lyceum-job-card {
        padding: 20px;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .job-meta span {
        align-self: flex-start;
    }
    
    .job-actions {
        text-align: center;
    }
    
    .job-apply-btn {
        display: block;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .lyceum-careers-container {
        padding: 10px;
    }
    
    .lyceum-careers-filters {
        padding: 12px;
    }
    
    .lyceum-job-card {
        padding: 16px;
    }
    
    .job-title {
        font-size: 16px;
    }
    
    .lyceum-careers-search input[type="text"] {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .lyceum-job-card {
        border: 2px solid #000;
    }
    
    .job-apply-btn {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .lyceum-job-card,
    .job-apply-btn,
    .lyceum-careers-search input[type="text"] {
        transition: none;
    }
    
    .lyceum-careers-loading::after {
        animation: none;
    }
}

/* Print styles */
@media print {
    .lyceum-careers-filters {
        display: none;
    }
    
    .lyceum-job-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .job-apply-btn {
        background: transparent;
        color: #000;
        border: 1px solid #000;
    }
}