/**
 * Rwaves Jobs - Frontend Styles
 */

/* ===== Jobs Archive Page ===== */
.rwaves-jobs-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.rwaves-jobs-archive .page-header {
    text-align: center;
    margin-bottom: 50px;
}

.rwaves-jobs-archive .page-title {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.rwaves-jobs-archive .page-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Filters ===== */
.rwaves-jobs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.job-filter-select,
.job-search-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.job-filter-select:focus,
.job-search-input:focus {
    outline: none;
    border-color: #007bff;
}

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

.job-search-input {
    width: 100%;
}

/* ===== Jobs Grid ===== */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* ===== Job Card ===== */
.job-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.job-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: #007bff;
}

.job-card-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.job-date,
.job-role {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.job-date strong,
.job-role strong {
    color: #333;
}

.job-card-body {
    flex: 1;
}

.job-title {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.job-subtitle {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}

.job-deadline {
    font-size: 0.9rem;
    color: #dc3545;
    font-weight: 500;
    margin-top: 10px;
}

.job-card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-view-details {
    display: inline-block;
    padding: 12px 25px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-view-details:hover {
    background: #0056b3;
    color: #fff;
    text-decoration: none;
}

/* ===== No Jobs Found ===== */
.no-jobs-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.no-jobs-found p {
    font-size: 1.1rem;
    color: #666;
}

/* ===== Single Job Page ===== */
.rwaves-job-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.rwaves-single-job {
    background: #fff;
}

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

.job-header .job-title {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 700;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-item {
    font-size: 1rem;
    color: #555;
}

.meta-item strong {
    color: #333;
}

.meta-item.deadline {
    color: #dc3545;
}

/* ===== Job Sections ===== */
.job-section {
    margin-bottom: 35px;
}

.job-section h2 {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-content {
    color: #444;
    line-height: 1.8;
}

.section-content p {
    margin-bottom: 15px;
}

.section-content ul,
.section-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.section-content li {
    margin-bottom: 8px;
}

/* ===== How to Apply Section ===== */
.how-to-apply {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
}

.how-to-apply h2 {
    border-bottom: none;
    margin-bottom: 20px;
}

.how-to-apply a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.how-to-apply a:hover {
    text-decoration: underline;
}

/* ===== Job Footer ===== */
.job-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    text-align: center;
}

.company-tagline {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #545b62;
    color: #fff;
    text-decoration: none;
}

/* ===== Expired Notice ===== */
.job-expired-notice {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.job-expired-notice h2 {
    font-size: 2rem;
    color: #dc3545;
    margin-bottom: 15px;
}

.job-expired-notice p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination .current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .rwaves-jobs-archive .page-title {
        font-size: 2rem;
    }

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

    .rwaves-jobs-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .job-filter-select,
    .job-search-input {
        width: 100%;
        min-width: auto;
    }

    .job-meta {
        flex-direction: column;
        gap: 10px;
    }

    .job-header .job-title {
        font-size: 1.5rem;
    }

    .how-to-apply {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .rwaves-jobs-archive,
    .rwaves-job-container {
        padding: 20px 15px;
    }

    .job-card {
        padding: 20px;
    }

    .btn-view-details {
        width: 100%;
    }
}

/* ===== Animation ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-card {
    animation: fadeIn 0.5s ease forwards;
}

.job-card:nth-child(1) { animation-delay: 0.1s; }
.job-card:nth-child(2) { animation-delay: 0.2s; }
.job-card:nth-child(3) { animation-delay: 0.3s; }
.job-card:nth-child(4) { animation-delay: 0.4s; }
.job-card:nth-child(5) { animation-delay: 0.5s; }
.job-card:nth-child(6) { animation-delay: 0.6s; }
