/* Flipbook Menu Styles */
.flipbook-menu-section {
    background: var(--color-bg-primary);
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flipbook-container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem 1.5rem;
    position: relative;
}

.flipbook-wrapper {
    width: 100%;
    max-width: 900px;
    height: 80vh;
    max-height: 600px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.flipbook {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    overflow: visible;
}

.flipbook-page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-bg-black);
    color: var(--color-text-primary);
    padding: 3rem 2.5rem;
    display: none;
    flex-direction: column;
    border: 1px solid rgba(237, 215, 103, 0.2);
    box-shadow: 
        0 0 0 1px rgba(237, 215, 103, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: opacity 0.4s ease;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.flipbook-page.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
    pointer-events: auto;
}

.flipbook-page.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.page-cover {
    background: linear-gradient(135deg, var(--color-bg-black) 0%, var(--color-bg-primary) 100%);
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 2px solid var(--color-accent);
    box-shadow: 
        0 0 0 2px rgba(237, 215, 103, 0.3),
        0 25px 70px rgba(0, 0, 0, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.page-cover.active {
    display: flex !important;
    opacity: 1 !important;
}

.page-cover .logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    object-fit: contain;
}

.page-cover h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.page-cover p {
    color: var(--color-text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.page-cover .subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.page-content {
    overflow-y: auto;
}

.page-category {
    margin-bottom: 2.5rem;
}

.page-category-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.75rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(237, 215, 103, 0.2);
}

.page-menu-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.page-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(237, 215, 103, 0.1);
}

.page-menu-item-name {
    font-size: 1rem;
    color: var(--color-text-secondary);
    flex: 1;
    margin-right: 1rem;
}

.page-menu-item-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
    white-space: nowrap;
}

.flipbook-controls {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    z-index: 100;
    width: auto;
    margin: 0 auto;
}

.flipbook-btn {
    background: var(--color-accent);
    color: var(--color-bg-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(237, 215, 103, 0.3);
    font-family: inherit;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.flipbook-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.flipbook-btn:hover::before {
    width: 100%;
    height: 100%;
}

.flipbook-btn:hover {
    background: var(--color-accent-hover);
    transform: scale(1.1) translateZ(0);
    box-shadow: 0 6px 25px rgba(237, 215, 103, 0.5);
}

.flipbook-btn:active {
    transform: scale(0.95) translateZ(0);
}

.flipbook-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(237, 215, 103, 0.2);
}

.page-indicator {
    color: var(--color-text-light);
    font-size: 0.875rem;
    min-width: 80px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    margin: 0;
    height: 50px;
}

.flipbook-menu-link {
    text-align: center;
    margin-top: 2rem;
}

.view-full-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--color-accent);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--color-accent);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(237, 215, 103, 0.2);
}

.view-full-menu-btn:hover {
    background: var(--color-accent);
    color: var(--color-bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 215, 103, 0.4);
}

.view-full-menu-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .flipbook-menu-section {
        padding: 3rem 0;
    }
    
    .flipbook-wrapper {
        height: 70vh;
        max-height: 500px;
    }
    
    .flipbook-page {
        padding: 2rem 1.5rem;
    }
    
    .page-cover h1 {
        font-size: 2rem;
    }
    
    .flipbook-controls {
        bottom: 2.5rem;
        gap: 0.75rem;
    }
    
    .flipbook-btn {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
        flex-shrink: 0;
    }
    
    .page-indicator {
        min-width: 60px;
        font-size: 0.8rem;
        height: 45px;
    }
    
    .view-full-menu-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}
