/* ==========================================
   ROTEIROS DE ESTUDO - Sistema de Upload de PDFs
   ========================================== */

/* Tabs de Filtro por Área */
.roteiros-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.roteiro-tab-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.roteiro-tab-btn:hover {
    background: #f8fafc;
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
}

.roteiro-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Grid de Roteiros */
.roteiros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Card de Roteiro */
.roteiro-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.roteiro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.roteiro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

/* Badge de Área */
.roteiro-area-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.roteiro-area-badge.linguagens {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.roteiro-area-badge.exatas {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.roteiro-area-badge.humanas {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

/* Título do Roteiro */
.roteiro-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Descrição */
.roteiro-descricao {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Informações do Roteiro */
.roteiro-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.roteiro-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.roteiro-info-item i {
    color: #2563eb;
    width: 16px;
    text-align: center;
}

/* Ações do Roteiro */
.roteiro-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-visualizar,
.btn-baixar,
.btn-excluir-roteiro {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-visualizar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-visualizar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-baixar {
    background: #10b981;
    color: white;
}

.btn-baixar:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-excluir-roteiro {
    background: #ef4444;
    color: white;
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
}

.btn-excluir-roteiro:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Estado Vazio */
.roteiros-vazio {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.roteiros-vazio i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.roteiros-vazio h3 {
    color: #64748b;
    margin-bottom: 0.5rem;
}

/* Loading State */
.roteiros-loading {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.roteiros-loading i {
    font-size: 2.5rem;
    color: #2563eb;
    animation: spin 1s linear infinite;
}

/* Ícones por Área */
.area-icon {
    font-size: 1.5rem;
    display: inline-block;
}

.area-icon.linguagens::before {
    content: '📖';
}

.area-icon.exatas::before {
    content: '🔢';
}

.area-icon.humanas::before {
    content: '🌍';
}

/* Responsividade */
@media (max-width: 768px) {
    .roteiros-grid {
        grid-template-columns: 1fr;
    }
    
    .roteiros-tabs {
        flex-direction: column;
    }
    
    .roteiro-tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .roteiro-actions {
        flex-direction: column;
    }
    
    .btn-excluir-roteiro {
        width: 100%;
    }
}

/* Animação de fade in para cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.roteiro-card {
    animation: fadeInUp 0.5s ease;
}

/* Contador de Roteiros */
.roteiros-contador {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    color: #64748b;
    font-weight: 600;
}

.roteiros-contador i {
    color: #2563eb;
    margin-right: 0.5rem;
}
