/* Menu Page Styles */
.menu-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-color);
}

/* Showcase Header */
.showcase-header {
    text-align: center;
    margin: 4rem auto 5rem;
    position: relative;
    max-width: 800px;
    padding: 2rem;
}

.showcase-header::before {
    content: '🍦';
    position: absolute;
    font-size: 180px;
    right: -5%;
    top: -60px;
    opacity: 0.1;
    transform: rotate(15deg);
    animation: float 3s ease-in-out infinite;
}

.showcase-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    line-height: 1.2;
}

.title-accent {
    color: var(--accent-color);
    display: block;
    font-family: 'Pacifico', cursive;
    font-size: 5rem;
    text-shadow: 3px 3px 0px var(--primary-color);
    margin-bottom: 0.5rem;
    animation: wiggle 3s ease-in-out infinite;
}

.showcase-subtitle {
    color: var(--hover-color);
    font-size: 1.4rem;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Category Buttons */
.flavor-categories {
    margin-bottom: 3rem;
    position: relative;
}

.category-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.category-btn {
    background: var(--white);
    border: 3px solid var(--accent-color);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(48, 96, 56, 0.2);
}

.category-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.category-icon {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

/* Flavor Grid */
.flavor-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.flavor-item {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 3px solid var(--accent-color);
    position: relative;
}

.flavor-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.flavor-item:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 0 8px 20px rgba(48, 96, 56, 0.2);
}

.flavor-image {
    background: linear-gradient(135deg, var(--bg-color) 0%, #ffffff 100%);
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.flavor-emoji {
    font-size: 4rem;
    transition: transform 0.3s ease;
}

.flavor-item:hover .flavor-emoji {
    animation: shake 0.5s ease-in-out;
}

.flavor-details {
    padding: 1.5rem;
    background: var(--white);
    position: relative;
}

.flavor-details h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-family: 'Pacifico', cursive;
}

.flavor-description {
    color: var(--hover-color);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-20px) rotate(15deg); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

@keyframes shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Sprinkles Animation for Active Category */
.category-btn.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(248, 178, 41, 0.1) 10px,
        rgba(248, 178, 41, 0.1) 20px
    );
    animation: moveStripes 20s linear infinite;
}

@keyframes moveStripes {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-page {
        padding: 1rem;
    }

    .showcase-title {
        font-size: 2rem;
    }

    .category-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .category-btn {
        width: 100%;
        justify-content: center;
    }

    .flavor-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .showcase-header {
        margin: 2rem auto 3rem;
        padding: 1rem;
    }

    .showcase-title {
        font-size: 3rem;
    }

    .title-accent {
        font-size: 3.5rem;
    }

    .showcase-subtitle {
        font-size: 1.2rem;
    }

    .showcase-header::before {
        font-size: 120px;
        top: -40px;
        right: -10%;
    }
}

/* Hidden state for filtered items */
.flavor-item.hidden {
    display: none;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Add styles for toppings list */
.flavor-item[data-category="toppings"] .flavor-description {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Add specific styles for sundaes */
.flavor-item[data-category="sundaes"] {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-color) 100%);
}

/* Add specific styles for drinks */
.flavor-item[data-category="drinks"] {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--white) 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-btn {
        min-width: 140px;
        padding: 0.5rem 1rem;
    }
    
    .category-wrapper {
        gap: 0.5rem;
    }
}

.menu-cta {
    background: linear-gradient(135deg, #ff8a00, #ff2d75);
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

.cta-button.primary {
    background-color: white;
    color: #ff2d75;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
} 