/* HeyShabdly Custom Styles */

:root {
  --heyshabdly-orange: #F9A03F;
  --heyshabdly-plum: #4A225D;
  --heyshabdly-cream: #FFF8E7;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FFF8E7;
}

::-webkit-scrollbar-thumb {
  background: #F9A03F;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e89030;
}

/* Button styles */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, #F9A03F 0%, #e89030 100%);
  color: white;
  box-shadow: 0 4px 6px rgba(249, 160, 63, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(249, 160, 63, 0.4);
}

.btn-secondary {
  background: white;
  color: #4A225D;
  border: 2px solid #4A225D;
}

.btn-secondary:hover {
  background: #4A225D;
  color: white;
}

/* Card styles */
.card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-orange {
  background: rgba(249, 160, 63, 0.2);
  color: #e89030;
}

.badge-plum {
  background: rgba(74, 34, 93, 0.2);
  color: #4A225D;
}

/* Avatar styles */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}

.avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

/* Input styles */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input:focus {
  outline: none;
  border-color: #F9A03F;
  box-shadow: 0 0 0 3px rgba(249, 160, 63, 0.1);
}

.textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.textarea:focus {
  outline: none;
  border-color: #F9A03F;
  box-shadow: 0 0 0 3px rgba(249, 160, 63, 0.1);
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Animation utilities */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

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

.slide-up {
  animation: slideUp 0.4s ease-out;
}

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

/* Level indicator */
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
}

.level-sprout {
  background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
  color: #065f46;
}

.level-sapling {
  background: linear-gradient(135deg, #86efac 0%, #4ade80 100%);
  color: #065f46;
}

.level-oak {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
}

.level-forest-keeper {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  color: #581c87;
}

/* Streak counter */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  color: white;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
}

/* Category filters */
.category-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 2px solid #e5e7eb;
  background: white;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-pill:hover {
  border-color: #F9A03F;
  background: #FFF8E7;
}

.category-pill.active {
  background: #F9A03F;
  color: white;
  border-color: #F9A03F;
}

/* Message bubble */
.message-bubble {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  word-wrap: break-word;
}

.message-sent {
  background: linear-gradient(135deg, #F9A03F 0%, #e89030 100%);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.message-received {
  background: white;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .card {
    padding: 1rem;
  }
  
  .modal {
    padding: 1.5rem;
  }
  
  .message-bubble {
    max-width: 85%;
  }
}

/* Loading spinner */
.spinner {
  border: 3px solid #FFF8E7;
  border-top: 3px solid #F9A03F;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1100;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.info {
  border-left: 4px solid #3b82f6;
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F9A03F 0%, #e89030 100%);
  border-radius: 9999px;
  transition: width 0.5s ease;
}
