/**
 * Jobs Section - Modern Card Style
 * Stunning design with company badges and deadline indicators
 */

/* ==========================================================================
   SECTION BACKGROUND
   ========================================================================== */
.joongang-section--jobs {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
}

/* ==========================================================================
   JOBS GRID
   ========================================================================== */
.jobs-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ==========================================================================
   CARD STYLE
   ========================================================================== */
.jobs-modern__card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.jobs-modern__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
    opacity: 0;
    transition: opacity 0.2s;
}

.jobs-modern__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.jobs-modern__card:hover::before {
    opacity: 1;
}

.jobs-modern__card--urgent {
    border: 2px solid #fecaca;
}

.jobs-modern__card--urgent::before {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    opacity: 1;
}

.jobs-modern__card a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.jobs-modern__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.jobs-modern__company-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.jobs-modern__company-info {
    flex: 1;
    min-width: 0;
}

.jobs-modern__company {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jobs-modern__location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.jobs-modern__location svg {
    flex-shrink: 0;
    color: #9ca3af;
}

/* ==========================================================================
   DEADLINE BADGES
   ========================================================================== */
.jobs-modern__badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    background: #f3f4f6;
    color: #374151;
}

.jobs-modern__badge--urgent {
    background: #fef2f2;
    color: #dc2626;
    animation: pulse-urgent 2s infinite;
}

.jobs-modern__badge--soon {
    background: #fffbeb;
    color: #d97706;
}

.jobs-modern__badge--continuous {
    background: #ecfdf5;
    color: #059669;
}

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

/* ==========================================================================
   TITLE
   ========================================================================== */
.jobs-modern__title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 16px;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.jobs-modern__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.jobs-modern__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.jobs-modern__tag {
    padding: 4px 10px;
    background: #f0f9ff;
    color: #0369a1;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.jobs-modern__salary {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #059669;
}

.jobs-modern__salary svg {
    flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */
@media (max-width: 1023px) {
    .jobs-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */
@media (max-width: 767px) {
    .jobs-modern {
        grid-template-columns: 1fr;
    }

    .jobs-modern__card a {
        padding: 16px;
    }

    .jobs-modern__company-badge {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .jobs-modern__title {
        font-size: 14px;
    }
}
