/* Menu Styles - Shared between homepage and agent pages */

/* Hamburger Menu Styles */
.hamburger-menu {
  position: fixed;
  top: 45px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 380px;
  max-width: calc(100vw - 32px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: all 0.2s ease;
  max-height: 500px;
  overflow-y: auto;
}

.hamburger-menu.show {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive positioning for hamburger menu */
@media (min-width: 1024px) {
  .hamburger-menu {
    left: calc(50% - 28rem + 16px);
    transform: translateY(-10px);
  }
  .hamburger-menu.show {
    transform: translateY(0);
  }
}

@media (max-width: 1023px) {
  .hamburger-menu {
    left: 16px;
    transform: translateY(-10px);
  }
  .hamburger-menu.show {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hamburger-menu {
    left: 8px;
    width: calc(100vw - 16px);
    max-width: 320px;
    transform: translateY(-10px);
  }
  .hamburger-menu.show {
    transform: translateY(0);
  }
}

/* Plus Menu Styles */
.plus-menu {
  position: fixed;
  width: 280px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  max-height: 300px;
  overflow-y: auto;
}

.plus-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Menu Content */
.hamburger-content {
  padding: 0.5rem;
}

/* Hamburger Icon Styles */
.hamburger-icon {
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  position: relative;
  opacity: 0.5;
}

.hamburger-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

/* Agent creation states (agent page only) */
.hamburger-icon.agent-creating {
  background: rgba(239, 68, 68, 0.5);
  opacity: 1;
  animation: agentCreatingPulse 2s ease-in-out infinite;
}

.hamburger-icon.agent-creating svg {
  color: #ef4444;
}

.hamburger-icon.agent-ready {
  background: rgba(34, 197, 94, 0.3);
  opacity: 1;
  animation: agentReadyPulse 3s ease-in-out infinite;
}

.hamburger-icon.agent-ready svg {
  color: #22c55e;
}

@keyframes agentCreatingPulse {
  0%,
  100% {
    background: rgba(239, 68, 68, 0.2);
  }
  50% {
    background: rgba(239, 68, 68, 0.4);
  }
}

@keyframes agentReadyPulse {
  0%,
  100% {
    background: rgba(34, 197, 94, 0.3);
  }
  50% {
    background: rgba(34, 197, 94, 0.6);
  }
}

/* Chat History Item Styles */
.chat-history-item {
  display: block;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: left;
}

.chat-history-item:last-child {
  border-bottom: none;
}

.chat-history-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.chat-history-item-title {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.1rem;
  text-align: left;
}

.chat-history-item-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: left;
}

.chat-history-item-goal {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin-top: 0.25rem;
  text-align: left;
  line-height: 1.3;
}
