/**
 * Demo Page Styles
 * Styling for the interactive demo page
 */

/* Demo Navigation */
.demo-nav-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.demo-nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, currentColor, transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.demo-nav-btn:hover::after,
.demo-nav-btn.active::after {
  transform: scaleX(1);
}

.demo-nav-btn.active {
  font-weight: 500;
}

/* Demo Sections */
.demo-section {
  display: none;
  margin-bottom: 2rem;
}

.demo-section.active {
  display: block !important;
  animation: fadeIn 0.5s ease forwards;
}

.demo-section.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Chat Demo */
.chat-demo-container {
  background: rgba(30, 30, 46, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(0, 242, 255, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.chat-demo-container:hover {
  border-color: rgba(0, 242, 255, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 242, 255, 0.2);
}

.chat-demo-header {
  background: linear-gradient(to right, rgba(0, 242, 255, 0.1), rgba(138, 43, 226, 0.1));
  border-bottom: 1px solid rgba(0, 242, 255, 0.2);
}

.chat-demo-messages {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 255, 0.3) rgba(30, 30, 46, 0.5);
}

.chat-demo-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-demo-messages::-webkit-scrollbar-track {
  background: rgba(30, 30, 46, 0.5);
}

.chat-demo-messages::-webkit-scrollbar-thumb {
  background-color: rgba(0, 242, 255, 0.3);
  border-radius: 6px;
}

.chat-demo-input {
  background: rgba(30, 30, 46, 0.6);
  border: 1px solid rgba(0, 242, 255, 0.2);
  transition: all 0.3s ease;
}

.chat-demo-input:focus {
  border-color: rgba(0, 242, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 242, 255, 0.2);
}

.chat-demo-send {
  background: linear-gradient(to right, #00f2ff, #8a2be2);
  transition: all 0.3s ease;
}

.chat-demo-send:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* Image Generation Demo */
.image-demo-container {
  background: rgba(30, 30, 46, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(138, 43, 226, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.image-demo-container:hover {
  border-color: rgba(138, 43, 226, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(138, 43, 226, 0.2);
}

.image-demo-header {
  background: linear-gradient(to right, rgba(138, 43, 226, 0.1), rgba(255, 0, 255, 0.1));
  border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

.image-demo-prompt {
  background: rgba(30, 30, 46, 0.6);
  border: 1px solid rgba(138, 43, 226, 0.2);
  transition: all 0.3s ease;
}

.image-demo-prompt:focus {
  border-color: rgba(138, 43, 226, 0.5);
  box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
}

.image-demo-generate {
  background: linear-gradient(to right, #8a2be2, #ff00ff);
  transition: all 0.3s ease;
}

.image-demo-generate:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.image-demo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.image-demo-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.image-demo-item:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.image-demo-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.image-demo-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-demo-item:hover .image-demo-item-overlay {
  opacity: 1;
}

/* Profile Demo */
.profile-demo-container {
  background: rgba(30, 30, 46, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 0, 255, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.profile-demo-container:hover {
  border-color: rgba(255, 0, 255, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 0, 255, 0.2);
}

.profile-demo-header {
  background: linear-gradient(to right, rgba(255, 0, 255, 0.1), rgba(0, 242, 255, 0.1));
  border-bottom: 1px solid rgba(255, 0, 255, 0.2);
}

.profile-demo-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(to right, #ff00ff, #00f2ff);
  padding: 3px;
  margin: 0 auto;
}

.profile-demo-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #1e1e2e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-demo-form-group {
  margin-bottom: 16px;
}

.profile-demo-label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #a0aec0;
}

.profile-demo-input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(30, 30, 46, 0.6);
  border: 1px solid rgba(255, 0, 255, 0.2);
  border-radius: 6px;
  color: white;
  transition: all 0.3s ease;
}

.profile-demo-input:focus {
  border-color: rgba(255, 0, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 0, 255, 0.2);
}

.profile-demo-save {
  background: linear-gradient(to right, #ff00ff, #00f2ff);
  transition: all 0.3s ease;
}

.profile-demo-save:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* Features Demo */
.features-demo-container {
  background: rgba(30, 30, 46, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 128, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.features-demo-container:hover {
  border-color: rgba(0, 255, 128, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 128, 0.2);
}

.features-demo-header {
  background: linear-gradient(to right, rgba(0, 255, 128, 0.1), rgba(0, 242, 255, 0.1));
  border-bottom: 1px solid rgba(0, 255, 128, 0.2);
}

.feature-card {
  background: rgba(30, 30, 46, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 128, 0.1);
  padding: 16px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(0, 255, 128, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* Demo Steps */
.demo-steps {
  counter-reset: step;
}

.demo-step {
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
}

.demo-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(to right, #00f2ff, #8a2be2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

/* Typing animation */
.typing-indicator {
  display: flex;
  align-items: center;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  margin: 0 2px;
  background-color: #00f2ff;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.4;
}

.typing-indicator span:nth-child(1) {
  animation: pulse 1s infinite;
}

.typing-indicator span:nth-child(2) {
  animation: pulse 1s infinite 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation: pulse 1s infinite 0.4s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
}
