/* e:\Vibe Coding\neuradine\css\responsive.css */

/* Tablet & Mobile Nav Override */
@media (max-width: 992px) {
  .container {
    max-width: 760px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .hero-badge {
    align-self: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }

  .hero-proof-row {
    justify-content: center;
  }
  
  .hero-visual {
    height: 430px;
  }

  .food-stage {
    width: min(390px, 88vw);
  }

  .surge-left {
    left: 4%;
    bottom: 26px;
  }

  .surge-right {
    right: 4%;
    top: 70px;
  }
  
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  
  .dashboard-mobile-bar {
    display: flex;
  }

  .dashboard-sidebar {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 86vw);
    height: 100dvh;
    z-index: 1003;
    transform: translateX(-105%);
    transition: transform var(--transition-smooth);
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.35);
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
  }

  .dashboard-sidebar-backdrop {
    display: block;
  }
  
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .zone-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile Specific App View */
@media (max-width: 768px) {
  body {
    padding-bottom: 72px; /* Space for Bottom App Nav */
    overflow-x: hidden;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .container {
    padding: 0 18px;
  }

  header.navbar-container {
    padding: 12px 0;
  }

  .brand-logo {
    font-size: 20px;
    gap: 8px;
  }

  .brand-logo .nav-thali-logo {
    width: 38px;
    height: 31px;
  }
  
  .nav-menu, .nav-actions .btn-secondary, .nav-actions .btn-primary {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }

  .nav-menu.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(var(--bg-dark-rgb), 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 1000;
    padding: 40px;
    animation: slideUpReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow-y: auto;
  }

  .nav-menu.open .mobile-menu-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(280px, 100%);
    margin-top: 6px;
  }

  .nav-menu.open .mobile-menu-actions a {
    width: 100%;
    min-height: 48px;
  }

  .nav-menu.open .nav-link {
    font-size: 22px;
    font-weight: 700;
  }

  .nav-menu.open li {
    width: min(280px, 100%);
    text-align: center;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  /* Mobile Bottom Navigation Bar (Tesla / Apple premium vibe) */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(var(--bg-card-rgb), 0.85);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    padding: 8px 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  }
  
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    transition: color var(--transition-fast);
  }
  
  .mobile-nav-item.active, .mobile-nav-item:hover {
    color: var(--primary);
  }
  
  .mobile-nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-main {
    padding: 20px;
  }
  
  .card-glass {
    padding: 16px;
  }

  .hero-section {
    min-height: auto;
    padding: 104px 0 54px;
  }

  .hero-title {
    font-size: clamp(36px, 11vw, 52px);
  }

  .hero-subtitle {
    font-size: 16px;
    margin: 0 auto;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons a {
    width: min(100%, 340px);
  }

  .hero-visual {
    height: 470px;
    margin-top: 8px;
  }

  .food-toggle-bar {
    top: 0;
    max-width: calc(100vw - 32px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .food-toggle-bar::-webkit-scrollbar {
    display: none;
  }

  .toggle-food-btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }

  .food-stage {
    width: min(320px, 84vw);
  }

  .food-float {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .food-float-7,
  .food-float-8,
  .food-float-9,
  .food-confetti-rain {
    display: none;
  }

  .booking-surge-card {
    min-width: 156px;
    padding: 11px 12px;
    animation: none;
  }

  .booking-surge-card strong {
    font-size: 13px;
  }

  .booking-surge-card small {
    font-size: 11px;
  }

  .surge-left {
    left: 50%;
    bottom: 6px;
    transform: translateX(-94%);
  }

  .surge-right {
    right: 50%;
    top: auto;
    bottom: 6px;
    transform: translateX(94%);
  }

  .home-section {
    padding: 58px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .section-heading p {
    font-size: 15px;
  }

  .live-feed-track {
    gap: 16px;
    padding-bottom: 24px;
    margin-right: -18px;
    padding-right: 18px;
  }

  .live-feed-track .card-glass {
    min-width: min(286px, 82vw) !important;
  }

  .zone-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .zone-card {
    min-height: 0;
  }

  .stat-tile {
    min-height: 140px;
  }

  .site-footer {
    padding-bottom: 96px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-credit {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .site-footer-compact .footer-credit {
    align-items: center;
  }

  .footer-bottom div {
    flex-wrap: wrap;
  }

  .register-wrapper,
  .sub-wrapper,
  .booking-wrapper {
    padding-top: 104px !important;
    padding-bottom: 92px !important;
  }

  .register-wrapper .container,
  .sub-wrapper .container,
  .booking-wrapper .container {
    max-width: 100%;
  }

  .toggle-billing-track {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr;
    border-radius: 18px !important;
  }

  .toggle-billing-btn {
    width: 100%;
    min-height: 46px;
    white-space: normal;
    line-height: 1.2;
  }

  .sub-grid,
  .booking-grid {
    gap: 20px !important;
  }

  .booking-grid form > .card-glass,
  .register-wrapper .card-glass,
  .sub-grid .card-glass {
    padding: 18px !important;
  }

  .booking-grid [style*="grid-template-columns: 1fr 1fr"],
  .register-wrapper [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .restaurant-card {
    padding: 16px !important;
  }

  .restaurant-card-media {
    height: 176px !important;
  }

  .restaurant-card-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  .restaurant-card-actions .maps-link {
    grid-column: 1 / -1;
  }

  /* Dashboard mobile drawer */
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    position: sticky;
    top: 0;
    z-index: 1002;
    background: rgba(var(--bg-card-rgb), 0.92);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid var(--border);
  }

  .dashboard-sidebar {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 86vw);
    height: 100dvh;
    z-index: 1003;
    transform: translateX(-105%);
    transition: transform var(--transition-smooth);
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.35);
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
  }

  .dashboard-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1002;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
  }

  .dashboard-sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-main {
    min-height: 100vh;
    height: auto;
    padding: 18px 16px 88px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .dashboard-header h1 {
    font-size: 24px !important;
  }

  .dashboard-input-grid {
    grid-template-columns: 1fr !important;
  }

  .analytics-grid .card-glass {
    height: auto !important;
    min-height: 300px;
  }

  .detail-body {
    padding-top: 104px !important;
    padding-bottom: 88px;
  }

  .detail-content-layout {
    gap: 24px !important;
    margin-bottom: 48px !important;
  }

  .auth-wrapper,
  .contact-wrapper {
    padding-top: 104px !important;
    padding-bottom: 92px !important;
  }

  .auth-wrapper .card-glass,
  .contact-wrapper .card-glass {
    padding: 20px !important;
  }

  .view-toggle-bar {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .view-toggle-bar::-webkit-scrollbar {
    display: none;
  }

  .mobile-bottom-nav {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    height: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 430px) {
  .container {
    padding: 0 16px;
  }

  .hero-badge {
    max-width: 100%;
    justify-content: center;
    font-size: 11px;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(34px, 11.4vw, 46px);
  }

  .hero-proof-row span {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hero-visual {
    height: 440px;
  }

  .food-stage {
    width: min(292px, 82vw);
  }

  .booking-surge-card {
    min-width: 138px;
    max-width: 148px;
  }

  .booking-surge-card strong {
    line-height: 1.2;
  }

  .toggle-food-btn {
    font-size: 10px;
  }

  .footer-badges .badge {
    width: 100%;
    justify-content: center;
  }

  .brand-logo {
    font-size: 18px;
    min-width: 0;
  }

  .brand-logo svg {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
  }

  .nav-actions {
    gap: 8px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-toggle {
    width: 28px;
  }
}
