@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600&display=swap');

/* Reset some default margins/padding, let the page scroll naturally */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Body styling */
.asdf {
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f8f8f8;
  color: #333;
}

.header-bar {
  background: #FFB900;
  padding: 15px 20px;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Title in header */
.app-title {
  color: #ffffff;
  font-size: 2.25rem; /* Reduced by 10% from 2.5rem */
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  left: 0;
  transform: none;
  margin-left: 0px; /* Add some margin from the left edge */
}

.app-title h1 {
  margin: 0;
  font-size: 2.25rem; /* Reduced by 10% from 2.5rem */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(to right, #ffffff, #e6e6e6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Main container that sits below the fixed header */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 20px 20px; /* top padding so content isn't behind the header */
}

.type-tabs-container {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  z-index: 9999;
  padding: 10px;
  border-bottom: 2px solid #FFB900;
  box-shadow: 0 2px 10px rgba(255, 185, 0, 0.1);
  margin: 10px 0;
}

/* The row of tabs for different food types */
.type-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 5px;
  margin: 0;
}

/* Individual tab styling */
.type-tab {
  padding: 12px 24px;
  background-color: #FFF8E1;
  text-decoration: none;
  color: #F57C00;
  border-radius: 25px;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-weight: 500;
}

.type-tab:hover {
  background-color: #FFE082;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(245, 124, 0, 0.2);
}

.type-tab.active {
  background-color: #FFB900;
  color: black;
  border: 2px solid #F57C00;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(245, 124, 0, 0.3);
}

/* Every category is on the page; the tabs jump between them. */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* One block per category, and the anchor the tabs target. scroll-margin-top is
   what keeps the heading clear of the sticky tab bar on arrival; menu-nav.js
   measures the real bar height into --menu-offset. */
.menu-section {
  scroll-margin-top: var(--menu-offset, 80px);
}

.menu-section + .menu-section {
  margin-top: 18px;
}

/* Parks directly under the tab bar while its category is on screen. Must stay
   below .type-tabs-container, which is z-index 9999 here and 100 in forest.css. */
.section-heading {
  position: sticky;
  top: var(--tabs-h, 72px);
  z-index: 50;
  margin: 0 0 10px;
  padding: 10px 12px;
  background-color: #ffffff;
  border-left: 4px solid #FFB900;
  border-radius: 6px;
  color: #2c3e50;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (max-width: 480px) {
  .section-heading {
    font-size: 1rem;
    padding: 8px 10px;
  }
}

/* Grid of food items */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 2fr));
  gap: 6px;
}

@media (min-width: 700px) {
  /* Once wide enough,strictly cap at 3 columns */
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Each food "card" */
.food-item {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 3px;
  text-align: left;
  box-shadow: rgba(17, 17, 26, 0.05) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(230, 230, 230, 0.5);
  overflow: hidden;
  min-height: 220px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.food-item:hover {
  transform: translateY(-6px);
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
  border-color: rgba(52, 152, 219, 0.3);
}

/* Image container for uniform sizing */
.food-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  margin-bottom: 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  align-self: center;
}

.food-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.5) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.food-item:hover .food-img::before {
  opacity: 1;
}

.food-img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
}

.food-item:hover .food-img img {
  transform: scale(1.08);
}

/* Better touch targets */
.food-info {
  position: relative;
  padding: 8px 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

.food-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, rgba(0,0,0,0.05), transparent);
}

/* Food name */
.food-name {
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  color: #2c3e50;
  text-align: left;
  padding-right: 10px;
  margin-bottom: 0;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Food price */
.food-price {
  color: #FFB900;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: right;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 10px;
}

.food-preparation-time {
  color: #FFB900;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: right;
  padding: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 10px;
}

/* Mobile optimizations */
@media (max-width: 480px) {
  .container {
    padding: 70px 16px 16px;
  }

  .type-tabs-container {
    padding: 8px;
  }

  .type-tab {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .food-item {
    min-height: 240px;
    padding: 5px;
  }

  .food-name {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .food-price {
    font-size: 0.9rem;
  }

  .food-preparation-time {
    font-size: 0.9rem;
  }

  .food-img {
    height: 145px;
  }

  .food-img img {
    height: 145px;
  }

  .app-title h1 {
    font-size: 2rem;
  }

  .app-title::before {
    font-size: 1.5rem;
  }

  .header-bar {
    padding: 12px 16px;
  }
}

.main-content {
  padding-top: 5px;
  padding-left: 10px;
  padding-right: 10px;
}

/* Ads Banner Styles */
.ads-banner {
    width: 100%;
    max-width: 570    px; /* Standard Google Ads Leaderboard size */
    max-height: 150px; /* Fixed height for Leaderboard */
    background-color: #f8f9fa;
    margin: 0 auto 5px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ads-banner img {
    margin: 5px;
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.5s ease-in-out;
}

.ads-banner .banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ads-banner .banner-slide.active {
    opacity: 1;
    position: relative;
}

.ads-banner .banner-slide a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Responsive adjustments */

/* Standard Google Ads Banner size */
/*
@media (max-width: 570px) {
    .ads-banner {
        max-width: 728px;
        height: 120px;
    }
}
*/
/* Standard Google Ads Mobile Banner size */
/*
@media (max-width: 728px) {
    .ads-banner {
        max-width: 320px;
        height: 90px;
    }

    .ads-banner img {
        max-height: 90px;
    }
}
*/

.home-icon {
    font-size: 1.5rem;
}

/* Language Switcher Styles */
.language-switcher select {
    background-color: var(--light-text);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.language-switcher select:hover {
    border-color: var(--secondary-color);
}

/* Banner Styles */
.ads-banner {
    background-color: var(--light-text);
    border-bottom: 1px solid var(--border-color);
}

.banner-slide {
    display: none;
    width: 100%;
    max-height: 200px;
    overflow: hidden;
}

.banner-slide.active {
    display: block;
}

.banner-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Button Styles */
button {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--hover-color);
}

/* Form Elements */
input, select, textarea {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 4px;
    background-color: var(--light-text);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .app-title h1 {
        font-size: 1.5rem;
    }
    
    .home-icon {
        font-size: 1.2rem;
    }
}

/* Home Page Styles */
.home-container {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1)),
                url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?q=80&w=2070&auto=format&fit=crop')
                center/cover no-repeat fixed;
    position: relative;
}

.language-switcher-home {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-switcher-home select {
    background-color: rgba(52, 152, 219, 0.9);
    color: #2c3e50;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.language-switcher-home select:hover {
    background-color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.4);
}

.choose-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 0px;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.choose-section > div {
    width: 300px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choose-section button {
    width: 100%;
    height: 100%;
    font-size: 1.2em;
    border: none;
    border-radius: 15px;
    background-color: rgba(44, 62, 80, 0.9);
    color: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.choose-section button:hover {
    background-color: rgba(52, 152, 219, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .language-switcher-home {
        top: 10px;
        right: 10px;
    }
    
    .choose-section {
        padding: 20px;
    }
    
    .choose-section > div {
        width: 280px;
    }
    
    .choose-section button {
        font-size: 1.1em;
    }
}