/* Custom styles for ERA Restaurant Menu */
@font-face {
    font-family: 'Charlotte Veronica'; /* Custom font name */
    src: url('CharlotteVeronica.woff2') format('woff2'), /* Assuming user uploads WOFF2 */
         url('CharlotteVeronica.woff') format('woff'), /* Assuming user uploads WOFF */
         url('CharlotteVeronica.otf') format('opentype'); /* Added .otf format */
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Inter', sans-serif;
    background-image: url('menu_background.jpg'); /* Background image from user */
    background-size: cover; /* Cover the entire background */
    background-attachment: fixed; /* Keep background fixed when scrolling */
    background-position: center; /* Center the background image */
    background-color: #2E4B3E; /* Fallback dark green background */
    color: #F8F8F8; /* Off-white text color */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}
.container {
    max-width: 960px; /* Max width for desktop view */
    margin: 0 auto;
    padding: 1rem; /* Base padding for main content area */
}
/* Header section is now replaced by the new menu system */
.meny-text { /* This rule is effectively not used after removing the meny-text div from the HTML body */
    font-family: 'Charlotte Veronica', 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    color: #b8a066;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 3px solid #b8a066;
    display: inline-block;
    padding-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin-top: 2rem; /* Adjusted for no top header */
    text-align: center;
    width: 100%;
}
.category-title {
    font-family: 'Charlotte Veronica', 'Inter', sans-serif; /* New font with fallback */
    font-size: 2.25rem; /* H2 equivalent */
    font-weight: 600;
    color: #b8a066; /* Changed color to b8a066 as per request */
    margin-top: 3rem;
    margin-bottom: 1rem; /* Increased margin-bottom to create space for navigation */
    text-align: center;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Increased text shadow for readability */
}
/* Specific style for item-description immediately following a category-title */
.category-title + .item-description {
    text-align: center; /* Center the subtitle with the category title */
    margin-top: -0.5rem; /* Adjust margin to bring it closer to the title */
    margin-bottom: 1.5rem; /* Add more space below the subtitle */
    color: #b8a066; /* Keep original color */
    font-size: 0.95rem; /* Keep original font size */
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Keep original text shadow */
}
/* Adjusted .menu-item to use flexbox for horizontal alignment and vertical centering of price */
.menu-item {
    display: flex;
    justify-content: space-between; /* Pushes content to left, price to right */
    align-items: center; /* ALIGN PRICE VERTICALLY CENTERED WITH CONTENT BLOCK */
    flex-direction: row; /* Ensure items stay in a row, even on mobile */
    padding: 1.25rem 1rem; /* Combined padding for content alignment */
    border-bottom: 1px solid rgba(248, 248, 248, 0.2); /* Light separator */
    margin-bottom: 1.5rem; /* INCREASED GAP BETWEEN PRODUCTS */
    border-radius: 0.5rem; /* Rounded corners for menu items */
}
.menu-item:last-child {
    border-bottom: none;
}
.item-details {
    flex-grow: 1; /* Allows this content block to take up available space */
    padding-right: 1rem; /* Spacing between text content and price */
    display: flex; /* Make item-details a flex container */
    flex-direction: column; /* Stack its children (name, description) vertically */
}
.item-name {
    font-family: 'Charlotte Veronica', 'Inter', sans-serif; /* New font with fallback */
    font-size: 1.5rem; /* H3 equivalent */
    font-weight: 600;
    color: #F8F8F8;
    margin-bottom: 0.5rem; /* Standard margin after item name */
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Increased text shadow for readability */
}
/* Specific margin for English name after Albanian description */
.item-name.mt-4 {
    margin-top: 1rem; /* This creates the desired spacing after the Albanian description and before the English title */
}
.item-description {
    font-size: 0.95rem;
    color: #b8a066; /* Changed color to b8a066 as per request */
    margin-bottom: 0.25rem; /* Standard margin after description line */
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Added text shadow for descriptions */
}
.item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F8F8F8;
    flex-shrink: 0; /* Prevent price from shrinking */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Increased text shadow for readability */
    /* No align-self or margin-top here; alignment controlled by parent .menu-item */
}

