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

:root {
  --green: #006B3F;
  --green-light: #008B4F;
  --gold: #FED100;
  --gold-dim: #C9A600;
  --black: #0A0A0A;
  --black-light: #141414;
  --grey-dark: #1E1E1E;
  --grey: #2A2A2A;
  --grey-light: #3A3A3A;
  --red: #CE1126;
  --white: #F5F5F5;
  --white-dim: #B0B0B0;
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--black);
  color: var(--white);
}

.app {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Rasta stripe */
.rasta-stripe {
  height: 6px;
  background: linear-gradient(to right,
    var(--red) 0%, var(--red) 33.33%,
    var(--gold) 33.33%, var(--gold) 66.66%,
    var(--green) 66.66%, var(--green) 100%
  );
}

/* Header */
.header {
  padding: 1rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--grey);
  background: linear-gradient(180deg, var(--black-light) 0%, var(--black) 100%);
}

.logo {
  font-family: 'Righteous', cursive;
  font-size: 2rem;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--green);
  letter-spacing: 1px;
}

.tagline {
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-top: 0.25rem;
}

/* Chat Container */
.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Messages */
.message {
  display: flex;
  max-width: 85%;
  animation: fadeIn 0.3s ease;
}

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

.message.user {
  align-self: flex-end;
}

.message.assistant {
  align-self: flex-start;
}

.message-content {
  padding: 0.875rem 1rem;
  border-radius: 1.25rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.message.user .message-content {
  background: var(--grey);
  border-bottom-right-radius: 0.25rem;
}

.message.assistant .message-content {
  background: linear-gradient(135deg, var(--green) 0%, #005530 100%);
  border-bottom-left-radius: 0.25rem;
}

.message-content p {
  margin-bottom: 0.5rem;
}

.message-content p:last-child {
  margin-bottom: 0;
}

/* Typing indicator */
.typing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-style: italic;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

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

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

/* Conversation Starters */
.starters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-left: 0.5rem;
}

.starter-btn {
  background: var(--grey);
  border: 1px solid var(--grey-light);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.starter-btn:hover {
  background: var(--grey-light);
  border-color: var(--gold-dim);
}

/* Input Area */
.input-area {
  padding: 1rem;
  border-top: 1px solid var(--grey);
  background: var(--black-light);
}

.input-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.message-input {
  flex: 1;
  background: var(--grey);
  border: 1px solid var(--grey-light);
  border-radius: 1.5rem;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s ease;
}

.message-input::placeholder {
  color: var(--white-dim);
}

.message-input:focus {
  border-color: var(--green);
}

.send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.send-btn:hover {
  background: var(--green-light);
  transform: scale(1.05);
}

.send-btn:disabled {
  background: var(--grey);
  cursor: not-allowed;
  transform: none;
}

/* Scrollbar */
.chat-container::-webkit-scrollbar {
  width: 6px;
}

.chat-container::-webkit-scrollbar-track {
  background: var(--black);
}

.chat-container::-webkit-scrollbar-thumb {
  background: var(--grey-light);
  border-radius: 3px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .logo {
    font-size: 1.5rem;
  }

  .message {
    max-width: 90%;
  }

  .starters {
    flex-direction: column;
  }

  .starter-btn {
    text-align: left;
  }
}
