/* Jobs Pages Styles - Consistent with Main Site Branding */

/* Base Styles */
.jobs-page {
    font-family: "Montserrat", sans-serif;
    background: var(--bg-color, #f8fafc);
    color: var(--text-color, #2d3748);
    min-height: 100vh;
}

/* Header Styles */
.jobs-header {
    background: var(--card-bg, #ffffff);
    box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.08));
    border-bottom: 1px solid var(--gray-light, #e2e8f0);
}

.jobs-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.jobs-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.jobs-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color, #2d3748);
    text-decoration: none;
}

.jobs-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.jobs-nav-link {
    color: var(--gray-medium, #a0aec0);
    text-decoration: none;
    transition: var(
        --transition,
        all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    );
}

.jobs-nav-link:hover,
.jobs-nav-link.active {
    color: var(--primary-color, #4a90e2);
}

/* Language Switcher */
.jobs-lang-switcher select {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--gray-light, #e2e8f0);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: var(--card-bg, #ffffff);
    color: var(--text-color, #2d3748);
}

/* Hero Section */
.jobs-hero {
    background: linear-gradient(
        135deg,
        var(--primary-color, #4a90e2) 0%,
        var(--accent-color, #3498db) 100%
    );
    color: white;
    padding: 5rem 0;
}

.jobs-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.jobs-hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    font-family: "Playfair Display", serif;
}

.jobs-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.jobs-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.875rem;
}

.jobs-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Jobs Grid */
.jobs-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.job-card {
    /* background: var(--card-bg, #ffffff); */
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.08));
    transition: var(
        --transition,
        all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    );
    /* border: 1px solid rgba(0, 0, 0, 0.05); */
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.job-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient, linear-gradient(135deg, #4a90e2, #3498db));
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.job-card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color, #2d3748);
    margin-bottom: 1rem;
}

.job-card-meta {
    display: flex;
    align-items: center;
    color: var(--gray-medium, #a0aec0);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.job-type-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.job-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.job-type-full-time {
    background: #d1fae5;
    color: #065f46;
}

.job-type-part-time {
    background: #fef3c7;
    color: #92400e;
}

.job-type-contract {
    background: #e0e7ff;
    color: #3730a3;
}

.experience-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--gray-light, #f3f4f6);
    color: var(--text-dark, #374151);
}

.job-salary {
    color: #059669;
    font-weight: 500;
    font-size: 0.875rem;
}

.job-deadline {
    font-size: 0.875rem;
    color: var(--gray-medium, #a0aec0);
    margin-top: 0.5rem;
}

.job-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color, #4a90e2);
    text-decoration: none;
    font-weight: 500;
    transition: var(
        --transition,
        all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    );
}

.job-card-link:hover {
    color: var(--primary-dark, #357abd);
    transform: translateX(5px);
}

/* No Jobs State */
.no-jobs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    /* background: var(--card-bg, #ffffff); */
    border-radius: 1rem;
    box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.08));
    position: relative;
    overflow: hidden;
    /* border: 1px solid rgba(0, 0, 0, 0.06); */
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.no-jobs::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient, linear-gradient(135deg, #4a90e2, #3498db));
}

.no-jobs i {
    font-size: 3.25rem;
    background: var(--gradient, linear-gradient(135deg, #4a90e2, #3498db));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.no-jobs h3 {
    font-size: 1.375rem;
    color: var(--text-color, #2d3748);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.no-jobs p {
    color: var(--gray-medium, #a0aec0);
    font-size: 0.95rem;
}

.no-jobs .btn {
    display: inline-block;
    margin-top: 1.25rem;
    background: var(--primary-color, #4a90e2);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition, all 0.3s ease);
}

.no-jobs .btn:hover {
    background: var(--primary-dark, #357abd);
}

.no-jobs .btn {
    margin-top: 1.5rem;
}

/* Job Detail Page */
.job-detail-header {
    background: var(--card-bg, #ffffff);
    border-bottom: 1px solid var(--gray-light, #e2e8f0);
    /* padding: 3rem 0; */
}

.job-detail-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.job-detail-info h1 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color, #2d3748);
    margin-bottom: 1rem;
    font-family: "Playfair Display", serif;
}

.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.job-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-medium, #a0aec0);
    font-size: 0.875rem;
}

.job-detail-meta-item i {
    color: var(--primary-color, #4a90e2);
}

.job-detail-actions {
    display: flex;
    gap: 1rem;
}

.apply-btn {
    background: var(
        --gradient,
        linear-gradient(135deg, #667eea 0%, #764ba2 100%)
    );
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(
        --transition,
        all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    );
    border: none;
    cursor: pointer;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Job Content */
.job-content {
    padding: 4rem 0;
}

.job-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.job-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.job-main-content {
    margin-bottom: 3rem;
}

.job-section {
    /* background: var(--card-bg, #ffffff); */
    border-radius: 1rem;
    padding: 2rem;
    /* box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.08)); */
    /* border: 1px solid rgba(0, 0, 0, 0.05); */
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.job-section h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color, #2d3748);
    margin-bottom: 1.5rem;
    font-family: "Playfair Display", serif;
}

.job-description {
    color: var(--gray-medium, #a0aec0);
    line-height: 1.7;
    font-size: 1rem;
}

.job-list {
    margin-top: 1rem;
}

.job-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light, #f3f4f6);
}

.job-list-item:last-child {
    border-bottom: none;
}

.job-list-item i {
    color: #10b981;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.job-list-item.responsibility i {
    color: #3b82f6;
}

.job-list-item.benefit i {
    color: #f59e0b;
}

/* Sidebar */
.job-sidebar {
    margin-bottom: 1.5rem;
}

.job-sidebar-card {
    /* background: var(--card-bg, #ffffff); */
    border-radius: 1rem;
    padding: 1.5rem;
    /* box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.08)); */
    /* border: 1px solid rgba(0, 0, 0, 0.05); */
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.job-sidebar-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color, #2d3748);
    margin-bottom: 1rem;
}

.job-overview-list {
    margin-top: 0.75rem;
}

.job-overview-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light, #f3f4f6);
}

.job-overview-item:last-child {
    border-bottom: none;
}

.job-overview-label {
    color: var(--gray-medium, #a0aec0);
    font-size: 0.875rem;
}

.job-overview-value {
    font-weight: 500;
    color: var(--text-color, #2d3748);
}

/* Apply Modal */
.apply-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}

.apply-modal.hidden {
    display: none;
}

.apply-modal-content {
    background: var(--card-bg, #ffffff);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.apply-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.apply-modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color, #2d3748);
    font-family: "Playfair Display", serif;
}

.apply-modal-close {
    color: var(--gray-medium, #a0aec0);
    cursor: pointer;
    transition: var(
        --transition,
        all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    );
}

.apply-modal-close:hover {
    color: var(--text-color, #2d3748);
}

.apply-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color, #2d3748);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light, #e2e8f0);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: var(
        --transition,
        all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    );
    background: var(--card-bg, #ffffff);
    color: var(--text-color, #2d3748);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color, #4a90e2);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.file-upload-area {
    border: 2px dashed var(--gray-light, #e2e8f0);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: var(
        --transition,
        all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    );
    cursor: pointer;
    background: var(--bg-color, #f8fafc);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary-color, #4a90e2);
    background: rgba(74, 144, 226, 0.05);
}

.file-upload-icon {
    font-size: 2.5rem;
    color: var(--gray-medium, #a0aec0);
    margin-bottom: 1rem;
}

.file-upload-text {
    color: var(--text-color, #2d3748);
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    color: var(--gray-medium, #a0aec0);
    font-size: 0.75rem;
}

.file-name {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--primary-color, #4a90e2);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-secondary {
    background: var(--gray-light, #f3f4f6);
    color: var(--text-color, #2d3748);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(
        --transition,
        all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    );
}

.btn-secondary:hover {
    background: var(--gray-medium, #e2e8f0);
}

/* Success/Error Modals */
.success-modal,
.error-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 1rem;
}

.success-modal.hidden,
.error-modal.hidden {
    display: none;
}

.modal-content {
    background: var(--card-bg, #ffffff);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.success-icon i {
    color: #059669;
    font-size: 2rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color, #2d3748);
    margin-bottom: 0.5rem;
}

.modal-message {
    color: var(--gray-medium, #a0aec0);
    margin-bottom: 1.5rem;
}

.modal-close-btn {
    background: var(--primary-color, #4a90e2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(
        --transition,
        all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    );
}

.modal-close-btn:hover {
    background: var(--primary-dark, #357abd);
}

/* Footer */
.jobs-footer {
    background: var(--secondary-color, #2c3e50);
    color: var(--text-light, #eef2f7);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.jobs-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-light, #eef2f7);
    margin-bottom: 1rem;
    font-family: "Playfair Display", serif;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-light, #cbd5e0);
    text-decoration: none;
    transition: var(
        --transition,
        all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    );
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-color, #4a90e2);
}

.footer-links i {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social-links a {
    color: var(--gray-light, #cbd5e0);
    text-decoration: none;
    font-size: 1.25rem;
    transition: var(
        --transition,
        all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.footer-social-links a:hover {
    color: var(--primary-color, #4a90e2);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--gray-light, #cbd5e0);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (min-width: 1024px) {
    .job-detail-header-content {
        flex-direction: row;
        align-items: center;
    }

    .job-detail-info h1 {
        font-size: 2.5rem;
    }

    .job-content-grid {
        grid-template-columns: 2fr 1fr;
    }
}
@media (max-width: 768px) {
    .jobs-hero-title {
        font-size: 2rem;
    }

    .jobs-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .job-card {
        padding: 1.5rem;
    }

    .job-detail-header-content {
        flex-direction: column;
        text-align: center;
    }

    .job-detail-info h1 {
        font-size: 1.75rem;
    }

    .job-detail-meta {
        justify-content: center;
    }

    .job-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .apply-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn,
    .apply-btn,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .jobs-nav-links {
        gap: 1rem;
    }

    .job-card-header {
        flex-direction: column;
        gap: 1rem;
    }

    .job-type-badges {
        justify-content: center;
    }

    .job-detail-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Persian/Arabic Font Styles */
[dir="rtl"] .jobs-nav-links {
    direction: rtl;
}

[dir="rtl"] .job-card-meta,
[dir="rtl"] .job-detail-meta-item {
    direction: rtl;
}

[dir="rtl"] .job-list-item {
    direction: rtl;
}

[dir="rtl"] .form-actions {
    direction: rtl;
}

/* Print Styles */
@media print {
    .jobs-header,
    .jobs-footer,
    .apply-modal,
    .success-modal,
    .error-modal {
        display: none !important;
    }

    .job-content {
        padding: 0;
    }

    .job-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
