/*
 * LAYOUT STYLES - Le First (French Tacos)
 * Neon sign on dark brick wall aesthetic
 */

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--header-height);
  background: rgba(21, 15, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.header-spacer {
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--text-main);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.nav-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.nav-btn:active {
  transform: scale(0.9);
}

.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-dark);
  box-shadow: var(--glow-box-accent);
}

/* === MAIN === */
.main {
  min-height: calc(100vh - var(--header-height) - 200px);
  padding: var(--space-8) 0;
}

/* === FOOTER === */
.footer {
  padding: 60px 20px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  background: rgba(10, 6, 8, 0.95);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.4), transparent);
}

.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.06), transparent);
  pointer-events: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-link {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
  text-shadow: var(--neon-primary-soft);
  transform: translateY(-2px);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* === FLASH MESSAGES === */
.flash-messages {
  position: fixed;
  top: calc(var(--header-height) + var(--space-4));
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.flash {
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  box-shadow: var(--shadow-lg);
  animation: slideIn var(--transition-normal);
}

.flash-success { background-color: var(--color-success); color: white; }
.flash-error { background-color: var(--color-error); color: white; }
.flash-warning { background-color: var(--color-warning); color: white; }
.flash-info { background-color: var(--color-info); color: white; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.header-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-logo img {
    height: 44px;
  }
}

/* === MENU OVERLAY (mobile nav) === */
html.nav-open {
  overflow: hidden;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}

.nav-overlay.is-open {
  display: flex;
}

.nav-overlay[hidden] {
  display: none !important;
}

.nav-drawer {
  width: min(560px, 100%);
  max-height: 88vh;
  background: linear-gradient(180deg, #1c1418 0%, #0d0b0c 100%);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -30px 100px rgba(0, 0, 0, 0.9), 0 0 60px rgba(var(--primary-rgb), 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: drawerSlideUp 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes drawerSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.12);
}

.nav-drawer__title {
  font-family: var(--font-family-accent);
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.5rem;
  color: var(--primary);
  text-shadow: var(--neon-primary);
}

.nav-drawer__close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-drawer__close:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(90deg);
}

.nav-drawer__body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.nav-item:hover {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.3);
  transform: translateX(6px);
  color: var(--primary);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.nav-item--highlight {
  background: rgba(var(--primary-rgb), 0.12);
  border-color: rgba(var(--primary-rgb), 0.25);
  color: var(--primary);
  box-shadow: var(--glow-box-primary);
  font-style: italic;
}

.nav-item--highlight:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.nav-divider {
  margin: 24px 16px 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  opacity: 0.8;
  font-style: italic;
}

.nav-drawer__footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

.nav-drawer__brand {
  margin: 0;
  font-weight: 600;
  font-family: var(--font-family-accent);
  color: var(--primary);
  text-shadow: var(--neon-primary-soft);
}

.nav-drawer__sub {
  margin: 6px 0 0;
  color: var(--accent);
  font-size: 0.85rem;
  opacity: 0.7;
}
