/* Estilos para la sección de videos de chollos - Dark Theme */

.chollo-videos-section {
    margin-top: 40px;
    background: var(--bg-card, #1a1a1a);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-soft, 0 4px 15px rgba(0, 0, 0, 0.3));
    border: var(--border-soft, 1px solid rgba(255, 255, 255, 0.1));
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
    /* Fix width alignment */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.chollo-videos-section.loaded {
    opacity: 1;
    max-height: 5000px;
    animation: fadeIn 0.5s ease;
}

.videos-header {
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.videos-header h2,
.videos-header h3 {
    margin: 0;
    color: var(--text-white, #fff);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

/* Fix for FontAwesome Icons in header */
.videos-header .fab {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "Font Awesome Brands", FontAwesome, sans-serif !important;
    font-weight: 400 !important;
}

.videos-header .fas {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome Pro", FontAwesome, sans-serif !important;
    font-weight: 900 !important;
}

.videos-header i {
    color: #FF0000;
}

.product-name-badge {
    background: var(--bg-card-light, #2a2a2a);
    color: var(--text-gray, #b0b0b0);
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 15px;
    margin-left: auto;
    font-weight: normal;
}

/* Shorts Container (Horizontal Scroll) */
.shorts-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 20px;
    margin-bottom: 30px;
    scrollbar-width: thin;
    scrollbar-color: #E30613 rgba(255, 255, 255, 0.1);
}

.shorts-container::-webkit-scrollbar {
    height: 8px;
}

.shorts-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.shorts-container::-webkit-scrollbar-thumb {
    background-color: #E30613;
    border-radius: 4px;
}

.short-card {
    flex: 0 0 160px;
    height: 280px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    transition: transform 0.3s ease;
}

.short-card:hover {
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.short-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.short-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 15px 10px;
    color: white;
}

.short-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.short-title {
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Videos Grid (Reviews) */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--bg-card-light, #2a2a2a);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.video-thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: background 0.2s;
}

.video-card:hover .play-button {
    background: #FF0000;
}

.video-info {
    padding: 12px;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white, #fff);
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    font-size: 0.8rem;
    color: var(--text-dim, #888);
    display: flex;
    justify-content: space-between;
}

/* Video Modal */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.video-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-content {
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .videos-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .product-name-badge {
        margin-left: 0;
    }
}