/* Interactive Menu Frontend Styles */

.interactive-menu-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.menu-content-area {
    position: relative;
    min-height: 300px;
    padding: 30px;
}

.menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.menu-content.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.menu-text-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.menu-shortcode-content {
    width: 100%;
}

.menu-image {
    margin-bottom: 20px;
}

.menu-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.menu-buttons-area {
    padding: 20px 30px 30px;
    background: #f6f7f7;
    border-top: 1px solid #e0e0e0;
}

.back-button {
    margin-bottom: 15px;
    background: #646970 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-button .dashicons {
    font-size: 18px;
}

.menu-buttons-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.menu-button {
    padding: 15px 25px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.menu-button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.menu-button:active {
    transform: translateY(0);
}

/* Transition Effects */

/* Fade */
.transition-fade .menu-content.exiting {
    animation: fadeOut 0.5s ease forwards;
}

.transition-fade .menu-content.entering {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide Left */
.transition-slide-left .menu-content.exiting {
    animation: slideOutLeft 0.5s ease forwards;
}

.transition-slide-left .menu-content.entering {
    animation: slideInRight 0.5s ease forwards;
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Slide Right */
.transition-slide-right .menu-content.exiting {
    animation: slideOutRight 0.5s ease forwards;
}

.transition-slide-right .menu-content.entering {
    animation: slideInLeft 0.5s ease forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Slide Up */
.transition-slide-up .menu-content.exiting {
    animation: slideOutUp 0.5s ease forwards;
}

.transition-slide-up .menu-content.entering {
    animation: slideInDown 0.5s ease forwards;
}

@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Slide Down */
.transition-slide-down .menu-content.exiting {
    animation: slideOutDown 0.5s ease forwards;
}

.transition-slide-down .menu-content.entering {
    animation: slideInUp 0.5s ease forwards;
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Bounce In */
.transition-bounce-in .menu-content.exiting {
    animation: bounceOut 0.5s ease forwards;
}

.transition-bounce-in .menu-content.entering {
    animation: bounceIn 0.6s ease forwards;
}

@keyframes bounceOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Zoom In */
.transition-zoom-in .menu-content.exiting {
    animation: zoomOut 0.5s ease forwards;
}

.transition-zoom-in .menu-content.entering {
    animation: zoomIn 0.5s ease forwards;
}

@keyframes zoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.5);
        opacity: 0;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Zoom Out */
.transition-zoom-out .menu-content.exiting {
    animation: zoomOutLarge 0.5s ease forwards;
}

.transition-zoom-out .menu-content.entering {
    animation: zoomInSmall 0.5s ease forwards;
}

@keyframes zoomOutLarge {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes zoomInSmall {
    from {
        transform: scale(1.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-buttons-list {
        grid-template-columns: 1fr;
    }

    .menu-content-area {
        min-height: 250px;
        padding: 20px;
    }

    .menu-content {
        padding: 20px;
    }

    .menu-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}


