/**
 * Kraftdijital Jobs Styles
 */

:root {
    --kraft-green: #10b981;
    --kraft-green-dark: #0d9668;
    --kraft-white: #ffffff;
    --kraft-black: #1a1a1a;
    --kraft-gray: #6b7280;
    --kraft-gray-light: #f3f4f6;
}

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

/* Job Card */
.job-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #0d9668 0%, #10b981 100%);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2);
}

.job-header {
    margin-bottom: 20px;
}

.job-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--kraft-black);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.job-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.job-title a:hover {
    color: var(--kraft-green);
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.job-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--kraft-green);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.job-badge.type {
    background: linear-gradient(135deg, #0d9668 0%, #10b981 100%);
    color: white;
}

.job-badge.location {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.job-badge.remote {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.job-description {
    color: var(--kraft-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.job-details {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--kraft-gray-light);
    border-radius: 12px;
}

.job-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.job-detail-item .dashicons {
    color: var(--kraft-green);
    font-size: 20px;
}

.job-detail-item strong {
    color: var(--kraft-black);
    min-width: 100px;
}

.job-detail-item span {
    color: var(--kraft-gray);
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.job-deadline {
    font-size: 0.875rem;
    color: var(--kraft-gray);
}

.job-deadline.urgent {
    color: #ef4444;
    font-weight: 600;
}

.btn-apply {
    background: linear-gradient(135deg, #0d9668 0%, #10b981 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    color: white;
}

/* Single Job Page */
.job-single-hero {
    background: linear-gradient(135deg, #0d9668 0%, #10b981 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 50px;
}

.job-single-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.job-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.job-single-badge {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.job-single-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.job-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.job-main-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.job-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.job-info-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.job-info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--kraft-black);
    border-bottom: 2px solid var(--kraft-green);
    padding-bottom: 10px;
}

.job-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-info-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.job-info-list strong {
    color: var(--kraft-gray);
    font-size: 0.9rem;
}

.job-info-list span {
    color: var(--kraft-black);
    font-weight: 600;
}

.job-section {
    margin-bottom: 40px;
}

.job-section h2 {
    font-size: 1.75rem;
    color: var(--kraft-black);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.job-section h2 .dashicons {
    color: var(--kraft-green);
}

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

.job-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: var(--kraft-gray);
    line-height: 1.6;
}

.job-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--kraft-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.job-apply-card {
    background: linear-gradient(135deg, #0d9668 0%, #10b981 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

.job-apply-card h3 {
    color: white;
    margin-bottom: 15px;
    border: none;
    padding: 0;
}

.job-apply-card p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-apply-now {
    background: white;
    color: var(--kraft-green);
    padding: 14px 30px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-apply-now:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--kraft-green-dark);
}

/* Application Modal */
.job-application-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.job-application-modal.active {
    display: flex;
}

.job-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.job-modal-container {
    position: relative;
    background: white;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    margin: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.job-modal-header {
    background: linear-gradient(135deg, #0d9668 0%, #10b981 100%);
    color: white;
    padding: 30px;
    position: relative;
}

.job-modal-header h3 {
    margin: 0;
    font-size: 1.75rem;
}

.job-modal-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
}

.job-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
}

.job-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.job-modal-body {
    padding: 40px;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.job-application-form .form-group {
    margin-bottom: 25px;
}

.job-application-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--kraft-black);
}

.job-application-form input[type="text"],
.job-application-form input[type="email"],
.job-application-form input[type="tel"],
.job-application-form input[type="url"],
.job-application-form select,
.job-application-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.job-application-form input:focus,
.job-application-form select:focus,
.job-application-form textarea:focus {
    outline: none;
    border-color: var(--kraft-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.job-application-form textarea {
    resize: vertical;
    min-height: 120px;
}

.job-application-form .required {
    color: #ef4444;
}

.job-application-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-submit-application {
    background: linear-gradient(135deg, #0d9668 0%, #10b981 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit-application:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.btn-submit-application:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Job Archive Page */
.jobs-hero {
    background: linear-gradient(135deg, #0d9668 0%, #10b981 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.jobs-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.jobs-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.jobs-filters {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: -50px auto 50px;
    max-width: 1200px;
    position: relative;
    z-index: 10;
}

.jobs-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--kraft-black);
}

.filter-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.btn-filter {
    background: linear-gradient(135deg, #0d9668 0%, #10b981 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 28px;
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.no-jobs {
    text-align: center;
    padding: 60px 20px;
    color: var(--kraft-gray);
    font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 768px) {
    .kraft-jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .job-content-grid {
        grid-template-columns: 1fr;
    }
    
    .job-application-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .jobs-hero h1 {
        font-size: 2rem;
    }
    
    .jobs-filters-grid {
        grid-template-columns: 1fr;
    }
}

