/* Mission to Mars - Menu Styling */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background: #0a0f1a;
  color: #e9f6ff;
  font-family: "Roboto", sans-serif;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 2px,
    transparent 4px
  );
  opacity: 0.15;
  z-index: 40;
}

/* Animated background */
.bg-animation {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 80%,
      rgba(107, 76, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(51, 175, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(51, 175, 255, 0.05) 0%,
      transparent 60%
    );
  animation: bgPulse 8s ease-in-out infinite;
  z-index: -1;
}

@keyframes bgPulse {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

/* Stars */
.stars {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, white, transparent),
    radial-gradient(
      2px 2px at 40px 70px,
      rgba(255, 255, 255, 0.8),
      transparent
    ),
    radial-gradient(1px 1px at 90px 40px, white, transparent),
    radial-gradient(
      2px 2px at 130px 80px,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(1px 1px at 160px 120px, white, transparent);
  background-size: 200px 200px;
  animation: twinkle 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  border-bottom: 1px solid rgba(51, 175, 255, 0.25);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 80;
}

.logo {
  font-family: "Orbitron", sans-serif;
  font-size: 26px;
  color: #33afff;
  text-shadow: 0 0 12px #33afff;
  margin: 0;
}

.boot-button {
  padding: 10px 22px;
  font-family: "Orbitron";
  font-size: 14px;
  border: 2px solid #33afff;
  background: rgba(10, 15, 25, 0.7);
  color: #33afff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.25s;
  box-shadow:
    0 0 8px #33afff inset,
    0 0 12px #33afff;
  backdrop-filter: blur(5px);
}

.boot-button:hover {
  background: #33afff;
  color: #05070d;
  transform: translateY(-2px);
}

.content-wrapper {
  height: calc(100vh - 75px);
  padding: 15px 30px 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Space background decorations */
.space-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.planet {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle at 30% 30%,
    #ff6b4a 0%,
    #c9302c 40%,
    #8b1a1a 100%
  );
  border-radius: 50%;
  opacity: 0.15;
  box-shadow:
    0 0 80px rgba(255, 107, 74, 0.3),
    inset -30px -30px 60px rgba(0, 0, 0, 0.5);
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(
      2px 2px at 40px 70px,
      rgba(255, 255, 255, 0.8),
      transparent
    ),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(
      2px 2px at 130px 80px,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(1px 1px at 160px 120px, #fff, transparent),
    radial-gradient(
      2px 2px at 200px 50px,
      rgba(255, 255, 255, 0.7),
      transparent
    ),
    radial-gradient(1px 1px at 250px 160px, #fff, transparent),
    radial-gradient(
      2px 2px at 300px 90px,
      rgba(255, 255, 255, 0.5),
      transparent
    ),
    radial-gradient(1px 1px at 350px 200px, #fff, transparent),
    radial-gradient(
      2px 2px at 400px 140px,
      rgba(255, 255, 255, 0.8),
      transparent
    );
  background-size: 400px 250px;
  animation: twinkle 8s ease-in-out infinite;
  opacity: 0.4;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.6;
  }
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Daily Special Banner */
.daily-special {
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(
    90deg,
    rgba(255, 200, 0, 0.15),
    rgba(255, 150, 0, 0.1)
  );
  border: 1px solid rgba(255, 200, 0, 0.4);
  padding: 8px 20px;
  border-radius: 8px;
  animation: specialGlow 3s ease-in-out infinite;
}

@keyframes specialGlow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 200, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 200, 0, 0.4);
  }
}

.special-label {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  color: #ffc800;
  text-shadow: 0 0 8px #ffc800;
  font-weight: 600;
}

.special-item {
  font-size: 13px;
  color: #e9f6ff;
}

.special-price {
  color: #10b981;
  font-weight: 600;
}

.special-item s {
  color: #6b7280;
  margin-left: 5px;
}

.page-title {
  font-family: "Orbitron", sans-serif;
  font-size: 28px;
  color: #33afff;
  text-shadow: 0 0 15px #33afff;
  letter-spacing: 4px;
}

.cart-summary {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 8px 20px;
  border-radius: 8px;
}

.cart-count {
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  color: #10b981;
  text-shadow: 0 0 10px #10b981;
  background: rgba(16, 185, 129, 0.2);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-total {
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  color: #10b981;
  text-shadow: 0 0 8px #10b981;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.tab-btn {
  font-family: "Orbitron", sans-serif;
  padding: 12px 20px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(51, 175, 255, 0.35);
  color: #e9f6ff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}

.tab-btn:hover {
  border-color: #33afff;
  box-shadow: 0 0 20px rgba(51, 175, 255, 0.25);
}

.tab-btn.active {
  background: rgba(51, 175, 255, 0.15);
  border-color: #33afff;
  color: #33afff;
  box-shadow:
    0 0 8px #33afff inset,
    0 0 15px rgba(51, 175, 255, 0.3);
}

/* Main content layout with sidebar */
.main-content {
  display: flex;
  gap: 20px;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.menu-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.menu-display {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.menu-category {
  display: none;
  height: 100%;
  animation: fadeIn 0.2s ease-in;
}

.menu-category.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  height: 100%;
  align-content: start;
}

.menu-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(51, 175, 255, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e9f6ff;
  position: relative;
}

.item-badges {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.item-name {
  font-family: "Orbitron", sans-serif;
  font-size: 17px;
  color: #e9f6ff;
}

.item-desc {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  color: #8a9ab0;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.menu-item:hover {
  border-color: #33afff;
  box-shadow: 0 0 20px rgba(51, 175, 255, 0.3);
  background: rgba(51, 175, 255, 0.1);
}

.menu-item:hover .item-desc {
  color: #a0b4c8;
}

.menu-item.selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.menu-item.selected::after {
  content: "✓";
  position: absolute;
  right: 8px;
  top: 8px;
  color: #10b981;
  font-size: 14px;
  text-shadow: 0 0 8px #10b981;
}

.price {
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  color: #10b981;
  text-shadow: 0 0 6px #10b981;
  margin-left: auto;
  flex-shrink: 0;
}

.order-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(51, 175, 255, 0.35);
  border-radius: 8px;
  padding: 10px 20px;
  margin-top: 10px;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.order-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.selected-items {
  flex: 1;
  font-size: 13px;
  color: #a0aec0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-btn {
  font-family: "Orbitron", sans-serif;
  padding: 10px 30px;
  font-size: 14px;
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid #10b981;
  color: #10b981;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
  text-shadow: 0 0 8px #10b981;
}

.order-btn:hover {
  background: #10b981;
  color: #0a0f1a;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}

.order-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #0a0f1a;
  border: 2px solid #10b981;
  border-radius: 16px;
  padding: 30px 40px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.4);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  font-family: "Orbitron", sans-serif;
  font-size: 20px;
  color: #10b981;
  text-shadow: 0 0 15px #10b981;
  margin-bottom: 20px;
}

.modal-body {
  color: #e9f6ff;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.modal-close {
  font-family: "Orbitron", sans-serif;
  padding: 10px 30px;
  font-size: 12px;
  background: rgba(51, 175, 255, 0.2);
  border: 2px solid #33afff;
  color: #33afff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
}

.modal-close:hover {
  background: #33afff;
  color: #0a0f1a;
}

/* Info Bar (bottom) */
.info-bar {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
  margin-top: 15px;
  position: relative;
  z-index: 1;
}

.info-section {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(51, 175, 255, 0.3);
  border-radius: 12px;
  padding: 12px 18px;
  backdrop-filter: blur(8px);
}

.info-section h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  color: #33afff;
  text-shadow: 0 0 8px #33afff;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.info-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
}

.info-section li {
  font-size: 11px;
  color: #a0aec0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-section p {
  font-size: 11px;
  color: #a0aec0;
  line-height: 1.4;
}

.allergen-legend .badge {
  position: static;
  margin-right: 3px;
}

/* Badges */
.menu-item > .badge {
  font-size: 14px;
  flex-shrink: 0;
}

.badge + .badge {
  margin-left: -2px;
}

.badge-popular {
  filter: drop-shadow(0 0 4px #ffc800);
}

.badge-vegan {
  filter: drop-shadow(0 0 4px #10b981);
}

.badge-spicy {
  filter: drop-shadow(0 0 4px #ff6b4a);
}

.badge-nuts {
  filter: drop-shadow(0 0 4px #d97706);
}

/* Responsive */
@media (max-width: 1200px) {
  .daily-special {
    display: none;
  }
}

@media (max-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-bar {
    display: none;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 8px 15px;
  }

  .logo {
    font-size: 16px;
  }

  .content-wrapper {
    padding: 8px 12px 12px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .menu-item {
    padding: 10px 12px;
    font-size: 11px;
  }

  .category-tabs {
    gap: 5px;
  }

  .tab-btn {
    padding: 6px 10px;
    font-size: 10px;
  }

  .cart-summary {
    padding: 6px 12px;
  }

  .cart-count {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .cart-total {
    font-size: 11px;
  }

  .badge {
    font-size: 10px;
    top: 5px;
    left: 5px;
  }

  .badge + .badge {
    left: 20px;
  }
}
