/*===============================================*/
/* Sistema de Fotos y Videos de Boda             */
/* Estilos complementarios - Reutiliza tema      */
/*===============================================*/

/* Variables del tema floral */
:root {
    --primary-color: #94e0c6;
    --secondary-color: #63ecbd;
    --text-color: #333;
    --white: #fff;
    --border-color: #d5fbff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
}

/* Ajustes para el header del tema original */
.wed_page {
    position: relative;
}

/* Asegurar que el header sea visible */
header {
    position: relative;
    z-index: 100;
}

/* Header con fondo sólido para esta página */
header nav.wed_light_nav {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header nav.wed_light_nav .container {
    position: relative;
    overflow: visible;
}

/* Logo con colores visibles */
header .wed_logo {
    color: var(--text-color) !important;
}

/* Subtítulo visible */
header .wed_logo_und {
    color: var(--primary-color) !important;
}

/* Menú con colores visibles */
.wed_top_menu li a {
    color: var(--text-color) !important;
}

.wed_top_menu li a:hover {
    color: var(--primary-color) !important;
}

/* Estilo para el link activo del menú */
.wed_top_menu li a.active {
    color: var(--primary-color) !important;
    font-weight: bold;
}

/* Icono menú móvil visible */
.wed_top_menu_mobile_link i {
    color: var(--text-color) !important;
}

/* Ocultar pareja kissing (blanca) y mostrar solo la de color */
header .wed_white_couple {
    display: none !important;
}

header .wed_kissing_couple {
    display: block !important;
    opacity: 1 !important;
    max-width: 60px !important;
    height: auto !important;
}

/* Ajustar espaciado del logo texto */
header .wed_logo {
    margin-left: 70px !important;
}

/* Footer estilos mejorados */
footer h3 {
    margin-bottom: 15px;
    font-family: 'Bree Serif', serif;
}

footer .wed_footer_social a {
    font-size: 20px;
    transition: all 0.3s ease;
}

footer .wed_footer_social a:hover {
    transform: scale(1.2);
    color: var(--white) !important;
}

/* Pantalla de autenticación */
.wed_auth_section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding-top: 140px; /* Espacio para el header fijo */
}

/* Ajuste de sección de galería para tema */
#galleryScreen {
    background: #f9f9f9;
}

.wed_auth_container {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px var(--shadow-light);
    border: 3px solid var(--primary-color);
}

.wed_auth_form {
    margin-top: 40px;
}

.wed_auth_error {
    color: #d9534f;
    text-align: center;
    margin-top: 20px;
    display: none;
}

.wed_auth_error.show {
    display: block;
}

.wed_auth_info {
    margin-top: 30px;
    color: #999;
}

/* Sección de subida */
.wed_upload_section {
    padding-top: 140px;
    padding-bottom: 60px;
}

.wed_upload_container {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-light);
    border: 3px solid var(--primary-color);
    margin-top: 40px;
}

/* Zona de arrastrar y soltar */
.wed_drop_zone {
    border: 3px dashed var(--primary-color);
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fffe;
}

.wed_drop_zone:hover,
.wed_drop_zone.drag-over {
    border-color: var(--secondary-color);
    background: #e8fff9;
    transform: scale(1.02);
}

.wed_drop_zone i {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.wed_drop_zone p {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.wed_upload_hint {
    font-size: 14px;
    color: #999;
}

/* Botones de subida */
.wed_upload_buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.wed_upload_buttons .btn {
    min-width: 180px;
}

.wed_upload_buttons .btn i {
    margin-right: 8px;
}

/* Vista previa de archivos */
.wed_preview_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.wed_preview_item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow-light);
    border: 2px solid var(--primary-color);
}

.wed_preview_item img,
.wed_preview_item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.wed_preview_remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wed_preview_remove:hover {
    background: #d9534f;
    color: var(--white);
    transform: scale(1.1);
}

.wed_preview_type {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Formulario de subida */
.wed_upload_form {
    margin-top: 30px;
}

.wed_upload_actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Barra de progreso */
.wed_upload_progress {
    margin-top: 30px;
}

.wed_progress_bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px var(--shadow-light);
}

.wed_progress_fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: var(--white);
    font-weight: bold;
}

#progressText {
    margin-top: 10px;
    color: var(--text-color);
}

/* Controles de galería */
.wed_gallery_controls {
    padding: 40px 0;
}

.wed_stats_container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.wed_stat_item {
    text-align: center;
    padding: 20px 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow-light);
    border: 2px solid var(--primary-color);
    min-width: 150px;
    transition: all 0.3s ease;
}

.wed_stat_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow-medium);
}

.wed_stat_item i {
    font-size: 30px;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.wed_stat_item span {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color);
    display: block;
    margin-bottom: 5px;
}

/* Galería de medios */
.wed_media_gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0 150px;
}

.wed_media_item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
    cursor: pointer;
    transition: all 0.4s ease;
    background: var(--white);
    border: 3px solid var(--primary-color);
}

.wed_media_item.hidden {
    display: none;
}

