/* Estilos customizados para páginas de vídeos */

/* Player de vídeo */
.video-player {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.video-player iframe,
.video-player video {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .video-player iframe,
    .video-player video {
        height: 500px;
    }
}

@media (min-width: 1200px) {
    .video-player iframe,
    .video-player video {
        height: 600px;
    }
}

/* Informações do vídeo */
.video-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.video-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .video-title {
        font-size: 1.5rem;
    }
}

.video-meta {
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.video-meta .meta-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.video-meta i {
    margin-right: 5px;
    color: #28a745;
    font-size: 16px;
}

.video-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.video-description h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.video-description p {
    margin-bottom: 15px;
}

.video-description p:last-child {
    margin-bottom: 0;
}

/* Botões de compartilhamento */
.share-buttons {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.share-buttons h6 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.share-buttons .btn {
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Lista de vídeos */
.video-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-decoration: none;
}

.play-overlay:hover {
    background: rgba(40, 167, 69, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
}

.play-overlay i {
    color: #fff;
    font-size: 28px;
    margin-left: 3px;
}

.video-content {
    padding: 25px;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.video-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.video-title a:hover {
    color: #28a745;
}

.video-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.video-meta i {
    margin-right: 5px;
    color: #28a745;
}

.video-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Vídeos relacionados */
.related-videos .video-item {
    margin-bottom: 20px;
}

.related-videos .video-thumbnail {
    height: 120px;
}

.related-videos .play-overlay {
    width: 50px;
    height: 50px;
}

.related-videos .play-overlay i {
    font-size: 18px;
    margin-left: 2px;
}

.related-videos .video-content {
    padding: 15px;
}

.related-videos .video-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-videos .video-title a {
    color: #333;
    text-decoration: none;
}

.related-videos .video-title a:hover {
    color: #28a745;
}

.related-videos .video-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 0;
}

/* Header da página */
.page-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
}

/* Mensagem quando não há vídeos */
.no-videos {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    margin: 40px 0;
    border: 1px solid #e9ecef;
}

.no-videos i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-videos h3 {
    color: #495057;
    margin-bottom: 10px;
}

.no-videos p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: bold;
}

.breadcrumb-item a {
    color: #28a745;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #1e7e34;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Widget titles */
.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #28a745;
    color: #333;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #20c997;
}

/* Vídeos populares na sidebar */
.popular-videos .popular-video-item {
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.popular-videos .popular-video-item:hover {
    background-color: #f8f9fa;
}

.popular-videos .popular-video-item img {
    border-radius: 6px;
}

.popular-videos .popular-video-item h6 a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
}

.popular-videos .popular-video-item h6 a:hover {
    color: #28a745;
}

.popular-videos .popular-video-item small {
    font-size: 11px;
}

/* Paginação */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    border: 2px solid transparent;
    color: #28a745;
    font-weight: 600;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: #28a745;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(45deg, #28a745, #20c997);
    border-color: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
}

/* Responsividade */
@media (max-width: 768px) {
    .video-info {
        padding: 20px;
    }
    
    .video-content {
        padding: 20px;
    }
    
    .video-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .video-thumbnail {
        height: 180px;
    }
    
    .play-overlay {
        width: 60px;
        height: 60px;
    }
    
    .play-overlay i {
        font-size: 24px;
    }
    
    .share-buttons .btn {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    .video-player iframe,
    .video-player video {
        height: 250px;
    }
    
    .video-title {
        font-size: 1.25rem;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .video-content {
        padding: 15px;
    }
    
    .video-thumbnail {
        height: 160px;
    }
    
    .share-buttons {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .share-buttons .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-item {
    animation: fadeInUp 0.6s ease forwards;
}

.video-item:nth-child(1) { animation-delay: 0.1s; }
.video-item:nth-child(2) { animation-delay: 0.2s; }
.video-item:nth-child(3) { animation-delay: 0.3s; }
.video-item:nth-child(4) { animation-delay: 0.4s; }
.video-item:nth-child(5) { animation-delay: 0.5s; }
.video-item:nth-child(6) { animation-delay: 0.6s; }

/* Loading states */
.video-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Melhorias de acessibilidade */
.play-overlay:focus {
    outline: 3px solid #28a745;
    outline-offset: 2px;
}

.video-title a:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .video-player,
    .share-buttons,
    .related-videos,
    .page-header {
        display: none;
    }
    
    .video-info {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}