/**
 * mobile.css
 * Standalone styles for the MobileUI.js module.
 * This file should be included in any project that uses mobile.js.
 * It only depends on W3.CSS for some utility classes (e.g., w3-border, w3-text-*).
 */

/* Main container for the mobile contact bar */
#mobile-contact-bar {
    /* Positioning is now handled by the .w3-bottom class from W3.CSS */
    z-index: 1030;

    /* Layout */
    display: grid; /* Use Grid layout */
    grid-auto-flow: column; /* Arrange items in columns */
    grid-auto-columns: 1fr; /* Make each auto-created column equal in width */
    align-items: center;
    /* text-align, background-color, and padding are now handled by W3.CSS classes */
}

/* Style for each button (direct child) inside the action bar */
#mobile-contact-bar > * {
    /* text-align is inherited from parent's .w3-center */
    /* font-size is now handled by .w3-xxlarge */
}

/* Hide the bar on medium and large screens (tablets and desktops) */
@media (min-width: 768px) {
    #mobile-contact-bar {
        display: none;
    }
}

/* --- Mobile Header Buttons (Moved from .btn-getstarted in jcid.css) --- */
/* This class is for buttons in the top header on mobile, like 'Menu' and 'Order' */
.mobile-header-btn {
  color: white;
  background: var(--salmon);
  font-size: 14px;
  padding: 8px 1rem;
  margin: 0 0.5rem;
  border-radius: 50px;
  transition: 0.3s;
  text-decoration: none;
  text-align: center;
}

.mobile-header-btn:hover {
  color: white;
  background: #e07060;
}

/* --- Hamburger & Modal Menu Styles (Moved from jcid.css) --- */

.hamburger {
    display: none; /* Still hidden by default */
    /* background, border, font-size, color, and cursor are now handled by W3.CSS classes */
    padding: 0 0.5rem;
}

/* Show hamburger on screens smaller than 1200px */
@media (max-width: 1200px) {
  .hamburger {
    display: block;
  }
}
/* Modal Menu Styles */
.modal-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-menu.active {
    display: flex;
}

.modal-content {
    background-color: var(--peach);
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--salmon);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--salmon);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* When modal is active, prevent background scroll */
.mobile-nav-active {
  overflow: hidden;
}
/* Modal Menu Styles */
.modal-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-menu.active {
    display: flex;
}

.modal-content {
    background-color: var(--peach);
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--salmon);
}

.close-btn {
    font-size: 2rem;
    color: var(--salmon);
    padding: 0;
    line-height: 1;
}

.modal-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-links a {
    color: var(--dark-text);
    text-decoration: none;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

/* When modal is active, prevent background scroll */
.mobile-nav-active {
  overflow: hidden;
}