/* ===================================
   PÁGINA DE VAGAS - GESTÃO DE PESSOAS
   Design Moderno e Responsivo
   =================================== */

/* Hero Section */
.vagas-hero {
    background: linear-gradient(135deg, #0c2671 0%, #1e3a8a 50%, #3b82f6 100%);
    padding: 70px 0 50px;
    position: relative;
    overflow: hidden;
}

.vagas-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23f8f9fa' d='M0,32L48,37.3C96,43,192,53,288,53.3C384,53,480,43,576,42.7C672,43,768,53,864,56C960,59,1056,53,1152,45.3C1248,37,1344,27,1392,21.3L1440,16L1440,80L1392,80C1344,80,1248,80,1152,80C1056,80,960,80,864,80C768,80,672,80,576,80C480,80,384,80,288,80C192,80,96,80,48,80L0,80Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    z-index: 1;
}

/* Pattern animado de fundo - removido para simplicidade */

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out;
    letter-spacing: -0.3px;
}

.hero-title i {
    margin-right: 12px;
    display: inline-block;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    font-weight: 400;
}

/* Section Container */
.vagas-section {
    padding: 50px 0;
    background: #f8f9fa;
    position: relative;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #0c2671;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: -0.3px;
}

.section-title i {
    margin-right: 10px;
    color: #3b82f6;
    font-size: 1.7rem;
    vertical-align: middle;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0c2671, #3b82f6, #0c2671);
    border-radius: 2px;
    box-shadow: 0 1px 6px rgba(59, 130, 246, 0.2);
}

/* Vagas Grid */
.vagas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

/* Vaga Card */
.vaga-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(12, 38, 113, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(12, 38, 113, 0.08);
}

.vaga-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0c2671, #3b82f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vaga-card:hover::before {
    opacity: 1;
}

.vaga-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(12, 38, 113, 0.12);
    border-color: rgba(12, 38, 113, 0.12);
}

/* Imagem da Vaga */
.vaga-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vaga-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(12, 38, 113, 0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.vaga-card:hover .vaga-image-wrapper::after {
    opacity: 1;
}

.vaga-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: brightness(0.98);
}

.vaga-card:hover .vaga-image {
    transform: scale(1.03);
    filter: brightness(1);
}

/* Status Badge com Glassmorphism */
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: scale(1.03);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.status-badge i {
    font-size: 0.85rem;
}

.status-badge.aberta {
    background: linear-gradient(135deg, rgba(29, 112, 60, 0.95), rgba(40, 167, 69, 0.95));
}

.status-badge.finalizada {
    background: linear-gradient(135deg, rgba(200, 35, 51, 0.95), rgba(220, 53, 69, 0.95));
}

/* Card Body */
.vaga-body {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.vaga-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0c2671;
    margin-bottom: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 50px;
    transition: color 0.3s ease;
    letter-spacing: -0.2px;
}

.vaga-card:hover .vaga-title {
    color: #1e3a8a;
}

/* Separador visual */
.vaga-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #0c2671, #3b82f6);
    margin-bottom: 14px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.vaga-card:hover .vaga-divider {
    width: 60px;
}

.vaga-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding: 14px;
    background: rgba(12, 38, 113, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(12, 38, 113, 0.06);
}

.vaga-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
}

.vaga-date i {
    color: #0c2671;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.vaga-card:hover .vaga-date i {
    transform: scale(1.1);
}

.vaga-date.aberta {
    color: #1d703c;
    font-weight: 600;
}

.vaga-date.aberta i {
    color: #1d703c;
}

.vaga-date.finalizada {
    color: #dc3545;
    font-weight: 600;
}

.vaga-date.finalizada i {
    color: #dc3545;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(12, 38, 113, 0.05);
    margin: 20px 0;
}

.empty-state i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #dee2e6, #adb5bd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: inline-block;
}

.empty-state h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0c2671;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 1rem;
    color: #6c757d;
    max-width: 450px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .vagas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .vagas-hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .vagas-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .vagas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .vaga-card {
        border-radius: 12px;
    }
    
    .vaga-image-wrapper {
        height: 200px;
    }
    
    .vaga-body {
        padding: 20px;
    }
    
    .vaga-title {
        font-size: 1.1rem;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .vagas-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    
    .vaga-image-wrapper {
        height: 220px;
    }
    
    .status-badge {
        padding: 5px 12px;
        font-size: 0.7rem;
    }
    
    .vaga-meta {
        gap: 8px;
    }
}

/* Smooth Loading Animation */
.vaga-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.vaga-card:nth-child(1) { animation-delay: 0.1s; }
.vaga-card:nth-child(2) { animation-delay: 0.2s; }
.vaga-card:nth-child(3) { animation-delay: 0.3s; }
.vaga-card:nth-child(4) { animation-delay: 0.4s; }
.vaga-card:nth-child(5) { animation-delay: 0.5s; }
.vaga-card:nth-child(6) { animation-delay: 0.6s; }
.vaga-card:nth-child(7) { animation-delay: 0.7s; }
.vaga-card:nth-child(8) { animation-delay: 0.8s; }