.wed_media_item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.wed_media_thumbnail {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.wed_media_thumbnail img,
.wed_media_thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wed_media_item:hover .wed_media_thumbnail img,
.wed_media_item:hover .wed_media_thumbnail video {
    transform: scale(1.1);
}

.wed_media_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wed_media_item:hover .wed_media_overlay {
    opacity: 1;
}

.wed_media_overlay i {
    font-size: 50px;
    color: var(--white);
}

.wed_media_info {
    padding: 15px;
}

.wed_media_author {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 14px;
}

.wed_media_description {
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wed_media_actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.wed_like_btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px 10px;
    font-size: 14px;
}

.wed_like_btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.wed_like_btn.liked {
    color: #e74c3c;
}

.wed_like_btn.liked i {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.wed_media_time {
    font-size: 12px;
    color: #999;
}

.wed_video_badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Modal de vista completa */
.wed_media_modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.wed_media_modal.active {
    display: block;
}

.wed_modal_content {
    position: relative;
    margin: 60px auto;
    max-width: 1200px;
    padding: 20px;
}

#modalMediaContainer img,
#modalMediaContainer video {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.wed_modal_info {
    background: var(--white);
    padding: 30px;
    margin-top: 20px;
    border-radius: 10px;
}

.wed_modal_info h4 {
    margin-top: 0;
    color: var(--text-color);
}

.wed_modal_info p {
    color: #666;
    margin-bottom: 20px;
}

.wed_modal_actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.wed_modal_close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.wed_modal_close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.wed_modal_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    font-size: 40px;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.wed_modal_nav:hover {
    background-color: rgba(148, 224, 198, 0.8);
}

.wed_modal_prev {
    left: 20px;
}

.wed_modal_next {
    right: 20px;
}

/* Responsive para tablets */
@media (max-width: 992px) {
    header .wed_kissing_couple {
        max-width: 55px !important;
    }

    header .wed_logo {
        margin-left: 65px !important;
        font-size: 20px !important;
    }

    header .wed_logo_und {
        font-size: 12px !important;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    /* Header más pequeño en móvil */
    .wed_auth_section {
        padding-top: 120px;
    }

    .wed_upload_section {
        padding-top: 120px;
    }

    /* Logo de pareja más pequeño en móvil */
    header .wed_kissing_couple {
        max-width: 45px !important;
    }

    header .wed_logo {
        margin-left: 55px !important;
        font-size: 18px !important;
    }

    header .wed_logo_und {
        font-size: 11px !important;
    }

    /* Menú móvil con fondo blanco y texto visible */
    .wed_top_menu_cont {
        background: rgba(255, 255, 255, 0.98) !important;
    }

    .wed_top_menu_cont:after {
        background: var(--white) !important;
    }

    /* Enlaces del menú móvil en color oscuro */
    .wed_top_menu li a {
        color: var(--text-color) !important;
    }

    .wed_top_menu li a:hover {
        color: var(--primary-color) !important;
    }

    /* Logo y icono de menú cuando está abierto */
    header nav.active .wed_top_menu_mobile_link,
    header nav.active .wed_logo {
        color: var(--text-color) !important;
    }

    .wed_auth_container {
        padding: 40px 20px;
    }
    
    .wed_upload_container {
        padding: 20px;
    }
    
    .wed_drop_zone {
        padding: 40px 15px;
    }
    
    .wed_drop_zone i {
        font-size: 40px;
    }
    
    .wed_upload_buttons {
        flex-direction: column;
    }
    
    .wed_upload_buttons .btn {
        width: 100%;
    }
    
    .wed_preview_container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .wed_preview_item img,
    .wed_preview_item video {
        height: 100px;
    }
    
    .wed_stats_container {
        gap: 15px;
    }
    
    .wed_stat_item {
        padding: 15px 20px;
        min-width: 120px;
    }
    
    .wed_stat_item i {
        font-size: 24px;
    }
    
    .wed_stat_item span {
        font-size: 20px;
    }
    
    .wed_media_gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        padding: 20px 0 120px;
    }
    
    .wed_media_thumbnail {
        height: 180px;
    }
    
    .wed_modal_content {
        margin: 20px auto;
        padding: 10px;
    }
    
    .wed_modal_nav {
        font-size: 30px;
        padding: 15px 20px;
    }
    
    .wed_modal_close {
        right: 20px;
        font-size: 40px;
    }
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
    header .wed_kissing_couple {
        max-width: 40px !important;
    }

    header .wed_logo {
        margin-left: 50px !important;
        font-size: 16px !important;
    }

    header .wed_logo_und {
        font-size: 10px !important;
    }
}

/* Animaciones adicionales */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wed_media_item {
    animation: fadeIn 0.5s ease forwards;
}

/* Ocultar scrollbar pero mantener funcionalidad */
.wed_media_modal::-webkit-scrollbar {
    width: 10px;
}

.wed_media_modal::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.wed_media_modal::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.wed_media_modal::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Estados de carga */
.wed_loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.wed_loading i {
    font-size: 40px;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mensajes de éxito/error */
.wed_message {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow-medium);
    z-index: 9999;
    display: none;
    animation: slideIn 0.3s ease;
}

.wed_message.show {
    display: block;
}

.wed_message.success {
    border-left: 5px solid #5cb85c;
}

.wed_message.error {
    border-left: 5px solid #d9534f;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}