/**
 * Layout Styles - Core Structure
 * App container, main content area, and textured background
 *
 * Component styles are split into separate files:
 * - components/header.css - Banner, logo, marquee
 * - components/drawer.css - Drawer toggle and more drawer menu
 * - components/tabbar.css - Bottom tab bar navigation
 * - animations.css - Page transitions and staggered animations
 */

/* ==========================================================================
   APP LAYOUT STRUCTURE
   ========================================================================== */

.app-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-background);
  z-index: 0;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */

.main-content-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.main-content-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(35, 31, 32, 1) 0%, rgba(35, 31, 32, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Hide top gradient on valet page to allow background pattern through */
.main-content-wrapper:has(.page-valet)::before {
  display: none;
}

.textured-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.textured-background .texture-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.textured-background .watermark-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.22;
  pointer-events: none;
}

#main-content {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: 50px;
}
