/* 6 Seeds AI Consumer Research Demo - Modern Brand Styling */

/* CSS Custom Properties for Brand Colors */
:root {
  --brand-primary: #363166;
  --brand-secondary: #ffab40;
  --brand-tertiary: #eee6dc;
  --brand-gradient: linear-gradient(135deg, var(--brand-secondary) 0%, #ff9800 100%);
}

/* Modern persona card styling */
.persona-card {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.persona-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(54, 49, 102, 0.15);
}

.persona-card:active {
  transform: translateY(-4px) scale(1.01);
}

/* Premium gradient effects */
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth chat message animations */
#chat-messages > div {
  animation: slideInMessage 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Custom branded scrollbar */
#chat-messages::-webkit-scrollbar {
  width: 8px;
}

#chat-messages::-webkit-scrollbar-track {
  background: var(--brand-tertiary);
  border-radius: 8px;
}

#chat-messages::-webkit-scrollbar-thumb {
  background: var(--brand-secondary);
  border-radius: 8px;
  border: 2px solid var(--brand-tertiary);
}

#chat-messages::-webkit-scrollbar-thumb:hover {
  background: #e89a36;
}

/* Elegant loading animation */
.loading-pulse {
  display: inline-block;
  position: relative;
}

.loading-pulse:after {
  content: '💭';
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Enhanced typing indicator */
.typing-dots {
  display: inline-flex;
  align-items: center;
  space: 4px;
}

.typing-dots span {
  height: 8px;
  width: 8px;
  background-color: var(--brand-secondary);
  border-radius: 50%;
  display: inline-block;
  animation: typing 1.4s ease-in-out infinite both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* Premium analytics counters */
.counter {
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.counter::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 171, 64, 0.1), transparent);
  transition: left 0.6s ease;
}

.counter:hover::before {
  left: 100%;
}

/* Glassmorphism effects */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(54, 49, 102, 0.1);
}

/* Button hover effects */
button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

button:hover::before {
  left: 100%;
}

/* Enhanced input styling */
input[type="text"]:focus {
  outline: none;
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 4px rgba(255, 171, 64, 0.1);
  transform: translateY(-2px);
}

/* Mobile responsive enhancements */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  #chat-messages {
    height: 350px;
  }
  
  .persona-card {
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: 2.5rem !important;
  }
}

/* Accessibility improvements */
button:focus,
input:focus {
  outline: 3px solid var(--brand-secondary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .persona-card,
  #chat-messages > div,
  .counter {
    animation: none;
    transition: none;
  }
}

/* Print optimization */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-break {
    page-break-after: always;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .persona-card {
    border: 2px solid var(--brand-primary) !important;
    background: white !important;
    break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .persona-card {
    border: 3px solid var(--brand-primary);
  }
  
  button {
    border: 2px solid var(--brand-primary);
  }
}