/* Footer styling - Removed from HTML body, CSS rule kept for other pages if needed */
.footer-text {
    font-size: 2rem;
    font-weight: 600;
    color: #F8F8F8;
    text-align: center;
    padding: 3rem 1rem;
    background-color: rgba(46, 75, 62, 0.8); /* Slightly transparent dark green for footer */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Back button - now primarily used within the new menu system, but keeping for direct page access if needed */
.back-button {
    display: inline-block;
    background-color: rgba(70, 120, 90, 0.7);
    color: #F8F8F8;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    transition: background-color 0.2s;
}
.back-button:hover {
    background-color: rgba(90, 140, 110, 0.9);
}

/* New Menu Styles */
.menu-button {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background-color: #020404; /* Changed menu button background color to 020404 */
    color: #b8a066; /* Menu icon color */
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000; /* Ensure it's on top */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s;
}
.menu-button:hover {
    background-color: rgba(90, 140, 110, 0.9);
}

/* Language Toggle Button - REMOVED */


.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%; /* Occupy partial width */
    max-width: 300px; /* Max width for larger screens */
    height: 100%;
    background-color: #020404; /* Changed background color to 020404 */
    z-index: 999; /* Below the button, above content */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left-align content within overlay */
    padding-top: 4rem; /* Space for close button */
    transform: translateX(-100%); /* Initially hidden off-screen */
    transition: transform 0.3s ease-in-out;
}
.menu-overlay.active {
    transform: translateX(0); /* Slide in when active */
}
.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #F8F8F8;
    font-size: 2rem;
    cursor: pointer;
}
.menu-links {
    list-style: none;
    padding: 1rem; /* Added padding to the list itself */
    text-align: left; /* Left-align the list items */
    width: 100%; /* Ensure links take full width of overlay */
    overflow-y: auto; /* ADDED: Enable vertical scrolling for menu links */
    flex-grow: 1; /* Allow menu links to take available space */
}
.menu-links li {
    margin-bottom: 0.75rem; /* Slightly reduced margin between links */
}
.menu-links a {
    font-family: 'Charlotte Veronica', 'Inter', sans-serif; /* Apply custom font */
    color: #F8F8F8;
    text-decoration: none;
    font-size: 1.5rem; /* Reduced font size from 1.8rem to 1.5rem */
    padding: 0.5rem 0; /* Adjusted padding */
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
    display: block;
    text-align: left; /* Explicitly left-align link text */
}
.menu-links a:hover {
    background-color: rgba(184, 160, 102, 0.2); /* Highlight color on hover */
    color: #b8a066;
}

/* Category Navigation container for sub-pages */
.category-nav {
    display: flex;
    justify-content: space-between; /* Space out the left and right buttons */
    align-items: center;
    width: 100%; /* Make it take full width of its container */
    max-width: 960px; /* Match container's max-width */
    margin: 0 auto 1.5rem auto; /* Centered, with space below */
    padding: 0 1rem; /* Added 1rem padding to align with the main container content */
    box-sizing: border-box; /* Include padding in width calculation */
    min-height: 40px; /* Ensure there's space even if titles are short */
    flex-wrap: nowrap; /* CRITICAL: Ensure they stay on one line */
}

/* No divider */
.category-nav-divider {
    display: none;
}

.category-nav-button {
    display: flex; /* Use flexbox for arrow and text alignment */
    align-items: center; /* Vertically center content */
    background-color: transparent; /* Make transparent */
    border: 1px solid rgba(248, 248, 248, 0.3); /* Add a subtle border for visibility */
    color: #F8F8F8; /* Off-white text */
    border-radius: 0.5rem;
    /* Reduced overall padding to make button shorter */
    padding: 0.4rem 0.6rem;
    font-size: 1.1rem; /* Base font size for the button text */
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, transform 0.2s, opacity 0.3s; /* Add opacity transition */
    text-decoration: none; /* Remove underline for anchor buttons */
    flex-shrink: 0; /* Prevents button from shrinking */
    flex-grow: 0; /* Prevents button from growing beyond its content */
    gap: 0.15rem; /* Reduced space between arrow and text */
    min-width: 0; /* Allow content within the button to shrink if needed */
}

.category-nav-button:hover {
    background-color: rgba(90, 140, 110, 0.2); /* Subtle highlight on hover */
    transform: translateY(-2px); /* Subtle lift */
    opacity: 0.8; /* Make slightly less transparent on hover */
}
.category-nav-button:disabled {
    opacity: 0.3; /* Dim disabled buttons even more when transparent */
    cursor: not-allowed;
}

.category-nav-button .arrow {
    font-size: 1.2rem; /* Adjusted arrow size to fit better */
    color: #b8a066; /* Gold color for arrows */
    flex-shrink: 0;
}

.category-nav-button .nav-title-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-grow: 1; /* Allows text container to grow */
    min-width: 0; /* Allows text container to shrink */
    white-space: nowrap; /* Prevents text wrapping */
    overflow: hidden; /* Hides overflow */
    text-overflow: ellipsis; /* Shows ellipsis for overflow */
}

