/* FLUX Zone Coffee - Menu Styles */

:root {
    --coffee-dark: #2C1810;
    --coffee-brown: #5C4033;
    --coffee-light: #A67C52;
    --cream: #F5E6D3;
    --warm-beige: #D4C4B0;
    --white: #FFFFFF;
    --shadow: rgba(44, 24, 16, 0.1);
    --shadow-hover: rgba(44, 24, 16, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', system-ui, sans-serif;
    background-color: var(--cream);
    color: var(--coffee-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.menu-header {
    background: linear-gradient(135deg, var(--coffee-dark) 0%, var(--coffee-brown) 100%);
    color: var(--cream);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.menu-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(166, 124, 82, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
    animation: fadeInDown 0.6s ease-out;
}

.menu-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.menu-subtitle {
    font-size: 1.1rem;
    color: var(--warm-beige);
    font-style: italic;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Category Navigation */
.category-nav {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 100;
    padding: 1rem 0;
}

.category-buttons {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--coffee-light) var(--cream);
}

.category-buttons::-webkit-scrollbar {
    height: 6px;
}

.category-buttons::-webkit-scrollbar-track {
    background: var(--cream);
    border-radius: 3px;
}

.category-buttons::-webkit-scrollbar-thumb {
    background: var(--coffee-light);
    border-radius: 3px;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--cream);
    border: 2px solid var(--warm-beige);
    border-radius: 50px;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--coffee-brown);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-btn:hover {
    background: var(--coffee-light);
    color: var(--white);
    border-color: var(--coffee-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.category-btn.active {
    background: var(--coffee-dark);
    color: var(--cream);
    border-color: var(--coffee-dark);
}

/* Category icon styles removed - no longer using emojis */

/* Menu Content */
.menu-content {
    padding: 3rem 0;
    min-height: 60vh;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.6s ease-out;
}

.menu-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease-out both;
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.menu-item-image-wrapper {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.menu-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gray placeholder for missing images */
.menu-item-image-wrapper.image-placeholder {
    background: linear-gradient(135deg, #d4d4d4 0%, #e5e5e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item-image-wrapper.image-placeholder::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'%3E%3C/circle%3E%3Cpolyline points='21 15 16 10 5 21'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
}

.menu-item-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-item-name {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--coffee-dark);
    margin-bottom: 0.5rem;
}

.menu-item-description {
    font-size: 0.9rem;
    color: var(--coffee-brown);
    margin-bottom: 1rem;
    flex: 1;
}

.menu-item-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: var(--cream);
    border-radius: 50px;
    font-weight: 600;
    color: var(--coffee-dark);
    font-size: 0.9rem;
}

.price-size {
    font-size: 0.75rem;
    color: var(--coffee-brown);
    text-transform: capitalize;
}

.price-amount {
    font-family: 'Montserrat', system-ui, sans-serif;
    color: var(--coffee-light);
}

/* Single Price */
.menu-item-price {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coffee-light);
}

/* Footer */
.menu-footer {
    background: var(--coffee-dark);
    color: var(--cream);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-note {
    font-size: 0.9rem;
    color: var(--warm-beige);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(166, 124, 82, 0.1);
    border-radius: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: var(--warm-beige);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--cream);
}

.footer-copyright {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-credit {
    font-size: 0.85rem;
    color: var(--warm-beige);
}

.footer-credit a {
    color: var(--coffee-light);
    text-decoration: none;
    font-weight: 600;
}

.footer-credit a:hover {
    color: var(--cream);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--coffee-light);
    color: var(--cream);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--coffee-brown);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px var(--shadow-hover);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 4rem 0;
    font-size: 1.2rem;
    color: var(--coffee-brown);
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--cream);
    border-top-color: var(--coffee-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-title {
        font-size: 2rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-btn {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
        white-space: nowrap;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {
    .category-nav,
    .back-to-top,
    .footer-links {
        display: none;
    }

    .menu-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .menu-item {
        border: 2px solid var(--coffee-dark);
    }
}
