/*===============================================*/
/* Slideshow de Boda - Pantalla de Proyección   */
/* Mantiene la estética del tema principal      */
/*===============================================*/

/* Variables del tema */
:root {
    --primary-color: #94e0c6;
    --secondary-color: #63ecbd;
    --text-color: #333;
    --white: #fff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
    --transition-speed: 1.5s;
}

/* Reset y configuración general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    overflow: hidden;
    background: #000;
    color: var(--white);
}

.wed_page {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Header simplificado para slideshow */
.slideshow-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 20px 40px;
    transition: opacity 0.3s ease;
}

.slideshow-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.slideshow-couple-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.slideshow-names {
    flex: 1;
    text-align: center;
}

.slideshow-names h1 {
    font-family: 'Bree Serif', serif;
    font-size: 36px;
    margin-bottom: 5px;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.slideshow-names p {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.slideshow-counter {
    display: flex;
    gap: 20px;
}

.counter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(148, 224, 198, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.counter-item i {
    font-size: 20px;
    color: var(--primary-color);
}

.counter-item span {
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
}

/* Contenedor principal del slideshow */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-slide.active {
    opacity: 1;
    z-index: 2;
}

.slideshow-slide.fade-out {
    opacity: 0;
    z-index: 1;
}

/* Imágenes y videos en el slideshow */
.slideshow-slide img,
.slideshow-slide video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}

/* Placeholder cuando no hay fotos */
.slideshow-placeholder {
    text-align: center;
    padding: 60px;
    background: rgba(148, 224, 198, 0.1);
    border: 3px dashed var(--primary-color);
    border-radius: 20px;
    max-width: 600px;
    backdrop-filter: blur(10px);
}

.slideshow-placeholder i {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: block;
    animation: pulse 2s infinite;
}

.slideshow-placeholder h2 {
    font-family: 'Bree Serif', serif;
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--white);
}

.slideshow-placeholder p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Barra de progreso */
.slideshow-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 90;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.1s linear;
}

/* Información de la foto actual */
.slideshow-info {
    position: fixed;
    bottom: 30px;
    left: 40px;
    right: 40px;
    z-index: 95;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 30px 40px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slideshow-info.visible {
    opacity: 1;
}

.info-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-author i {
    font-size: 18px;
    color: var(--primary-color);
}

.info-author span {
    font-size: 18px;
    font-weight: bold;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.info-description {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 20px;
}

.info-time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Controles del slideshow */
.slideshow-controls {
    position: fixed;
    bottom: 100px;
    right: 40px;
    z-index: 100;
    display: flex;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slideshow-controls.visible {
    opacity: 1;
}

.control-btn {
    background: rgba(148, 224, 198, 0.3);
    border: 2px solid var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.control-btn i {
    font-size: 18px;
}

/* Notificación de nuevas fotos */
.slideshow-notification {
    position: fixed;
    top: 120px;
    right: 40px;
    z-index: 110;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px var(--shadow-medium);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s ease;
}

.slideshow-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.slideshow-notification i {
    font-size: 20px;
    animation: ring 1s ease infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.slideshow-notification span {
    font-size: 16px;
    font-weight: bold;
}

/* Efectos de transición adicionales */
.slideshow-slide.zoom-in {
    animation: zoomIn 20s ease-in-out;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Ocultar header y controles automáticamente */
body.hide-ui .slideshow-header,
body.hide-ui .slideshow-controls,
body.hide-ui .slideshow-info {
    opacity: 0;
    pointer-events: none;
}

/* Mostrar UI al mover el mouse */
body:hover .slideshow-header,
body:hover .slideshow-controls,
body:hover .slideshow-info {
    opacity: 1;
}

/* Responsive para pantallas más pequeñas */
@media (max-width: 768px) {
    .slideshow-header {
        padding: 15px 20px;
    }

    .slideshow-couple-logo {
        height: 40px;
    }

    .slideshow-names h1 {
        font-size: 24px;
    }

    .slideshow-names p {
        font-size: 12px;
    }

    .counter-item {
        padding: 8px 15px;
    }

    .counter-item i {
        font-size: 16px;
    }

    .counter-item span {
        font-size: 18px;
    }

    .slideshow-info {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .info-description {
        font-size: 16px;
        margin: 10px 0;
    }

    .slideshow-controls {
        bottom: 80px;
        right: 20px;
        flex-wrap: wrap;
    }

    .control-btn {
        width: 40px;
        height: 40px;
    }

    .control-btn i {
        font-size: 14px;
    }

    .slideshow-placeholder {
        padding: 40px;
        max-width: 90%;
    }

    .slideshow-placeholder i {
        font-size: 60px;
    }

    .slideshow-placeholder h2 {
        font-size: 24px;
    }

    .slideshow-placeholder p {
        font-size: 14px;
    }
}

/* Fullscreen optimizations */
.wed_page:-webkit-full-screen {
    width: 100%;
    height: 100%;
}

.wed_page:-moz-full-screen {
    width: 100%;
    height: 100%;
}

.wed_page:-ms-fullscreen {
    width: 100%;
    height: 100%;
}

.wed_page:fullscreen {
    width: 100%;
    height: 100%;
}

/* Loading spinner */
.slideshow-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
}

.slideshow-loading i {
    font-size: 60px;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
