/**
 * CSS para Carrossel Público de Vagas
 * IFSP Campus Guarulhos
 */

/* ========================================== CONTAINER PRINCIPAL ========================================== */

.vagas-publico-container {
    background: #f5f7f9;
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

/* ========================================== HEADER ========================================== */

.vagas-publico-header {
    background: linear-gradient(135deg, #006633 0%, #004d26 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.vagas-publico-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.vagas-publico-header p {
    margin: 0;
    font-size: 1.25rem;
    opacity: 0.95;
}

/* ========================================== CONTAINER DE CONTEÚDO ========================================== */

.vagas-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 20px;
}

/* ========================================== SEÇÃO DO CARROSSEL ========================================== */

.carrossel-section {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.carrossel-section h2 {
    color: #006633;
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.carrossel-section .subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0 0 2rem 0;
}

/* ========================================== CARROSSEL ========================================== */

.carrossel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.carrossel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carrossel-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.carrossel-slide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    background: #f8f9fa;
    border-radius: 8px;
}

.carrossel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 2rem;
    color: white;
}

.carrossel-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: white;
}

.carrossel-overlay p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

/* Setas de navegação */
.carrossel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 102, 51, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrossel-btn:hover {
    background: #006633;
    transform: translateY(-50%) scale(1.1);
}

.carrossel-btn.prev {
    left: 20px;
}

.carrossel-btn.next {
    right: 20px;
}

/* Indicadores (dots) */
.carrossel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.indicator-dot.active {
    background: #006633;
    width: 30px;
    border-radius: 6px;
}

/* ========================================== LISTA DE VAGAS ========================================== */

.vagas-lista-section {
    margin-top: 3rem;
}

.vagas-lista-section h2 {
    color: #006633;
    font-size: 2rem;
    margin: 0 0 2rem 0;
    text-align: center;
}

.vagas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* ========================================== CARD DE VAGA (Baseado no exemplo) ========================================== */

.vaga-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
    scroll-margin-top: 100px; /* Para as âncoras */
}

.vaga-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Header da vaga (título azul com onda amarela) */
.vaga-header {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.vaga-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: #ffc107;
    border-radius: 50%;
    opacity: 0.3;
}

.vaga-header h3 {
    color: white;
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Corpo da vaga */
.vaga-body {
    padding: 1.5rem;
}

.vaga-info-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.vaga-info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.vaga-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.vaga-info-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}

.vaga-info-content p {
    margin: 0;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.vaga-info-content ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
    list-style: none;
}

.vaga-info-content ul li {
    margin: 0.25rem 0;
    position: relative;
    padding-left: 0;
}

.vaga-info-content ul li::before {
    content: '•';
    color: #ff6b35;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Footer da vaga */
.vaga-footer {
    padding: 1.5rem;
    background: #f8f9fa;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.vaga-agencia-logo {
    width: 80px;
    height: 50px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.vaga-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #006633 0%, #00864d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.vaga-btn:hover {
    background: linear-gradient(135deg, #004d26 0%, #006633 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,51,0.3);
}

/* Badge de destaque */
.badge-destaque {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffc107;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Badge de prazo */
.badge-prazo {
    background: #dc3545;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-block;
}

.badge-prazo.urgente {
    animation: pulsar 1.5s infinite;
}

@keyframes pulsar {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ========================================== LOADING E ESTADOS ========================================== */

.carrossel-loading {
    text-align: center;
    padding: 3rem;
}

.carrossel-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #006633;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vagas-empty {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.vagas-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ========================================== RESPONSIVIDADE ========================================= */

@media (max-width: 768px) {
    .vagas-publico-header h1 {
        font-size: 1.75rem;
    }
    
    .vagas-publico-header p {
        font-size: 1rem;
    }
    
    .carrossel-section {
        padding: 1.5rem;
    }
    
    .carrossel-section h2 {
        font-size: 1.5rem;
    }
    
    .carrossel-slide img {
        max-height: 400px;
    }
    
    .carrossel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .carrossel-btn.prev {
        left: 10px;
    }
    
    .carrossel-btn.next {
        right: 10px;
    }
    
    .vagas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .vaga-header {
        padding: 1.5rem;
        min-height: 100px;
    }
    
    .vaga-header h3 {
        font-size: 1.5rem;
    }
    
    .vaga-footer {
        flex-direction: column;
    }
    
    .vaga-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .vagas-content {
        padding: 2rem 15px;
    }
    
    .carrossel-section {
        padding: 1rem;
    }
    
    .carrossel-overlay {
        padding: 1rem;
    }
    
    .carrossel-overlay h3 {
        font-size: 1.25rem;
    }
}