/* ============================================
   IMT Careers Module Styles
   Version: 2.0.35
   ============================================ */

/* ===========================================
   Career Listings Layout
   =========================================== */
.imt-careers-wrapper {
    margin: 0;
    padding: 0;
}

.imt-careers-list .imt-career-card {
    margin-bottom: 20px;
}

.imt-careers-grid {
    display: grid;
    gap: 20px;
}

.imt-careers-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.imt-careers-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ===========================================
   Career Card
   =========================================== */
.imt-career-card {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.2s ease;
    position: relative;
}

.imt-career-card:hover {
    border-color: #c9a227;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.imt-career-featured {
    border-left: 4px solid #f0c14b;
}

.imt-career-urgent {
    border-left: 4px solid #e74c3c;
}

.imt-career-featured.imt-career-urgent {
    border-left: 4px solid #e74c3c;
}

/* Card Header */
.imt-career-header {
    margin-bottom: 16px;
}

.imt-career-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.imt-career-badge-featured {
    background: #f0c14b;
    color: #000;
}

.imt-career-badge-urgent {
    background: #e74c3c;
    color: #fff;
    animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.imt-career-title {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.imt-career-title a {
    color: #1d2327;
    text-decoration: none;
    transition: color 0.2s ease;
}

.imt-career-title a:hover {
    color: #c9a227;
}

.imt-career-department {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Card Meta */
.imt-career-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.imt-career-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #555;
}

.imt-career-meta-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #c9a227;
}

/* Employment Type Colors */
.imt-career-type[data-type="full_time"] { color: #27ae60; }
.imt-career-type[data-type="part_time"] { color: #3498db; }
.imt-career-type[data-type="contract"] { color: #9b59b6; }
.imt-career-type[data-type="internship"] { color: #e67e22; }

/* Remote Status Colors */
.imt-career-remote[data-remote="remote"] { color: #27ae60; }
.imt-career-remote[data-remote="hybrid"] { color: #3498db; }

/* Card Excerpt */
.imt-career-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
}

.imt-career-excerpt p {
    margin: 0;
}

/* Card Footer */
.imt-career-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.imt-career-deadline {
    font-size: 0.85rem;
    color: #e67e22;
    font-weight: 500;
}

.imt-career-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #c9a227;
    text-decoration: none;
    transition: all 0.2s ease;
}

.imt-career-link:hover {
    color: #a68620;
}

.imt-career-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.imt-career-link:hover .dashicons {
    transform: translateX(4px);
}

/* ===========================================
   Single Career View
   =========================================== */
.imt-career-single {
    max-width: 900px;
    margin: 0 auto;
}

.imt-career-single-header {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e4e7;
}

.imt-career-single-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0 15px 0;
    color: #1d2327;
}

.imt-career-single-department {
    font-size: 1.1rem;
    color: #c9a227;
    font-weight: 600;
    margin-bottom: 20px;
}

.imt-career-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.imt-career-single-meta .imt-career-meta-item {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.imt-career-single-deadline {
    font-size: 1rem;
    color: #e67e22;
    padding: 12px 16px;
    background: #fef5e9;
    border-radius: 6px;
    margin-top: 20px;
}

/* Single Body */
.imt-career-single-body {
    margin-bottom: 40px;
}

.imt-career-single-body h2,
.imt-career-single-body h3,
.imt-career-single-body h4 {
    color: #1d2327;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.imt-career-single-body h2:first-child,
.imt-career-single-body h3:first-child {
    margin-top: 0;
}

.imt-career-single-body ul,
.imt-career-single-body ol {
    padding-left: 25px;
    margin-bottom: 1em;
}

.imt-career-single-body li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Single Footer */
.imt-career-single-footer {
    padding-top: 30px;
    border-top: 1px solid #e2e4e7;
    text-align: center;
}

/* ===========================================
   Apply Button
   =========================================== */
.imt-career-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    background: linear-gradient(135deg, #f0c14b 0%, #c9a227 100%);
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.3);
}

.imt-career-apply-btn:hover {
    background: linear-gradient(135deg, #c9a227 0%, #a68620 100%);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
}

.imt-career-closed {
    padding: 16px 24px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* ===========================================
   Empty State
   =========================================== */
.imt-careers-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 1.1rem;
}

/* ===========================================
   Error State
   =========================================== */
.imt-career-error {
    text-align: center;
    padding: 40px 20px;
    background: #fef5e9;
    border: 1px solid #f0c14b;
    border-radius: 8px;
    color: #8a6d14;
}

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 992px) {
    .imt-careers-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .imt-careers-cols-2,
    .imt-careers-cols-3 {
        grid-template-columns: 1fr;
    }

    .imt-career-card {
        padding: 20px;
    }

    .imt-career-meta {
        gap: 12px;
    }

    .imt-career-single-title {
        font-size: 1.5rem;
    }

    .imt-career-single-meta {
        gap: 10px;
    }

    .imt-career-single-meta .imt-career-meta-item {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .imt-career-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .imt-career-title {
        font-size: 1.1rem;
    }

    .imt-career-meta-item {
        font-size: 0.8rem;
    }

    .imt-career-apply-btn {
        width: 100%;
        padding: 12px 24px;
    }
}

/* ===========================================
   Print Styles
   =========================================== */
@media print {
    .imt-career-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .imt-career-apply-btn {
        display: none;
    }

    .imt-career-link {
        color: #000;
    }

    .imt-career-link::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ===========================================
   Skills & Tags Styles
   =========================================== */
.imt-career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.imt-career-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #555;
    transition: all 0.2s ease;
}

.imt-career-tag:hover {
    background: #c9a227;
    color: #fff;
}

.imt-career-skills-tags .imt-career-tag {
    background: #e8f4fd;
    color: #2980b9;
}

.imt-career-benefits-tags .imt-career-benefit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #e8f8f0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #27ae60;
    margin: 4px;
}

/* ===========================================
   Lists in Career Content
   =========================================== */
.imt-career-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.imt-career-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.imt-career-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c9a227;
    font-weight: bold;
}

.imt-career-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d2327;
    margin: 20px 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #c9a227;
}

/* ===========================================
   Status Badges
   =========================================== */
.imt-career-status-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #e8f8f0;
    color: #27ae60;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.imt-career-status-open::before {
    content: "●";
    animation: pulse 1.5s infinite;
}

.imt-career-status-closed {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f5f5f5;
    color: #888;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===========================================
   Salary Display
   =========================================== */
.imt-career-salary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #27ae60;
}

.imt-career-salary .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}
