/* ============================================
   MENU FLIPBOOK STYLES - EXTRA WIDE
   ============================================ */

/* Flipbook Container */
.flipbook-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px;
    position: relative;
}

/* Book Wrapper */
.flipbook-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    padding: 0 5px;
}

/* Book */
.flip-book {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 600px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
    background: #1a1a1a;
    overflow: hidden;
}

/* Pages Container */
.flip-pages {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Page */
.flip-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    transform-origin: left center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    cursor: pointer;
}

.flip-page-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.flip-page-front,
.flip-page-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #0a0a0a;
    border-radius: 10px;
    overflow: hidden;
}

.flip-page-front {
    z-index: 2;
}

.flip-page-back {
    transform: rotateY(180deg);
}

.flip-page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #0a0a0a;
}

/* Page Number Overlay */
.page-number {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Zoom Hint */
.zoom-hint {
    position: absolute;
    bottom: 15px;
    left: 20px;
    background: rgba(201,42,42,0.7);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flip-page:hover .zoom-hint {
    opacity: 1;
}

/* Page States */
.flip-page {
    opacity: 0;
    transform: scale(0.95) rotateY(0deg);
    pointer-events: none;
}

.flip-page.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
    pointer-events: auto;
    z-index: 10;
}

.flip-page.left {
    opacity: 0;
    transform: scale(0.9) rotateY(-15deg) translateX(-20px);
    pointer-events: none;
    z-index: 5;
}

.flip-page.right {
    opacity: 0;
    transform: scale(0.9) rotateY(15deg) translateX(20px);
    pointer-events: none;
    z-index: 5;
}

/* Flip Animation - Forward */
.flip-page.flipping-forward {
    animation: flipForward 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes flipForward {
    0% {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
        z-index: 10;
    }
    40% {
        transform: rotateY(-90deg) scale(0.95);
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: rotateY(-180deg) scale(0.9) translateX(-30px);
        z-index: 1;
    }
}

/* Flip Animation - Backward */
.flip-page.flipping-backward {
    animation: flipBackward 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes flipBackward {
    0% {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
        z-index: 10;
    }
    40% {
        transform: rotateY(90deg) scale(0.95);
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: rotateY(180deg) scale(0.9) translateX(30px);
        z-index: 1;
    }
}

/* Enter animation for new active page */
.flip-page.active.flipping-forward,
.flip-page.active.flipping-backward {
    animation: pageEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageEnter {
    0% {
        opacity: 0;
        transform: scale(0.9) rotateY(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

/* Flip Arrows - Bigger for wide layout */
.flip-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.flip-arrow:hover {
    background: #c92a2a;
    border-color: #c92a2a;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 25px rgba(201,42,42,0.4);
}

.flip-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

.flip-arrow.prev {
    left: -28px;
}

.flip-arrow.next {
    right: -28px;
}

/* Flip Dots */
.flip-dots {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.flip-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.flip-dot.active {
    background: #c92a2a;
    width: 35px;
    border-radius: 10px;
    border-color: #c92a2a;
}

.flip-dot:hover {
    background: #c92a2a;
    transform: scale(1.2);
}

/* Flip Counter */
.flip-counter {
    text-align: center;
    margin-top: 18px;
    color: #aaa;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.flip-counter span {
    color: #c92a2a;
    font-weight: 700;
}

/* Zoom Modal */
.flip-zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.flip-zoom-modal.active {
    display: flex;
}

.flip-zoom-modal .zoom-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.flip-zoom-modal .zoom-close:hover {
    color: #c92a2a;
    transform: rotate(90deg);
    border-color: #c92a2a;
}

.flip-zoom-modal .zoom-image {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    animation: zoomInFlip 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomInFlip {
    from {
        transform: scale(0.8) rotate(-2deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Zoom Navigation */
.zoom-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 2001;
}

.zoom-nav button {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.zoom-nav button:hover {
    background: #c92a2a;
    border-color: #c92a2a;
    transform: translateY(-2px);
}

.zoom-nav .zoom-page-indicator {
    background: transparent;
    border: none;
    cursor: default;
    color: #aaa;
    font-size: 14px;
}

.zoom-nav .zoom-page-indicator:hover {
    background: transparent;
    transform: none;
}

/* ============================================
   RESPONSIVE - EXTRA WIDE
   ============================================ */

@media (max-width: 992px) {
    .flip-arrow.prev {
        left: -15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    .flip-arrow.next {
        right: -15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .flipbook-container {
        padding: 10px 5px;
    }
    
    .flipbook-wrapper {
        padding: 0 5px;
    }
    
    .flip-book {
        height: 380px;
        max-width: 100%;
        border-radius: 8px;
    }
    
    .flip-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .flip-arrow.prev {
        left: 2px;
    }
    
    .flip-arrow.next {
        right: 2px;
    }
    
    .flip-dots {
        gap: 10px;
        margin-top: 18px;
    }
    
    .flip-dot {
        width: 11px;
        height: 11px;
    }
    
    .flip-dot.active {
        width: 28px;
    }
    
    .page-number {
        font-size: 11px;
        padding: 3px 10px;
        bottom: 10px;
        right: 12px;
    }
    
    .zoom-hint {
        font-size: 9px;
        padding: 3px 10px;
        bottom: 10px;
        left: 12px;
    }
    
    .flip-counter {
        font-size: 0.9rem;
        margin-top: 12px;
    }
    
    .flip-zoom-modal {
        padding: 15px;
    }
    
    .flip-zoom-modal .zoom-close {
        top: 15px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .zoom-nav {
        bottom: 20px;
        gap: 10px;
    }
    
    .zoom-nav button {
        padding: 6px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .flipbook-container {
        padding: 8px 4px;
    }
    
    .flip-book {
        height: 280px;
        border-radius: 6px;
    }
    
    .flip-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .flip-arrow.prev {
        left: 1px;
    }
    
    .flip-arrow.next {
        right: 1px;
    }
    
    .flip-dots {
        gap: 7px;
        margin-top: 14px;
    }
    
    .flip-dot {
        width: 9px;
        height: 9px;
    }
    
    .flip-dot.active {
        width: 22px;
    }
    
    .page-number {
        font-size: 9px;
        padding: 2px 8px;
        bottom: 8px;
        right: 10px;
    }
    
    .zoom-hint {
        font-size: 8px;
        padding: 2px 8px;
        bottom: 8px;
        left: 10px;
    }
    
    .flip-counter {
        font-size: 0.8rem;
        margin-top: 10px;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .flip-book {
        background: #0a0a0a;
        box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
    }
}

/* ============================================
   MENU FLIPBOOK SECTION - HEADER SPACING
   ============================================ */

.menu-flipbook-section {
    padding-top: 4rem;
}

.menu-flipbook-section .about-hero {
    padding-top: 3rem;
}

.menu-flipbook-section .about-hero .subtitle {
    margin-top: 3rem;
    display: inline-block;
}

@media (max-width: 768px) {
    .menu-flipbook-section {
        padding-top: 2rem;
    }
    
    .menu-flipbook-section .about-hero {
        padding-top: 2rem;
    }
    
    .menu-flipbook-section .about-hero .subtitle {
        margin-top: 2rem;
    }
}