@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;1,600&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #17234d;
    --secondary-color: #967346;
    --bg-color: #fafafa;
    --text-color: #333;
    --card-bg: #ffffff;
    --border-color: #eaeaea;
    --wolt-color: #009de0;
    --foodora-color: #d70f64;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden; 
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--primary-color); }

/* --- HAMBURGER MENU --- */
.hamburger {
    position: fixed;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background 0.3s;
}
.hamburger:hover { background-color: var(--secondary-color); }
.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- SIDEBAR --- */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: #1d2b5f;
    color: white;
    z-index: 1500;
    transition: left 0.3s ease-in-out;
    padding-top: 80px;
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
}
.sidebar.open { left: 0;}
.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}
.sidebar-header h2 { color: var(--secondary-color); font-size: 2.5rem; }
.nav-links { list-style: none; }
.nav-links li { margin: 10px 0; }
.nav-link {
    display: block;
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
    border-left: 4px solid transparent;
}
.nav-link:hover, .nav-link.active {
    background-color: rgba(255,255,255,0.05);
    border-left-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* --- MAIN LAYOUT & PAGES --- */
.main-content { min-height: 100vh; transition: 0.3s; }
.page { display: none; animation: fadeIn 0.4s; }
.page.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    background: var(--primary-color);
    color: white;
    padding: 80px 20px 40px 20px;
    text-align: center;
}
.page-header h2 { color: var(--secondary-color); font-size: 2.2rem; margin-bottom: 10px; }
.page-header p { opacity: 0.9; }

/* --- HERO & CATEGORY NAV --- */
.hero { background: linear-gradient(rgba(32, 49, 86, 0.747), rgba(29, 33, 82, 0.747)), url('https://images.unsplash.com/photo-1552611052-33e04de081de?auto=format&fit=crop&q=80&w=1920') center/cover; color: white; text-align: center; padding: 100px 20px 60px 20px; }
.hero h1 { font-size: 3rem; margin-bottom: 5px; color: white;}
.hero p { font-size: 1rem; color: var(--secondary-color); letter-spacing: 1px; }

.category-nav {
    background-color: var(--card-bg);
    padding: 15px 15px 15px 70px; 
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.category-nav a:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* --- MENU ITEMS --- */
.menu-container { max-width: 1100px; margin: 30px auto; padding: 0 15px; }
.menu-section { margin-bottom: 40px; }
.menu-section h2 { font-size: 1.8rem; text-align: center; margin-bottom: 25px; border-bottom: 2px solid var(--secondary-color); display: inline-block; padding-bottom: 5px; width: 100%; }

/* align-items: start segít abban, hogy a szomszédos kártyák ne nyúljanak meg */
.menu-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 15px; 
    align-items: start; 
}

.menu-item { background: var(--card-bg); padding: 15px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-left: 4px solid var(--secondary-color); display: flex; flex-direction: column; }
.item-header {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    align-items: flex-start; 
    gap: 8px;
    margin-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
}
.item-title { font-size: 1.05rem; font-weight: 600; color: var(--primary-color); flex: 1; min-width: 140px; }
.item-price { font-weight: 600; color: var(--secondary-color); font-size: 0.9rem; background: rgba(212, 175, 55, 0.1); padding: 4px 10px; border-radius: 6px; text-align: right; white-space: nowrap; }
.item-options { color: #e67e22; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; margin-bottom: 6px;}
.item-desc { font-size: 0.9rem; color: #555; margin-bottom: 10px; }

/* --- DINAMIKUS KÉP LENYITÓ --- */
.item-image-toggle {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
    align-self: flex-end;
    user-select: none;
}
.view-img-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.75rem;
    display: inline-block;
}
/* Forgás animáció nyitott állapotban */
.menu-item.img-open .view-img-arrow {
    transform: rotate(180deg);
}
.item-image-box {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, margin-top 0.3s ease;
    margin-top: 0;
    width: 100%;
}
.menu-item.img-open .item-image-box {
    max-height: 300px; /* Bőven elég a kép magasságának */
    margin-top: 12px;
}
.item-image-box img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

/* --- FOOTER --- */
.simple-footer { text-align: center; padding: 20px; color: #888; font-size: 0.9rem; margin-top: 40px; border-top: 1px solid #ddd; }

/* --- ABOUT & CONTACT --- */
.about-container { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.about-text { margin-bottom: 40px; text-align: center; }
.about-text h3 { margin-bottom: 15px; }
.about-text p { font-size: 1.05rem; color: #555; }
.contact-card { background: var(--card-bg); padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); text-align: center; margin-bottom: 30px; border-top: 4px solid var(--secondary-color); }
.contact-card h3 { margin-bottom: 15px; }
.contact-card a { color: var(--secondary-color); text-decoration: none; font-weight: bold; font-size: 1.2rem;}
.map-container { width: 100%; height: 350px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-bottom: 40px; }
.delivery-section { text-align: center; margin-bottom: 60px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.delivery-section h3 { margin-bottom: 10px; }
.delivery-section p { margin-bottom: 25px; color: #666; }
.delivery-buttons { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.btn-delivery { display: block; width: 100%; max-width: 300px; padding: 15px 20px; border-radius: 30px; color: white; text-decoration: none; font-weight: 600; font-size: 1.1rem; text-transform: uppercase; transition: transform 0.2s, box-shadow 0.2s; }
.btn-delivery:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-foodora { background-color: var(--foodora-color); }
.btn-wolt { background-color: var(--wolt-color); }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (min-width: 768px) {
    .category-nav { justify-content: center; padding: 20px 20px 20px 70px; }
    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .delivery-buttons { flex-direction: row; justify-content: center; gap: 20px; }
    .sidebar.open ~ .main-content { transform: translateX(280px); }
}
@media (max-width: 380px) {
    .item-header { flex-direction: column; align-items: flex-start; }
    .item-price { align-self: flex-end; width: auto; }
}

.kártya-konténer {
    display: flex;
    align-items: flex-start; 
}

.grid-konténer {
    display: grid;
    align-items: start;
}