﻿/**
 * Styles pour la liste des offres d'emploi
 * COSMOS Group - Version Liste
 */

/* Liste des offres */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.job-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.job-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.job-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.job-item-left {
    flex: 1;
}

.job-item-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.company-name {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 4px 0;
}

.job-location {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 4px 0;
}

.job-location i {
    margin-right: 6px;
    color: #667eea;
}

.job-badge {
    background: linear-gradient(135deg, #064795, #3fa7de);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.job-date {
    font-size: 0.85rem;
    color: #9ca3af;
    white-space: nowrap;
}

.job-date i {
    margin-right: 6px;
}

.btn-apply {
    background: linear-gradient(135deg, #020817 0%, #0f172a 50%, #0c1a3a 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 0 16px rgba(63,167,222,0.2);
}

.btn-apply:hover {
    background: linear-gradient(135deg, #0f172a 0%, #0c1a3a 50%, #3fa7de 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 167, 222, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .job-item-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-item-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .btn-apply {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .job-item {
        padding: 16px;
    }

    .job-title {
        font-size: 1.1rem;
    }

    .job-item-right {
        gap: 8px;
    }

    .job-badge {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

/* Styles pour les offres expirées */
.job-item.job-expired {
    opacity: 0.85;
    background: #f9fafb;
}

.job-item.job-expired:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.job-item.job-expired .job-title {
    color: #6b7280;
}

/* Le bouton reste identique aux autres pour les offres expirées */

/* Offset pour le header fixe */
.search-filters {
    padding-top: 145px !important;
}

@media (max-width: 1024px) {
    .search-filters {
        padding-top: 130px !important;
    }
}

@media (max-width: 768px) {
    .search-filters {
        padding-top: 115px !important;
    }
}

@media (max-width: 480px) {
    .search-filters {
        padding-top: 105px !important;
    }
}

/* ===== OFFRES HERO ===== */
.offres-hero {
    position: relative;
    background: linear-gradient(135deg, #020817 0%, #0f172a 50%, #0c1a3a 100%);
    padding: 80px 0 60px;
    overflow: hidden;
}

.offres-hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.offres-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.offres-orb-1 {
    width: 350px; height: 350px;
    background: rgba(63,167,222,0.1);
    top: -60px; left: 10%;
}

.offres-orb-2 {
    width: 250px; height: 250px;
    background: rgba(6,71,149,0.12);
    bottom: 0; right: 15%;
}

.offres-hero-content {
    text-align: center;
    margin-bottom: 2.5rem;
}

.offres-hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
}

.offres-hero-content p {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .offres-hero {
        padding: 60px 0 50px;
    }
    .offres-hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .offres-hero {
        padding: 50px 0 40px;
    }
    .offres-hero-content h1 {
        font-size: 1.8rem;
    }
    .offres-hero-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .offres-hero {
        padding: 40px 0 35px;
    }
    .offres-hero-content h1 {
        font-size: 1.5rem;
    }
}

/* ===== Section Heading ===== */
.section-heading-wrapper {
    text-align: center;
    padding: 48px 0 8px;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-heading-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3fa7de, #7dd3fc);
    border-radius: 2px;
    margin: 0 auto;
}

/* ===== STATUS LEGEND ===== */
.status-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.status-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #4b5563;
}

/* ===== STATUS DOTS (legend + inline) ===== */
.status-dot,
.status-dot-inline {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.status-active,
.status-dot-inline.status-active {
    background-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
    animation: blink-green 1.4s ease-in-out infinite;
}

.status-dot.status-urgent,
.status-dot-inline.status-urgent {
    background-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
    animation: blink-orange 1.4s ease-in-out infinite;
}

.status-dot.status-expired,
.status-dot-inline.status-expired {
    background-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
    animation: blink-red 1.4s ease-in-out infinite;
}

/* ===== BLINK ANIMATIONS ===== */
@keyframes blink-green {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25); }
    50%       { opacity: 0.4; box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.08); }
}

@keyframes blink-orange {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.25); }
    50%       { opacity: 0.4; box-shadow: 0 0 0 6px rgba(234, 179, 8, 0.08); }
}

@keyframes blink-red {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25); }
    50%       { opacity: 0.4; box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.08); }
}

/* ===== STATUS BADGE PILL ===== */
.job-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.status-active-badge {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-urgent-badge {
    background-color: #fefce8;
    color: #854d0e;
    border: 1px solid #fed7aa;
}

.status-expired-badge {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .status-legend {
        gap: 16px;
    }
    .job-status-badge {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .status-legend {
        gap: 12px;
    }
    .status-legend-item {
        font-size: 0.82rem;
    }
}
