/* jobs.css - Job Openings section styles for interviews.html */

.jobs-container {
    margin-top: 24px;
    animation: fadeIn 0.5s ease;
}

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

.jobs-header {
    text-align: center;
    margin-bottom: 30px;
}

.jobs-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.jobs-header p {
    color: #d1d7e6;
    font-size: 14px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.job-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #1f2937;
    animation: cardFadeIn 0.5s ease;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0866ff, #ff8500);
}

.job-card-new::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.job-card-old::before {
    background: linear-gradient(90deg, #9ca3af, #d1d5db);
}

.job-age-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-age-badge.new {
    background: #d1fae5;
    color: #065f46;
}

.job-age-badge.old {
    background: #f3f4f6;
    color: #6b7280;
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.job-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    background: #f3f4f6;
}

.job-icon.dev { background: #e0e7ff; color: #4f46e5; }
.job-icon.web { background: #fef3c7; color: #d97706; }
.job-icon.mobile { background: #ede9fe; color: #7c3aed; }
.job-icon.cloud { background: #fee2e2; color: #dc2626; }
.job-icon.qa { background: #d1fae5; color: #059669; }
.job-icon.data { background: #dbeafe; color: #2563eb; }
.job-icon.default { background: #f3f4f6; color: #4b5563; }

.job-title-wrap {
    flex: 1;
}

.job-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.3;
}

.job-company {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.job-meta-item i {
    color: #0866ff;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.job-type-badge {
    display: inline-flex;
    align-items: center;
    background: #d1fae5;
    color: #065f46;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    width: fit-content;
}

.job-description {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-skills {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 18px;
    line-height: 1.5;
}

.job-skills strong {
    color: #374151;
}

.job-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.job-btn {
    flex: 1;
    min-width: 100px;
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.job-btn-primary {
    background: linear-gradient(135deg, #0866ff, #00a3ff);
    color: #ffffff;
}

.job-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(8, 102, 255, 0.35);
}

.job-btn-secondary {
    background: #ffffff;
    color: #18b34b;
    border: 2px solid #18b34b;
}

.job-btn-secondary:hover {
    background: #18b34b;
    color: #ffffff;
    transform: translateY(-2px);
}

.job-share-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.job-share-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #ffffff;
}

.job-share-btn.whatsapp {
    background: #25d366;
}

.job-share-btn.whatsapp:hover {
    background: #1fbf5b;
    transform: translateY(-2px);
}

.job-share-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.job-share-btn.instagram:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Modal styles */
.job-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.job-modal-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.job-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.job-modal-close:hover {
    color: #374151;
}

.job-modal-body h2 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 6px;
    padding-right: 30px;
}

.job-modal-body .job-company {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 20px;
}

.job-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #374151;
}

.job-detail-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, #0866ff, #00a3ff);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.job-detail-row strong {
    color: #111827;
    display: block;
    margin-bottom: 2px;
}

.job-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.job-modal-actions .job-btn {
    flex: 1;
    min-width: 120px;
}

/* Instagram modal */
.insta-modal-content {
    max-width: 480px;
}

.insta-modal-content h3 {
    font-size: 20px;
    color: #111827;
    margin-bottom: 18px;
}

.insta-preview {
    width: 320px;
    height: 320px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.insta-preview .insta-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.insta-preview .insta-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.insta-preview .insta-company {
    font-size: 16px;
    margin-bottom: 16px;
    opacity: 0.95;
}

.insta-preview .insta-meta {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.insta-caption {
    width: 100%;
    min-height: 140px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    resize: vertical;
    margin-bottom: 16px;
    font-family: 'Segoe UI', sans-serif;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-copy,
.btn-close {
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy {
    background: linear-gradient(135deg, #0866ff, #00a3ff);
    color: #ffffff;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(8, 102, 255, 0.35);
}

.btn-close {
    background: #f3f4f6;
    color: #374151;
}

.btn-close:hover {
    background: #e5e7eb;
}

/* Loading and error states */
.jobs-loading,
.jobs-error,
.jobs-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: #d1d7e6;
    font-size: 16px;
}

.jobs-error {
    color: #ff9aa8;
    background: rgba(230, 55, 87, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .job-card {
        padding: 22px;
    }

    .insta-preview {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
}

@media (max-width: 480px) {
    .job-actions,
    .job-share-actions,
    .job-modal-actions {
        flex-direction: column;
    }

    .job-btn,
    .job-share-btn {
        width: 100%;
    }
}
