/* Custom styles for ココロザシラボ */

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

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

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

::-webkit-scrollbar-thumb {
  background: #38bcec;
  border-radius: 3px;
}

/* Active reaction button */
.active-reaction {
  background: #f1fafe !important;
  border-color: #38bcec !important;
  color: #38bcec !important;
  font-weight: 600;
}

/* Border-l-3 utility */
.border-l-3 {
  border-left-width: 3px;
}

/* Focus visible improvement */
*:focus-visible {
  outline: 2px solid #38bcec;
  outline-offset: 2px;
}

/* Prose styles */
.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #374151;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 0.75rem;
  line-height: 1.75;
}

/* Animation for brand gradient */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-animate {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  background: #1f2937;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile bottom safe area */
@media (max-width: 768px) {
  .pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 1rem);
  }
}
