/* Advanced Media Slider - Frontend Styles */

.ams-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #000;
    border-radius: 8px;
}

.ams-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.ams-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.ams-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.ams-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ams-slide iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Overlay de contenido */
.ams-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 3rem;
    color: white;
    z-index: 3;
}

.ams-slide-overlay h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
}

.ams-slide-overlay p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
}

.ams-slide-button {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ams-slide-button:hover {
    background: #2563eb;
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

/* Controles de navegación */
.ams-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.ams-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.ams-arrow:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.ams-prev {
    left: 1rem;
}

.ams-next {
    right: 1rem;
}

/* Puntos de navegación */
.ams-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    pointer-events: auto;
}

.ams-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ams-dot:hover {
    background: rgba(255,255,255,0.8);
}

.ams-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Botón Play/Pause */
.ams-play-pause {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.ams-play-pause:hover {
    background: rgba(0,0,0,0.8);
}

/* Contador */
.ams-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    pointer-events: none;
}

/* Miniaturas */
.ams-thumbnails {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    overflow-x: auto;
}

.ams-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.ams-thumbnail:hover {
    opacity: 1;
    border-color: #94a3b8;
}

.ams-thumbnail.active {
    opacity: 1;
    border-color: #3b82f6;
}

.ams-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ams-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Contenido HTML personalizado */
.ams-html-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .ams-slide-overlay {
        padding: 2rem 1.5rem;
    }
    
    .ams-slide-overlay h2 {
        font-size: 2rem;
    }
    
    .ams-slide-overlay p {
        font-size: 1rem;
    }
    
    .ams-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .ams-prev {
        left: 0.5rem;
    }
    
    .ams-next {
        right: 0.5rem;
    }
    
    .ams-thumbnail {
        width: 100px;
        height: 60px;
    }
}