@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom styles for Stryde */

/* Form input focus styles */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(42, 157, 143, 0.6) !important;
  box-shadow: 0 0 0 1px rgba(42, 157, 143, 0.3);
}

/* Radio button checked state */
input[type="radio"]:checked + div {
  border-color: #2A9D8F !important;
  background: rgba(42, 157, 143, 0.1) !important;
}

input[type="radio"]:checked + div span {
  color: #4CB5A5 !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(245, 245, 245, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(76, 181, 165, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(76, 181, 165, 0.7);
}

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

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Line clamp utilities */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Prose styles for episode descriptions */
.prose p {
  margin-bottom: 1em;
}

.prose a {
  color: #4CB5A5;
  text-decoration: underline;
}

.prose a:hover {
  color: #2A9D8F;
}
