/* ========================================
   VIDEO CARD - Card Reutilizável de Vídeo
   Segue o mesmo padrão do noticia-card
   ======================================== */

/* Link wrapper (remove estilos de link) */
.video-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card principal */
.video-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-10px);
    border-color: var(--radio-primary, #FF8C00);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Wrapper da imagem */
.video-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

/* Imagem */
.video-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-card-image {
    transform: scale(1.05);
}

/* Placeholder quando não há imagem */
.video-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card-placeholder i {
    font-size: 4rem;
    color: white;
    opacity: 0.7;
}

/* Play Overlay */
.video-card-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-card:hover .video-card-play-overlay {
    opacity: 1;
}

/* Badge de categoria */
.video-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: var(--radio-primary, #FF8C00);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    z-index: 2;
}

/* Conteúdo do card */
.video-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Título */
.video-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card:hover .video-card-title {
    color: var(--radio-primary, #FF8C00);
}

/* Resumo/Excerpt */
.video-card-excerpt {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta informações */
.video-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.video-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.video-card-meta-item i {
    font-size: 1rem;
}

/* Indicador de "Assistir" */
.video-card-watch-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    color: #212529;
    font-weight: 600;
    transition: all 0.2s ease;
}

.video-card:hover .video-card-watch-more {
    background: var(--radio-primary, #FF8C00);
    color: white;
}

.video-card-watch-more i {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.video-card:hover .video-card-watch-more i {
    transform: translateX(5px);
}

/* Grid de Vídeos - 3 por linha */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Responsividade */
@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-card-image-wrapper {
        height: 200px;
    }
    
    .video-card-title {
        font-size: 1.25rem;
    }
    
    .video-card-excerpt {
        font-size: 0.9375rem;
    }
}

@media (max-width: 576px) {
    .video-card-content {
        padding: 1rem;
    }
    
    .video-card-title {
        font-size: 1.125rem;
    }
}

@media (min-width: 1400px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   PAGINAÇÃO DE VÍDEOS
   ======================================== */

.videos-pagination {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.videos-pagination .pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.videos-pagination .page-item {
    margin: 0;
}

.videos-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.videos-pagination .page-link:hover {
    background: var(--radio-primary, #FF8C00);
    border-color: var(--radio-primary, #FF8C00);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.videos-pagination .page-item.active .page-link {
    background: var(--radio-primary, #FF8C00);
    border-color: var(--radio-primary, #FF8C00);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.videos-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-info {
    text-align: center;
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Responsivo para paginação */
@media (max-width: 576px) {
    .videos-pagination .page-link {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        font-size: 0.9rem;
    }
    
    .videos-pagination .pagination {
        gap: 5px;
    }
}

/* ========================================
   HEADER E FILTROS DE VÍDEOS
   ======================================== */

.videos-header {
    background: linear-gradient(135deg, var(--radio-primary, #FF8C00) 0%, var(--radio-secondary, #FF6B00) 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.videos-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.videos-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.filtros-videos {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.btn-categoria {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-categoria:hover {
    background: var(--radio-primary, #FF8C00);
    border-color: var(--radio-primary, #FF8C00);
    color: white;
    transform: translateY(-2px);
}

.btn-categoria.active {
    background: var(--radio-primary, #FF8C00);
    border-color: var(--radio-primary, #FF8C00);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.filtros-videos .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
}

.filtros-videos .form-control:focus {
    border-color: var(--radio-primary, #FF8C00);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.filtros-videos .btn-primary {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
}

/* Mensagem de sem vídeos */
.sem-videos {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.sem-videos i {
    font-size: 5rem;
    opacity: 0.3;
}

.sem-videos h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
}

.sem-videos p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsivo para header e filtros */
@media (max-width: 768px) {
    .videos-header h1 {
        font-size: 2rem;
    }
    
    .videos-header p {
        font-size: 1rem;
    }
    
    .filtros-videos {
        padding: 1.5rem;
    }
    
    .btn-categoria {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
}
