/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }

  .hero-title {
    font-size: 5rem;
  }

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

  .menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
  }
}

/* Desktop (1024px to 1199px) */
@media (max-width: 1199px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
  }
}

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) {
  .container {
    padding: 0 1.5rem;
  }

  .nav-container {
    padding: 1rem;
  }

  .nav-menu {
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

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

  .menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .menu-item-content {
    padding: 1.5rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .modal-content {
    width: 95%;
    margin: 3% auto;
  }

  .modal-body {
    flex-direction: column;
  }

  .modal-image {
    height: 250px;
  }
}

/* Mobile Large (481px to 767px) */
@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }

  /* Navigation - Mobile Layout */
  .nav-container {
    padding: 0.75rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Smart Navigation Mobile Styles */
  .navbar.nav-compact .nav-container {
    padding: 0.5rem 1rem;
  }

  .navbar.nav-compact .logo-image {
    height: 55px;
  }

  .navbar.nav-compact .logo-text {
    font-size: 2rem;
  }

  .navbar.nav-compact .logo-tagline {
    font-size: 0.6rem;
  }

  .navbar.nav-compact .contact-info {
    display: none;
  }

  /* Hide navigation menu on mobile */
  .nav-menu {
    display: none;
  }

  /* Hide contact info on mobile */
  .contact-info {
    display: none;
  }

  /* Center logo on mobile - full width */
  .logo {
    flex: 1;
    justify-content: center;
    width: 100%;
  }

  .nav-spacer {
    display: none;
  }

  /* Adjust nav container for mobile */
  .nav-container {
    justify-content: center;
  }

  /* Hero Section */
  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
  }

  /* Main Content */
  .main-content,
  .compact-main {
    padding-top: 70px; /* Closer to header on mobile */
  }

  /* Menu Sections */
  .menu-section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

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

  .section-description {
    font-size: 1rem;
  }

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

  .menu-item-image {
    height: 200px;
  }

  .menu-item-content {
    padding: 1.25rem;
  }

  .menu-item-name {
    font-size: 1rem;
  }

  .menu-item-price {
    font-size: 1rem;
  }

  .menu-item-description {
    font-size: 0.8rem;
  }

  .menu-item-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Modal */
  .modal-content {
    width: 95%;
  }

  .modal-image {
    height: 200px;
  }

  .modal-info {
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 1.6rem;
  }

  .modal-description {
    font-size: 1rem;
  }

  .modal-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .modal-price {
    font-size: 1.3rem;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

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

  /* Signature section responsive */
  .signature-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

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

  .signature-crown {
    width: 45px;
    height: 45px;
  }

  .signature-crown svg {
    width: 24px;
    height: 24px;
  }

  .must-try {
    font-size: 1.2rem;
    bottom: 0.5rem;
    right: 1rem;
  }
}

/* Mobile Small (320px to 480px) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 0.75rem;
  }

  .logo-image {
    height: 55px;
  }

  .logo-text {
    font-size: 2rem;
  }

  .logo-tagline {
    font-size: 0.7rem;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .cta-button {
    padding: 0.75rem 1.75rem;
    font-size: 0.85rem;
  }

  /* Main Content */
  .main-content,
  .compact-main {
    padding-top: 20px; /* Very close to header on small mobile */
  }

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

  .section-description {
    font-size: 0.95rem;
  }

  .menu-item-image {
    height: 180px;
  }

  .menu-item-content {
    padding: 1rem;
  }

  .menu-item-name {
    font-size: 1.1rem;
  }

  .menu-item-price {
    font-size: 1.1rem;
  }

  .menu-item-description {
    font-size: 0.85rem;
  }

  .dietary-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }

  .featured-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }

  .search-input {
    padding: 0.75rem 1rem;
    padding-right: 2.75rem;
    font-size: 0.9rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .modal-content {
    width: 95%;
  }

  .modal-image {
    height: 360px;
  }

  .modal-info {
    padding: 1.25rem;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-description {
    font-size: 0.9rem;
  }

  .close-button {
    font-size: 1.5rem;
    top: 0.75rem;
    right: 1rem;
  }

  /* Signature section responsive */
  .signature-title {
    font-size: 1.5rem;
  }

  .signature-crown {
    width: 40px;
    height: 40px;
  }

  .signature-crown svg {
    width: 20px;
    height: 20px;
  }

  .signature-subtitle {
    font-size: 0.7rem;
  }

  .must-try {
    font-size: 1rem;
  }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
  html {
    font-size: 13px;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .menu-item-image {
    height: 160px;
  }

  .modal-image {
    height: 140px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .menu-item-image,
  .modal-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .nav-menu {
    top: 60px;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
  }

  .modal-body {
    flex-direction: row;
  }

  .modal-image {
    width: 50%;
    height: auto;
    min-height: 200px;
  }

  .modal-info {
    width: 50%;
    padding: 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero,
  .menu-controls,
  .modal,
  .footer {
    display: none !important;
  }

  .main-content {
    margin-top: 0;
  }

  .menu-section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }

  .menu-item {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
  }

  .menu-item-image {
    height: 150px;
  }

  .section-title {
    color: #000 !important;
  }

  .menu-item-price {
    color: #000 !important;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1a1a1a;
    --text-color: #fafafa;
    --card-bg: #2d2d2d;
    --border-color: #404040;
  }

  /* Apply dark mode styles if user prefers dark theme */
  /* This can be expanded based on requirements */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .menu-item {
    border: 2px solid #000;
  }

  .nav-link::after {
    height: 3px;
  }

  .section-title::after {
    height: 4px;
  }
}

/* ===== BOTTOM NAVIGATION RESPONSIVE ===== */

/* Desktop and Tablet */
@media (min-width: 768px) {
  .bottom-nav-text {
    font-size: 0.7rem;
  }

  .bottom-nav-icon i {
    font-size: 20px;
  }

  .bottom-nav-item {
    min-width: 70px;
    padding: 0.5rem 0.8rem;
  }
}

/* Mobile Large (481px to 767px) */
@media (max-width: 767px) {
  .bottom-nav {
    padding: 2rem 0;
    min-height: 100px;
    /* Ensure fixed positioning on mobile */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    /* Prevent iOS Safari bottom bar issues */
    padding-bottom: env(safe-area-inset-bottom, 2rem);
    /* Ensure it stays above everything */
    z-index: 1000 !important;
    /* Prevent scrolling issues */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .bottom-nav-scrollable {
    padding: 0 0.5rem;
    gap: 0.25rem;
  }

  .bottom-nav-fixed {
    padding: 0 0.5rem;
  }

  .bottom-nav-item {
    padding: 1rem 0.75rem;
    min-width: 80px;
  }

  .bottom-nav-icon i {
    font-size: 24px;
  }

  .bottom-nav-text {
    font-size: 0.8rem;
  }

  /* Adjust main content padding for mobile */
  .main-content {
    padding-bottom: 130px;
  }

  /* Signature dish crown icon responsive */
  .menu-item.signature-dish .signature-icon {
    width: 30px;
    height: 30px;
    margin-right: 0.75rem;
  }
}

/* Mobile Small (320px to 480px) */
@media (max-width: 480px) {
  .bottom-nav {
    padding: 1.75rem 0;
    min-height: 95px;
    /* Ensure fixed positioning on small mobile */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    /* Prevent iOS Safari bottom bar issues */
    padding-bottom: env(safe-area-inset-bottom, 1.75rem);
    /* Ensure it stays above everything */
    z-index: 1000 !important;
    /* Prevent scrolling issues */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .bottom-nav-scrollable {
    padding: 0 0.25rem;
    gap: 0.15rem;
  }

  .bottom-nav-fixed {
    padding: 0 0.25rem;
  }

  .bottom-nav-item {
    padding: 0.9rem 0.6rem;
    min-width: 75px;
  }

  .bottom-nav-icon i {
    font-size: 22px;
  }

  .bottom-nav-text {
    font-size: 0.75rem;
    letter-spacing: 0.2px;
  }

  /* Adjust main content padding for small mobile */
  .main-content {
    padding-bottom: 125px;
  }

  /* Signature dish crown icon responsive */
  .menu-item.signature-dish .signature-icon {
    width: 28px;
    height: 28px;
    margin-right: 0.5rem;
  }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
  .bottom-nav-item {
    min-width: 55px;
    padding: 0.5rem 0.3rem;
  }

  .bottom-nav-icon i {
    font-size: 16px;
  }

  .bottom-nav-text {
    font-size: 0.6rem;
  }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .bottom-nav {
    padding: 0.75rem 0;
    min-height: 70px;
    /* Ensure fixed positioning in landscape */
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    /* Prevent iOS Safari bottom bar issues */
    padding-bottom: env(safe-area-inset-bottom, 0.75rem);
    /* Ensure it stays above everything */
    z-index: 1000 !important;
    /* Prevent scrolling issues */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .bottom-nav-item {
    padding: 0.5rem 0.3rem;
  }

  .bottom-nav-icon i {
    font-size: 16px;
  }

  .bottom-nav-text {
    font-size: 0.6rem;
  }

  .main-content {
    padding-bottom: 95px;
  }

  /* Signature dish crown icon responsive */
  .menu-item.signature-dish .signature-icon {
    width: 26px;
    height: 26px;
    margin-right: 0.5rem;
  }
}

/* Print Styles - Hide bottom navigation */
@media print {
  .bottom-nav {
    display: none !important;
  }

  .main-content {
    padding-bottom: 0 !important;
  }
}
