/* ==========================================
   PÁGINA DE VÍDEOS - GESTÃO DE PESSOAS
   Design Moderno com Padrão do Site
   ========================================== */

/* Hero Section */
.videos-hero {
    background: linear-gradient(135deg, #0c2671 0%, #1e3a8a 50%, #3b82f6 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.videos-hero::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 1200 120"><path d="M0,0 L1200,0 L1200,100 Q600,50 0,100 Z" fill="rgba(255,255,255,0.05)"/></svg>') repeat-x bottom;
    background-size: 100% 80px;
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

.hero-title i {
    color: #fbbf24;
    margin-right: 15px;
    animation: pulse 2s infinite;
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Videos Section */
.videos-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    min-height: 60vh;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    margin-top: 30px;
}

/* Video Card */
.video-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(12, 38, 113, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(12, 38, 113, 0.15);
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    overflow: hidden;
}

/* Video Thumbnail */
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* Play Overlay */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 38, 113, 0.7) 0%, rgba(59, 130, 246, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.video-thumbnail:hover .play-button {
    transform: scale(1.15);
    background: #ffffff;
}

.play-button i {
    font-size: 2rem;
    color: #0c2671;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.video-thumbnail:hover .play-button i {
    color: #3b82f6;
}

/* Video iframe Container */
.video-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-iframe-container iframe {
    border: none;
}

/* Video Info */
.video-info {
    padding: 25px;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0c2671;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.video-card:hover .video-title {
    color: #3b82f6;
}

.video-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.video-date,
.video-views {
    font-size: 0.875rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-date i,
.video-views i {
    color: #3b82f6;
}

.video-views {
    font-weight: 600;
    color: #0c2671;
    cursor: pointer;
    transition: color 0.3s ease;
}

.video-views:hover {
    color: #3b82f6;
}

/* No Videos State */
.no-videos {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
}

.no-videos i {
    font-size: 5rem;
    color: #d1d5db;
    margin-bottom: 25px;
}

.no-videos h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 15px;
}

.no-videos p {
    font-size: 1.1rem;
    color: #6b7280;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .videos-hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .videos-section {
        padding: 50px 0;
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .video-card {
        border-radius: 12px;
    }
    
    .play-button {
        width: 65px;
        height: 65px;
    }
    
    .play-button i {
        font-size: 1.5rem;
    }
    
    .video-info {
        padding: 20px;
    }
    
    .video-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .videos-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Smooth Loading Animation */
.video-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.2s; }
.video-card:nth-child(3) { animation-delay: 0.3s; }
.video-card:nth-child(4) { animation-delay: 0.4s; }
.video-card:nth-child(5) { animation-delay: 0.5s; }
.video-card:nth-child(6) { animation-delay: 0.6s; }
