/**
 * Turn.js Flipbook - Estilos Exclusivos
 * Basado en documentación oficial: http://www.turnjs.com/
 */

/* Reset para el flipbook */
#flipbook {
    width: 922px;
    height: 600px;
    margin: 0 auto;
}

#flipbook .page {
    width: 461px;
    height: 600px;
    background-color: white;
    line-height: 600px;
    font-size: 20px;
    text-align: center;
}

/* Estilos básicos de turn.js */
#flipbook .turn-page {
    background-color: white;
}

/* Hard pages (portadas) */
#flipbook .hard {
    background: white !important;
    color: #333;
    font-weight: bold;
}

/* Sombras de turn.js */
#flipbook .shadow {
    transition: box-shadow 0.5s;
}

/* Prevenir selección de texto */
#flipbook * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin: 0;
    padding: 0;
}

/* Container responsive */
.flipbook-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imágenes dentro de las páginas */
#flipbook .page img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Modal overlay */
.flipbook-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
}

.flipbook-modal-overlay.active {
    display: block;
}

/* Controles flotantes */
.flipbook-controls-overlay {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10001;
}

.flipbook-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid var(--zikpic-green, #22c55e);
    color: var(--zikpic-green, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    margin-bottom: 15px;
}

.flipbook-page-counter {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 25px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid var(--zikpic-green, #22c55e);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    text-align: center;
}

.flipbook-page-counter span {
    color: var(--zikpic-green, #22c55e);
}

.flipbook-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid var(--zikpic-green, #22c55e);
    color: var(--zikpic-green, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 22px;
    z-index: 10001;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.flipbook-close-btn:hover {
    background: var(--zikpic-green, #22c55e);
    color: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 30px rgba(34, 197, 94, 0.6);
}
