
/* Main Container */
.job-listings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Filter Section */
.job-filters-wrapper {
    background: #ffffff;
    padding: 24px 28px;
    margin-bottom: 28px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.filters-title {
    color: #1f2937;
    margin: 0 0 18px 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.job-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.filter-group input[type='date'] {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1f2937;
}

.filter-group input[type='date']:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: #f3f4f6;
}

.checkbox-label input[type='checkbox'] {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.checkbox-label span {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-filter {
    background: #3b82f6;
    color: white;
}

.btn-filter:hover {
    background: #2563eb;
}

.btn-reset {
    background: #6b7280;
    color: white;
}

.btn-reset:hover {
    background: #4b5563;
}

.btn-primary {
    background: #dc2626;
    color: white;
    padding: 11px 26px;
    font-size: 15px;
}

.btn-primary:hover {
    background: #b91c1c;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 11px 26px;
    font-size: 15px;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-share {
    background: #10b981;
    color: white;
    padding: 11px 26px;
    font-size: 15px;
}

.btn-share:hover {
    background: #059669;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

/* Accordion Section */
.job-accordion {
    margin-top: 0;
}

.job-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.job-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.job-item.expired {
    background: #f9fafb;
    border-color: #e5e7eb;
}

.job-item.expired .job-header {
    background: #f3f4f6;
}

.job-header {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.job-header:hover {
    background: #f9fafb;
}

.job-item.active .job-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.job-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.job-title {
    margin: 0;
    font-size: 20px;
    color: #1f2937;
    font-weight: 600;
    line-height: 1.4;
}

.job-closing-date {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.job-toggle {
    font-size: 24px;
    font-weight: 300;
    color: #9ca3af;
    transition: transform 0.3s ease;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
}

.header-share-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 0;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-share-btn:hover {
    background-color: #f3f4f6;
    color: #3b82f6;
    transform: scale(1.1);
}

.header-share-btn svg {
    display: block;
}

.job-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
    background: #ffffff;
}

.job-content-inner {
    overflow: hidden;
}

.job-item.active .job-content {
    grid-template-rows: 1fr;
}

.job-item.active .job-content-inner {
    padding: 22px 20px;
}

.job-description {
    margin-bottom: 24px;
    line-height: 1.7;
    color: #4b5563;
    font-size: 15px;
}

.job-description p {
    margin: 0 0 12px 0;
}

.job-meta-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 20px 24px !important;
    background: #f9fafb;
    border-radius: 4px;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.5;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4b5563;
}

.meta-item strong {
    color: #1f2937;
    font-weight: 600;
}

.meta-divider {
    color: #d1d5db;
    font-weight: 300;
}

.status-badge {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-active {
    color: #059669;
    background: #d1fae5;
}

.status-expired {
    color: #dc2626;
    background: #fee2e2;
}

.status-closed {
    color: #6b7280;
    background: #f3f4f6;
}

.status-draft {
    color: #d97706;
    background: #fef3c7;
}

.job-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.job-actions .btn {
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.share-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.share-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.share-modal-body {
    padding: 20px;
}

.share-modal-body p {
    margin: 0 0 16px 0;
    color: #4b5563;
    font-size: 14px;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #1f2937;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateX(4px);
}

.share-btn span {
    font-size: 20px;
}

.share-facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.share-twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-linkedin:hover {
    background: #0a66c2;
    color: white;
    border-color: #0a66c2;
}

.share-whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.share-copy:hover {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

.no-jobs {
    text-align: center;
    padding: 50px 20px;
    color: #6b7280;
    font-size: 15px;
    background: #f9fafb;
    border-radius: 6px;
    border: 2px dashed #e5e7eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-listings-container {
        padding: 15px;
    }
    
    .job-filters-wrapper {
        padding: 18px 20px;
    }
    
    .filters-title {
        font-size: 16px;
    }
    
    .job-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .checkbox-group {
        padding-top: 0;
    }
    
    .filter-actions {
        width: 100%;
    }
    
    .btn {
        flex: 1;
    }
    
    .job-header {
        padding: 14px 16px;
    }
    
    .job-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .job-title {
        font-size: 16px;
    }
    
    .job-closing-date {
        font-size: 13px;
        padding-left: 0;
    }
    
    .job-toggle {
        margin-left: 12px;
    }
    
    .job-item.active .job-content {
        padding: 18px 16px;
    }
    
    .job-description {
        font-size: 14px;
    }
    
    .job-meta-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 13px;
        padding: 10px 0px;
    }
    
    .meta-divider {
        display: none;
    }
    
    .job-actions {
        flex-direction: column;
    }
    
    .job-actions .btn {
        min-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .job-listings-container {
        padding: 12px;
    }
    
    .job-filters-wrapper {
        padding: 15px 18px;
    }
}
