/* FuelGuard Career Widget - Modern Design
   Prefix: fg-career-
   ======================================== */

/* Content */
.fg-career-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.fg-career-content-full {
    width: 100%;
    padding: 0 20px;
}

/* Section */
.fg-career-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 35px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
}

.fg-career-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 30px;
}

/* Empty State */
.fg-career-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.fg-career-empty-icon {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    overflow: hidden;
}

.fg-career-empty-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fg-career-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.fg-career-empty-text {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Positions */
.fg-career-positions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Position Card */
.fg-career-position {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fg-career-position:hover {
    border-color: #667eea;
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* Position Left */
.fg-career-position-left {
    flex-shrink: 0;
}

.fg-career-position-icon {
    width: 50px;
    height: 50px;
    /* Background gradient set via inline style from Elementor control */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
}

.fg-career-position-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Position Content */
.fg-career-position-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fg-career-position-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fg-career-position-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.fg-career-position-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fg-career-badge-hot {
    background: #fef3c7;
    color: #92400e;
}

.fg-career-badge-new {
    background: #dbeafe;
    color: #1e40af;
}

.fg-career-position-meta {
    font-size: 0.9rem;
    color: #64748b;
}

.fg-career-position-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Position Footer */
.fg-career-position-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.fg-career-position-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fg-career-position-tags span {
    padding: 5px 12px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
}

.fg-career-position-actions {
    display: flex;
    gap: 10px;
}

.fg-career-apply-btn {
    padding: 8px 20px;
    /* Background and color set via Elementor control */
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.fg-career-apply-btn:hover {
    /* Hover background set via Elementor control */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.fg-career-linkedin-btn {
    padding: 8px 16px;
    background: #0077b5;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.fg-career-linkedin-btn:hover {
    background: #005885;
    transform: translateY(-1px);
}

/* Spontan Section */
.fg-career-spontan {
    /* Background gradient set via inline style from Elementor control */
    padding: 35px 40px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    /* Text color set via Elementor control */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.fg-career-spontan-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.fg-career-spontan-text {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.fg-career-spontan-btn {
    padding: 12px 32px;
    /* Background and color set via Elementor control */
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

.fg-career-spontan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* Modal */
.fg-career-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fg-career-fade-in 0.3s ease;
}

.fg-career-modal.active {
    display: block;
}

.fg-career-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}

.fg-career-modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: fg-career-slide-up 0.3s ease;
}

.fg-career-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fg-career-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
}

.fg-career-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.5rem;
    line-height: 1;
}

.fg-career-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.fg-career-modal-body {
    padding: 30px;
}

/* Form */
.fg-career-cv-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fg-career-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fg-career-form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.fg-career-form-group input,
.fg-career-form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.fg-career-form-group input:focus,
.fg-career-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.fg-career-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* File Upload */
.fg-career-file-upload input {
    display: none;
}

.fg-career-file-upload label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fg-career-file-upload label:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.fg-career-file-upload label span {
    font-size: 1rem;
    color: #667eea;
    font-weight: 600;
}

/* Submit Button */
.fg-career-submit-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    margin-top: 10px;
}

.fg-career-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Animations */
@keyframes fg-career-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fg-career-slide-up {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .fg-career-empty-state {
        padding: 40px 20px;
    }

    .fg-career-empty-icon {
        width: 70px;
        height: 70px;
    }

    .fg-career-empty-icon i {
        font-size: 2rem;
    }

    .fg-career-empty-title {
        font-size: 1.3rem;
    }

    .fg-career-empty-text {
        font-size: 0.9rem;
    }

    .fg-career-section {
        padding: 25px 20px;
    }

    .fg-career-section-title {
        font-size: 1.5rem;
    }

    .fg-career-position {
        flex-direction: column;
        padding: 20px;
    }

    .fg-career-position-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .fg-career-spontan {
        flex-direction: column;
        padding: 25px 20px;
        text-align: center;
    }

    .fg-career-spontan-btn {
        width: 100%;
    }

    .fg-career-form-row {
        grid-template-columns: 1fr;
    }

    .fg-career-modal-dialog {
        width: 95%;
    }

    .fg-career-modal-body {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .fg-career-position-title {
        font-size: 1.1rem;
    }

    .fg-career-section {
        padding: 20px 16px;
    }
}

