:root {
    --konoha-primary: #f58041;
    --konoha-primary-dark: #d36a2c;
    --konoha-secondary: #d42a2e;
    --konoha-text: #333333;
    --konoha-text-light: #666666;
    --konoha-white: #ffffff;
    --konoha-background: #ededed;
    --konoha-success: #badd55;
    --konoha-error: #e55b5b;
}

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

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--konoha-background);
    color: var(--konoha-text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Banner Section */
.fixed-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--konoha-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    padding: 2rem 0;
}

.banner-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.brush-stroke {
    position: absolute;
    z-index: -100;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.brush-stroke-img {
    z-index: -50;
    width: auto;
    max-width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transform-origin: center top;
    transform: translate(-1rem, 0) rotate(-5deg) scale(1);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brush-entrance .brush-stroke-img {
    clip-path: inset(0 0 0 0);
}

.banner-image {
    position: relative;
    z-index: 100;
    height: auto;
    width: 200px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.banner-image.banner-entrance {
    opacity: 1;
}

.coming-soon {
    margin-top: 1rem;
}

.coming-soon-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--konoha-primary);
    margin-bottom: 0.5rem;
}

.coming-soon-subtitle {
    font-size: 1.1rem;
    color: var(--konoha-text-light);
}

/* Page Content (scrolls with page scrollbar) */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    /* offset for fixed banner */
    margin-top: calc(var(--banner-height, 220px) + 1rem);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(150px + 2rem) 1rem 2rem 1rem; /* Account for fixed banner height */
}

.menu-section {
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--konoha-primary);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--konoha-text);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--konoha-text-light);
}

/* Dish Grid */
.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dish-card {
    background: var(--konoha-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--konoha-primary);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dish-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    border-left-color: var(--konoha-primary-dark);
}

.dish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--konoha-primary), var(--konoha-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dish-card:hover::before {
    opacity: 1;
}

.dish-header {
    margin-bottom: 0.5rem;
}

.dish-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--konoha-text);
    margin-bottom: 0.25rem;
}

.dish-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--konoha-primary);
    margin-bottom: 0.5rem;
}

.dish-description {
    font-size: 0.9rem;
    color: var(--konoha-text-light);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.dish-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.spicy-indicator {
    display: flex;
    gap: 0.125rem;
}

.spicy-level {
    font-size: 0.875rem;
}

.dish-type {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: var(--konoha-text-light);
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Add dish image styling */
.dish-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.dish-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Logo container styling */
.logo-container {
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

/* Logo image styling */
.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 120px;
    max-height: 120px;
    opacity: 0.7;
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    font-size: 1.2rem;
    color: var(--konoha-text-light);
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    margin-left: 1rem;
    border: 2px solid var(--konoha-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 3rem;
    background: var(--konoha-white);
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--konoha-text-light);
}

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

    .section-title {
        font-size: 1.8rem;
    }

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

    .dish-card {
        padding: 0;
    }

    /* Desktop layout inside mobile cards */
    .dish-card .hidden {
        display: none;
    }

    .dish-card-content {
        flex: 1;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .dish-card-image {
        flex-shrink: 0;
        width: 120px;
        padding: 1rem 1rem 1rem 0;
    }

    .mobile-layout .dish-image-container {
        width: 100%;
        height: 100px;
        margin-bottom: 0;
    }

    .mobile-layout .dish-header {
        margin-bottom: 0.25rem;
    }

    .mobile-layout .dish-name {
        font-size: 1rem;
        margin-bottom: 0.125rem;
    }

    .mobile-layout .dish-price {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .mobile-layout .dish-description {
        font-size: 0.85rem;
        margin-bottom: 0;
        line-height: 1.4;
    }

    .mobile-layout .logo-image {
        max-width: 80px;
        max-height: 80px;
    }

    .page-content {
        margin-top: calc(var(--banner-height, 170px) + 1rem);
        padding: 1rem;
    }
}

/* Animations */
/* Utility classes for responsive design */
.flex {
    display: flex;
}

.items-stretch {
    align-items: stretch;
}

.min-h-120 {
    min-height: 120px;
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md\:block {
        display: block;
    }

    .md\:hidden {
        display: none;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