.category-nav-button .main-title {
    font-family: 'Charlotte Veronica', 'Inter', sans-serif;
    font-size: 0.8rem; /* Adjusted font size for main title in button */
    font-weight: 600;
    color: #F8F8F8;
    line-height: 1.1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.category-nav-button .sub-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem; /* Adjusted font size for sub-title (English) */
    font-weight: 400;
    color: #b8a066;
    line-height: 1.1;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

/* Specific order for right arrow button content */
.category-nav-button.right-arrow {
    flex-direction: row-reverse;
}
.category-nav-button.right-arrow .nav-title-text {
    text-align: right;
}

.nav-spacer {
    flex-grow: 1; /* Pushes buttons to the edges */
    min-width: 0; /* Allow the spacer to disappear completely if needed */
}


/* Styles for the category buttons on index.html (reverted to original vertical and opaque) */
.category-buttons-container {
    display: flex;
    flex-direction: column; /* Reverted to vertical placement */
    align-items: center; /* Center buttons horizontally */
    gap: 1rem; /* Space between buttons */
    margin-top: 2rem; /* Spacing from "Explore Our Menu" title */
    padding: 0 1rem; /* Add horizontal padding for responsiveness */
    flex-wrap: nowrap; /* Ensure they don't wrap unless explicitly told */
}

.category-card-button {
    background-color: rgba(2, 4, 4, 0.8); /* Reverted to opaque background */
    border: none; /* Removed border */
    color: #F8F8F8; /* Off-white text */
    font-family: 'Charlotte Veronica', 'Inter', sans-serif;
    font-size: 1.8rem; /* Larger font size for main categories */
    font-weight: 600;
    text-align: center;
    padding: 1.25rem 2rem; /* Comfortable padding */
    border-radius: 0.75rem; /* More rounded corners */
    text-decoration: none;
    width: 80%; /* Reverted to specific width */
    max-width: 400px; /* Max width for larger screens */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Pronounced shadow */
    transition: all 0.3s ease; /* Smooth transitions for hover effects */
    display: flex; /* Use flex to center inner content */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card-button:hover {
    opacity: 0.5; /* More aggressive opacity reduction on hover */
    transform: translateY(-3px); /* Slight lift effect */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* More pronounced shadow on hover */
}

.category-card-button .main-text {
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.category-card-button .sub-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem; /* Smaller font for English text */
    font-weight: 400;
    color: #b8a066; /* Gold color for sub-text */
    margin-top: 0.25rem; /* Small space between Albanian and English */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}


/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .meny-text { /* This rule is effectively not used after removing the meny-text div from the HTML body */
        font-size: 2.5rem;
        margin-top: 1.5rem;
    }
    .category-title {
        font-size: 2rem;
        margin-top: 2.5rem;
    }
    .menu-item {
        padding: 1rem 0.75rem;
    }
    .item-name {
        font-size: 1.3rem;
    }
    .item-description {
        font-size: 0.85rem;
    }
    .item-price {
        font-size: 1.3rem;
    }
    .menu-links a {
        font-size: 1.3rem; /* Further reduce font size for smaller screens */
    }
    .menu-button {
        padding: 0.6rem 0.8rem;
        font-size: 1.3rem;
    }
    .close-button {
        font-size: 1.8rem;
    }
    .menu-overlay {
        width: 70%; /* Wider on smaller screens */
        max-width: none;
    }
    /* Media query specific adjustments for category-nav-button padding */
    .category-nav-button {
        padding: 0.4rem 0.4rem; /* Adjusted for smaller screens */
    }
    .category-nav-button .arrow {
        font-size: 1.1rem;
    }
    .category-nav-button .main-title {
        font-size: 0.7rem;
    }
    .category-nav-button .sub-title {
        font-size: 0.45rem;
    }
    .category-card-button {
        font-size: 1.5rem; /* Adjust category button font size for tablets */
        padding: 1rem 1.5rem;
        width: 90%; /* Take more width on tablets */
    }
    .category-card-button .sub-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .meny-text { /* This rule is effectively not used after removing the meny-text div from the HTML body */
        font-size: 2rem;
        margin-top: 1rem;
    }
    .category-title {
        font-size: 1.75rem;
        margin-top: 2rem;
    }
    .menu-item {
        flex-direction: column; /* Stack items vertically on small screens */
        align-items: flex-start; /* Align text to left on small screens */
    }
    .item-name {
        font-size: 1.2rem;
    }
    .item-description {
        font-size: 0.8rem;
    }
    .item-price {
        align-self: flex-end; /* Push price to the right on small screens */
        margin-top: 0.5rem; /* Add some space if stacked */
        font-size: 1.1rem;
    }
    .item-details {
        padding-right: 0; /* Remove right padding when stacked */
        width: 100%;
    }
    .item-name.mt-4 {
        margin-top: 0.75rem; /* Adjust spacing for small screens */
    }
    .menu-links a {
        font-size: 1.0rem; /* Even smaller font size for very small screens */
    }
    .menu-button {
        padding: 0.5rem 0.7rem;
        font-size: 1.2rem;
    }
    .close-button {
        font-size: 1.5rem;
    }
    .menu-overlay {
        width: 85%; /* Even wider on very small screens */
    }
    .category-nav {
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem; /* Smallest screens, reduce padding on container */
    }
    .category-nav-button {
        padding: 0.3rem 0.3rem; /* Further reduced padding for very small screens */
        font-size: 0.7rem;
    }
    .category-nav-button .arrow {
        font-size: 0.9rem;
    }
    .category-nav-button .main-title {
        font-size: 0.6rem;
    }
    .category-nav-button .sub-title {
        font-size: 0.4rem;
    }
    .category-card-button {
        font-size: 1.2rem; /* Further adjust category button font size for mobile */
        padding: 0.8rem 1rem;
        width: 95%; /* Take almost full width on mobile */
    }
    .category-card-button .sub-text {
        font-size: 0.8rem;
    }
}
