/* Custom styles for Anzhelika's therapy website */

:root {
  --primary-blue: #3B82F6;
  --primary-dark: #1E3A8A;
  --text-gray: #374151;
  --bg-light: #F9FAFB;
}

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

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out;
}

/* Particle canvas styling */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

/* Form styling */
.form-input {
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button animations */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile menu animation */
.mobile-menu-enter {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Typography */
.prose h1 {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.prose h2 {
  color: var(--text-gray);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Admin panel specific styles */
.admin-sidebar {
  background: linear-gradient(180deg, #1e3a8a 0%, #3730a3 100%);
}

.admin-nav-item {
  transition: all 0.2s ease;
}

.admin-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 1.5rem;
}

.admin-nav-item.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-left: 4px solid white;
}

/* Rich text editor styles */
.editor-toolbar {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem;
  background-color: #f9fafb;
}

.editor-content {
  min-height: 300px;
  padding: 1rem;
}

.editor-content:focus {
  outline: none;
  border-color: var(--primary-blue);
}

/* Event cards */
.event-card {
  border-left: 4px solid var(--primary-blue);
  transition: all 0.3s ease;
}

.event-card:hover {
  border-left-width: 8px;
  transform: translateX(5px);
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-question {
  cursor: pointer;
  padding: 1rem 0;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.open {
  max-height: 1000px;
}

/* Testimonial cards */
.testimonial {
  position: relative;
  padding-left: 3rem;
}

.testimonial::before {
  content: """;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 4rem;
  color: var(--primary-blue);
  opacity: 0.2;
}

/* Service price badge */
.price-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
}

/* Contact form success message */
.success-message {
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive utilities */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}
