/**
 * Modern Jobs/Recruitment Module Styling
 * Corporate, Professional Design with Unique Identity
 */

/* ============================================
   Jobs Listing Page - Corporate Professional
   ============================================ */

/* Hero Section - Clean Corporate Style */
.jobs-hero {
    background: linear-gradient(to right, #1a1a2e 0%, #252540 50%, #4A2BB8 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.jobs-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    border-radius: 50%;
}

.jobs-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1), transparent 70%);
    border-radius: 50%;
}

.jobs-hero .container {
    position: relative;
    z-index: 2;
}

.jobs-hero .breadcrumb {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.jobs-hero .breadcrumb-item a,
.jobs-hero .breadcrumb-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.jobs-hero h1 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.jobs-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    max-width: 600px;
    font-weight: 400;
}

/* Filter Section - Minimal Clean Style */
.jobs-filter-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.jobs-filter-section .form-select,
.jobs-filter-section .form-control {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
    background: #ffffff;
}

.jobs-filter-section .form-select:focus,
.jobs-filter-section .form-control:focus {
    border-color: #5733D1;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.jobs-filter-section .btn-primary {
    background: #5733D1;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.jobs-filter-section .btn-primary:hover {
    background: #5733D1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Job Cards - Modern Minimal Design */
.job-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.job-card:hover {
    border-color: #5733D1;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.job-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.job-card-header {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 30px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.job-card-logo {
    max-height: 60px;
    max-width: 140px;
    object-fit: contain;
    margin-bottom: 12px;
}

.job-card-icon {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 12px;
}

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

.job-badges-container {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.job-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.job-badge.closed {
    background: rgba(255,120,176,0.1);
    color: #991b1b;
}

.job-badge.closing-soon {
    background: #fef3c7;
    color: #92400e;
    animation: pulse-warning 2s infinite;
}

.job-badge.new {
    background: rgba(117,197,255,0.12);
    color: #14532d;
}

.job-badge.featured {
    background: linear-gradient(135deg, #FFBF6B 0%, #FFBF6B 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.job-badge.urgent {
    background: linear-gradient(135deg, #FF78B0 0%, #FF78B0 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: pulse-urgent 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes pulse-urgent {
    0%, 100% { box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 2px 12px rgba(239, 68, 68, 0.5); }
}

.job-card-body {
    padding: 24px;
}

.job-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
    margin-bottom: 12px;
    border: 1px solid;
}

.job-type-badge.full-time {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.job-type-badge.part-time {
    background: #f5f3ff;
    color: #5733D1;
    border-color: #ddd6fe;
}

.job-type-badge.contract {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.job-type-badge.internship {
    background: rgba(117,197,255,0.12);
    color: #065f46;
    border-color: #a7f3d0;
}

.job-type-badge.freelance {
    background: #fce7f3;
    color: #9f1239;
    border-color: #fbcfe8;
}

.job-info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

.job-info-row i {
    color: #5733D1;
    font-size: 14px;
}

.job-meta-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.job-meta-info-item {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
}

.job-meta-info-item:last-child {
    margin-bottom: 0;
}

.job-meta-info-item i {
    color: #5733D1;
    width: 16px;
    margin-right: 8px;
    font-size: 13px;
}

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

.job-salary h5 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.job-salary-undisclosed {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

.job-apply-btn {
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    border: none;
}

.job-apply-btn:hover {
    transform: translateY(-1px);
}

.job-apply-btn.closed {
    background: #f3f4f6;
    color: #9ca3af;
}

.jobs-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.jobs-empty-state img {
    max-width: 220px;
    opacity: 0.6;
    margin-bottom: 24px;
}

.jobs-empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.jobs-empty-state p {
    font-size: 15px;
    color: #6b7280;
}

/* ============================================
   Job Details Page - Professional Layout
   ============================================ */

.job-details-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #252540 100%);
    padding: 60px 0 50px;
    color: white;
    position: relative;
}

.job-details-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 60%);
}

.job-details-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.job-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.job-meta-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.job-meta-tag i {
    margin-right: 6px;
    font-size: 12px;
}

.job-deadline-alert {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #FFBF6B;
    padding: 12px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(10px);
    font-size: 14px;
}

.job-deadline-alert.expired {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #FF78B0;
}

.job-company-logo-hero {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.job-company-logo-hero img {
    max-height: 100px;
}

.job-company-logo-hero h4 {
    margin-top: 12px;
    color: #111827;
    font-weight: 700;
    font-size: 18px;
}

/* Content Cards - Clean Professional */
.job-content-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.job-content-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.job-content-card .card-body {
    padding: 28px;
}

.job-content-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.job-content-card h4 i {
    color: #5733D1;
    margin-right: 10px;
    font-size: 18px;
}

.job-content {
    line-height: 1.7;
    color: #374151;
    font-size: 15px;
}

.job-content ul,
.job-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.job-content li {
    margin-bottom: 8px;
}

.job-content ul li::marker {
    color: #5733D1;
}

/* Sidebar Cards */
.job-apply-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: sticky;
    top: 20px;
}

.job-apply-card-success {
    background: linear-gradient(135deg, #75C5FF, #5733D1);
    color: white;
    padding: 32px 24px;
    text-align: center;
}

.job-apply-card-success i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.95;
}

.job-apply-card-success h5 {
    color: white;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
}

.job-apply-card-success p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.job-apply-card-closed {
    background: linear-gradient(135deg, #FF78B0, #FF78B0);
    color: white;
    padding: 32px 24px;
    text-align: center;
}

.job-apply-card-closed i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.95;
}

.job-apply-card-closed h5 {
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.job-apply-btn-large {
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.job-apply-btn-large:hover {
    transform: translateY(-2px);
}

.job-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 20px;
}

.job-info-card .card-body {
    padding: 24px;
}

.job-info-card h5 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.job-info-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.job-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.job-info-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 14px;
}

.job-info-label i {
    color: #5733D1;
    width: 20px;
    margin-right: 8px;
    font-size: 14px;
}

.job-info-value {
    color: #6b7280;
    font-size: 14px;
    margin-left: 28px;
}

.company-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.company-info-card .card-body {
    padding: 24px;
}

.company-logo-section {
    text-align: center;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
}

.company-logo-section img {
    max-height: 80px;
}

.company-info-card h6 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.company-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .jobs-hero h1 {
        font-size: 32px;
    }

    .jobs-filter-section {
        padding: 20px;
        margin-top: -30px;
    }

    .job-card-title {
        font-size: 16px;
    }

    .job-details-hero h1 {
        font-size: 28px;
    }

    .job-apply-card,
    .job-info-card,
    .company-info-card {
        position: static;
    }

    .job-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .job-apply-btn {
        width: 100%;
        text-align: center;
    }
}

/* Animation */
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

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

.job-card:nth-child(1) { animation-delay: 0.05s; }
.job-card:nth-child(2) { animation-delay: 0.1s; }
.job-card:nth-child(3) { animation-delay: 0.15s; }
.job-card:nth-child(4) { animation-delay: 0.2s; }
.job-card:nth-child(5) { animation-delay: 0.25s; }
.job-card:nth-child(6) { animation-delay: 0.3s; }


/* Skills Tags */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skill-tag.required {
    background: linear-gradient(135deg, rgba(87,51,209,0.08) 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 2px solid #93c5fd;
}

.skill-tag.required:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
}

.skill-tag.preferred {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #6b21a8;
    border: 2px solid #75C5FF;
}

.skill-tag.preferred:hover {
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.2);
}
