/**
 * Archive Styles for Equita Talent Jobs
 * 
 * @package EquitaTalentJobs
 */

.equita-jobs-archive {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.equita-jobs-archive .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.page-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
}

.page-description {
    font-size: 1.2em;
    margin: 0;
    opacity: 0.9;
}

/* Navigation */
.archive-navigation {
    margin-bottom: 30px;
    text-align: center;
}

.archive-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.archive-navigation li {
    margin: 0;
}

.archive-navigation a {
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.archive-navigation li.current a,
.archive-navigation a:hover {
    background: #0073aa;
    color: white;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.job-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.job-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.job-content {
    padding: 30px;
}

/* Job Header */
.job-header {
    margin-bottom: 20px;
}

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

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

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

/* Job Meta */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9em;
    color: #6c757d;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #0073aa;
}

.job-status {
    color: #ffb900;
    font-weight: 500;
}

.job-status .dashicons {
    color: #ffb900;
}

/* Job Excerpt */
.job-excerpt {
    margin-bottom: 25px;
    line-height: 1.7;
    color: #495057;
    font-size: 0.95em;
}

/* Job Footer */
.job-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.job-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 2px solid #0073aa;
    border-radius: 6px;
}

.job-link:hover {
    background: #0073aa;
    color: white;
    transform: translateX(4px);
}

/* Past Jobs Specific Styles */
.equita-jobs-past .job-item {
    opacity: 0.85;
    border-left: 4px solid #ffb900;
}

.equita-jobs-past .job-item:hover {
    opacity: 1;
}

.equita-jobs-past .job-title a {
    color: #6c757d;
}

.equita-jobs-past .job-title a:hover {
    color: #0073aa;
}

/* No Jobs State */
.no-jobs {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.no-jobs h2 {
    color: #6c757d;
    margin-bottom: 15px;
    font-weight: 300;
}

.no-jobs p {
    color: #adb5bd;
    font-size: 1.1em;
    margin: 0;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #0073aa;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-title {
        font-size: 2em;
    }
    
    .job-content {
        padding: 20px;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .archive-navigation ul {
        flex-direction: column;
        width: 100%;
    }
    
    .archive-navigation a {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .equita-jobs-archive .container {
        padding: 0 15px;
    }
    
    .page-header {
        padding: 30px 20px;
    }
    
    .page-title {
        font-size: 1.8em;
    }
    
    .page-description {
        font-size: 1em;
    }
    
    .job-content {
        padding: 15px;
    }
    
    .job-title {
        font-size: 1.2em;
    }
}

/* Loading States */
.job-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.job-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility */
.job-item:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.job-link:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .archive-navigation,
    .job-link {
        display: none;
    }
    
    .job-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .page-header {
        background: none;
        color: #000;
    }
}
