/* 
 * CSS específico para a página de Cursos
 * VS2 Theme - Cursos Styles
 */

/* Introdução da página cursos */
.page-intro {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e1e1e1;
}

.page-intro p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
}

/* Container principal dos cursos */
.cursos-container {
    margin-top: 20px;
}

/* Card individual do curso */
.curso-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.curso-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.curso-card.expanded {
    border-color: #ff6600;
}

/* Cabeçalho do curso */
.curso-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a8a 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.curso-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.curso-titulo {
    margin: 0;
    font-size: 1.3em;
    font-weight: bold;
    line-height: 1.3;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Botão toggle */
.curso-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.curso-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.curso-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.curso-card.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Conteúdo do curso */
.curso-content {
    background: white;
}

/* Resumo do curso - sempre visível */
.curso-resumo {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
}

/* Grid de informações básicas */
.curso-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f0f4f8;
    border-left-color: #ff6600;
}

.info-label {
    font-weight: bold;
    color: #333;
    min-width: 80px;
    flex-shrink: 0;
    font-size: 0.9em;
}

.info-value {
    color: #555;
    flex: 1;
    line-height: 1.4;
    font-size: 0.9em;
}

/* Detalhes do curso - expandível */
.curso-detalhes {
    display: none;
    padding: 0 25px 25px 25px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Seções de detalhes */
.detalhe-section {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8ecef;
}

.detalhe-section:last-child {
    margin-bottom: 0;
}

.detalhe-titulo {
    background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
    color: white;
    margin: 0;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.detalhe-titulo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.detalhe-content {
    padding: 20px;
    background: white;
    line-height: 1.6;
    color: #444;
}

.detalhe-content p {
    margin-bottom: 12px;
}

.detalhe-content p:last-child {
    margin-bottom: 0;
}

.detalhe-content ul,
.detalhe-content ol {
    margin: 12px 0;
    padding-left: 25px;
}

.detalhe-content li {
    margin-bottom: 6px;
}

.detalhe-content strong {
    color: #333;
}

.detalhe-content em {
    color: #666;
    font-style: italic;
}

/* Informações do facilitador */
.facilitador-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #ff6600;
    font-style: italic;
    position: relative;
}

.facilitador-info::before {
    content: "👨‍🏫";
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5em;
    opacity: 0.3;
}

/* Estado sem cursos */
.no-cursos {
    text-align: center;
    padding: 60px 30px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px dashed #ddd;
    color: #666;
}

.no-cursos h3 {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.5em;
}

.no-cursos p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.no-cursos ol {
    text-align: left;
    display: inline-block;
    margin: 20px 0;
    background: white;
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

.no-cursos li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.no-cursos strong {
    color: #333;
}

.btn-adicionar-curso {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-adicionar-curso:hover {
    background: #005a8a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Variações para cores alternadas */
.curso-card:nth-child(even) .curso-header {
    background: linear-gradient(135deg, #ff6600 0%, #e55a00 100%);
}

.curso-card:nth-child(even) .info-item {
    border-left-color: #ff6600;
}

.curso-card:nth-child(even) .info-item:hover {
    border-left-color: #0073aa;
}

.curso-card:nth-child(even) .detalhe-titulo {
    background: linear-gradient(135deg, #0073aa 0%, #005a8a 100%);
}

.curso-card:nth-child(even) .facilitador-info {
    border-left-color: #0073aa;
}

/* Responsivo para tablets */
@media (max-width: 1024px) {
    .curso-header {
        padding: 18px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .curso-titulo {
        font-size: 1.2em;
    }
    
    .curso-toggle {
        align-self: center;
    }
    
    .curso-resumo {
        padding: 20px;
    }
    
    .curso-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .info-item {
        padding: 10px 12px;
    }
    
    .curso-detalhes {
        padding: 0 20px 20px 20px;
    }
    
    .detalhe-content {
        padding: 15px;
    }
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .cursos-container {
        margin-top: 15px;
    }
    
    .curso-card {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .curso-header {
        padding: 15px 18px;
    }
    
    .curso-titulo {
        font-size: 1.1em;
    }
    
    .curso-toggle {
        padding: 8px 16px;
        font-size: 0.85em;
    }
    
    .curso-resumo {
        padding: 18px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 5px;
        padding: 12px;
    }
    
    .info-label {
        min-width: auto;
        font-size: 0.85em;
        color: #0073aa;
    }
    
    .info-value {
        font-size: 0.9em;
    }
    
    .curso-detalhes {
        padding: 0 18px 18px 18px;
    }
    
    .detalhe-section {
        margin-bottom: 20px;
    }
    
    .detalhe-titulo {
        padding: 12px 15px;
        font-size: 1em;
    }
    
    .detalhe-content {
        padding: 15px;
        font-size: 0.9em;
    }
    
    .facilitador-info::before {
        top: 12px;
        right: 15px;
        font-size: 1.3em;
    }
    
    .no-cursos {
        padding: 40px 20px;
    }
    
    .no-cursos ol {
        padding: 15px 20px;
    }
}

/* Mobile muito pequeno */
@media (max-width: 480px) {
    .curso-header {
        padding: 12px 15px;
    }
    
    .curso-titulo {
        font-size: 1em;
    }
    
    .curso-toggle {
        padding: 6px 12px;
        font-size: 0.8em;
    }
    
    .curso-resumo {
        padding: 15px;
    }
    
    .curso-detalhes {
        padding: 0 15px 15px 15px;
    }
    
    .detalhe-titulo {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    
    .detalhe-content {
        padding: 12px;
        font-size: 0.85em;
    }
    
    .no-cursos {
        padding: 30px 15px;
    }
}

/* Melhorias para acessibilidade */
.curso-toggle:focus {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
}

.curso-card:focus-within {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Animações mais suaves */
.curso-card {
    animation: fadeInUp 0.6s ease-out;
}

.curso-card:nth-child(2) {
    animation-delay: 0.1s;
}

.curso-card:nth-child(3) {
    animation-delay: 0.2s;
}

.curso-card:nth-child(4) {
    animation-delay: 0.3s;
}

.curso-card:nth-child(5) {
    animation-delay: 0.4s;
}

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

/* Hover effects especiais */
.curso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.02) 0%, rgba(255, 102, 0, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 12px;
}

.curso-card:hover::before {
    opacity: 1;
}

/* Print styles */
@media print {
    .curso-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 20px;
    }
    
    .curso-header {
        background: #333 !important;
        color: white;
    }
    
    .curso-toggle {
        display: none;
    }
    
    .curso-detalhes {
        display: block !important;
    }
    
    .detalhe-titulo {
        background: #666 !important;
        color: white;
    }
    
    .curso-card::before {
        display: none;
    }
}