/* Godaa Videos Frontend Styles */


.godaa-video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
}

.godaa-video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.godaa-video-info {
    padding: 20px;
}

/* Título do vídeo - estilos removidos para permitir customização via Elementor */
.godaa-video-title {
    /* Estilos são aplicados via widget do Elementor */
}

/* Descrição do vídeo - estilos removidos para permitir customização via Elementor */
.godaa-video-description {
    /* Estilos são aplicados via widget do Elementor */
}

.godaa-video-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
}

.godaa-video-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.godaa-video-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Grid de vídeos */
.godaa-videos-grid {
    display: grid;
    gap: 30px;
    margin: 20px 0;
}

.godaa-videos-columns-1 {
    grid-template-columns: 1fr;
}

.godaa-videos-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.godaa-videos-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.godaa-videos-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.godaa-video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.godaa-video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

.godaa-video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.godaa-video-no-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.godaa-video-no-thumbnail .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.5);
}

.godaa-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.godaa-video-play-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.godaa-video-play-btn .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #fff;
}

.godaa-video-duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.godaa-video-content {
    padding: 15px;
}

.godaa-video-item-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.godaa-video-item-description {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.godaa-video-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #999;
    font-size: 13px;
}

.godaa-video-item-meta .godaa-video-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.godaa-video-item-meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Modal de vídeo */
.godaa-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.godaa-video-modal.active {
    display: flex;
}

.godaa-video-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.godaa-video-modal-video-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 95vh;
}

.godaa-video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.godaa-video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.godaa-video-modal video {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Responsive */
@media screen and (max-width: 992px) {
    .godaa-videos-columns-4,
    .godaa-videos-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .godaa-videos-columns-4,
    .godaa-videos-columns-3,
    .godaa-videos-columns-2 {
        grid-template-columns: 1fr;
    }


    .godaa-video-meta {
        flex-wrap: wrap;
    }

    .godaa-video-modal {
        padding: 10px;
    }

    .godaa-video-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .godaa-video-modal video {
        max-height: 90vh;
    }

    .godaa-video-modal-video-wrapper {
        max-height: 90vh;
    }
}

/* Suporte para orientação landscape em mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .godaa-video-modal-close {
        top: 5px;
        right: 5px;
    }

    .godaa-video-modal video {
        max-height: 85vh;
    }
}
