/* shadcn/ui-style Navbar Components */

/* Navbar Container */
.shadcn-navbar {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

/* Logo */
.shadcn-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
}

.shadcn-logo-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shadcn-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Navbar Right Section */
.shadcn-navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Credits Badge */
.shadcn-badge-credits {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--foreground);
  font-weight: 500;
}

.shadcn-badge-credits::before {
  content: '⚡';
  font-size: 0.875rem;
}

/* User Greeting */
.shadcn-user-greeting {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Buttons */
.shadcn-navbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  height: 36px;
  padding: 0 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
}

.shadcn-navbar-button:hover {
  background-color: #7b00e0;
}

.shadcn-navbar-button-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.shadcn-navbar-button-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--foreground);
}

/* Icon Button */
.shadcn-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.shadcn-icon-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.shadcn-icon-button-notification::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  border: 2px solid rgba(15, 15, 15, 0.95);
}

/* Avatar */
.shadcn-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, rgba(140, 2, 255, 0.1), rgba(95, 159, 255, 0.1));
  border: 1px solid rgba(140, 2, 255, 0.2);
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.shadcn-avatar:hover {
  background: linear-gradient(45deg, rgba(140, 2, 255, 0.15), rgba(95, 159, 255, 0.15));
  border-color: rgba(140, 2, 255, 0.3);
  transform: scale(1.05);
}

.shadcn-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}

/* Dropdown */
.shadcn-dropdown {
  position: relative;
  display: inline-block;
}

.shadcn-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background-color: rgba(25, 25, 25, 0.98);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 38px -10px rgba(0, 0, 0, 0.4), 0 10px 20px -15px rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  z-index: 50;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.shadcn-dropdown-content.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.shadcn-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background-color 0.2s;
}

.shadcn-dropdown-item:hover {
  background-color: rgba(140, 2, 255, 0.1);
}

.shadcn-dropdown-item-icon {
  color: rgba(255, 255, 255, 0.6);
  width: 16px;
  text-align: center;
}

.shadcn-dropdown-divider {
  height: 1px;
  background-color: var(--border);
  margin: 0.5rem 0;
}

/* Hamburger Menu Button */
.shadcn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.shadcn-hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--foreground);
  transition: all 0.3s ease;
  transform-origin: 1px;
}

/* Mobile Menu */
.shadcn-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 300px;
  height: 100vh;
  background-color: rgba(15, 15, 15, 0.98);
  backdrop-filter: blur(10px);
  z-index: 150;
  padding: 5rem 1.5rem 1.5rem;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 1px solid var(--border);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

.shadcn-mobile-menu.open {
  right: 0;
}

.shadcn-mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 140;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.shadcn-mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.shadcn-mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: var(--foreground);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shadcn-mobile-menu-item:last-child {
  margin-top: auto;
  border-bottom: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.shadcn-mobile-menu-item-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.shadcn-mobile-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.shadcn-mobile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  border: 2px solid rgba(140, 2, 255, 0.3);
  background: linear-gradient(45deg, rgba(140, 2, 255, 0.1), rgba(95, 159, 255, 0.1));
  object-fit: cover;
}

.shadcn-mobile-greeting {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.shadcn-mobile-credits {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--foreground);
  font-weight: 500;
}

.shadcn-mobile-credits::before {
  content: '⚡';
  font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .shadcn-navbar {
    padding: 0.75rem 1rem;
  }

  .shadcn-hamburger {
    display: flex;
  }

  .shadcn-navbar-right {
    gap: 0.75rem;
  }

  .shadcn-user-greeting,
  .shadcn-badge-credits,
  .shadcn-navbar-button,
  .shadcn-icon-button,
  .shadcn-dropdown {
    display: none;
  }

  /* Hamburger Animation */
  .shadcn-hamburger.open span:first-child {
    transform: rotate(45deg);
  }

  .shadcn-hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .shadcn-hamburger.open span:last-child {
    transform: rotate(-45deg);
  }
}
