/* Arlo's Pet Care - Custom Styles
 * Theme overrides and custom styling
 * 
 * To customize your theme colors:
 * 1. Use DaisyUI themes first (change data-theme in HTML)
 * 2. Only add custom overrides here if needed
 */

/* Custom theme colors (uncomment and modify as needed) */
/*
@layer components {
  .btn-primary {
    @apply bg-[#10b981] hover:bg-[#059669] border-[#10b981] text-white;
  }
  
  .btn-secondary {
    @apply bg-[#3b82f6] hover:bg-[#2563eb] border-[#3b82f6] text-white;
  }
  
  .btn-accent {
    @apply bg-[#f59e0b] hover:bg-[#d97706] border-[#f59e0b] text-white;
  }
  
  .hero {
    @apply bg-gradient-to-r from-[#10b981] to-[#3b82f6];
  }
}
*/

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Ensure images are responsive and don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Custom animation for cards on hover */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}

/* Make navbar slightly transparent on scroll (optional) */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure footer links are properly styled */
footer a:hover {
  opacity: 0.8;
}

/* Custom styling for form elements focus */
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  ring: 2px;
}

/* Ensure collapse (FAQ) transitions smoothly */
.collapse {
  transition: all 0.3s ease;
}

/* Custom print styles (if needed) */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none;
  }
}

/* Accessibility improvements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Skip to main content link (for accessibility) */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

/* Ensure proper spacing for mobile */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero {
    min-height: 60vh;
  }
}

/* Custom loading spinner (if needed) */
.loading-custom {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #10b981;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

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

/* Badge adjustments for better readability */
.badge {
  font-weight: 600;
}

/* Ensure social icons are properly sized and colored */
.btn-circle i {
  font-size: 1.25rem;
}

/* Custom gradient backgrounds (can be customized per theme) */
.bg-gradient-custom {
  background: linear-gradient(135deg, var(--p) 0%, var(--s) 100%);
}

/* Table styling improvements */
.table th {
  font-weight: 700;
}

/* Alert styling improvements */
.alert {
  border-radius: 0.5rem;
}

/* Card shadow variations */
.shadow-custom {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Testimonial card specific styling */
.testimonial-card {
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 5rem;
  opacity: 0.1;
  font-family: Georgia, serif;
}

/* Service card icon styling */
.service-icon {
  transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover .service-icon {
  transform: scale(1.1);
}

/* Pricing table enhancements */
.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border: 3px solid currentColor;
  transform: scale(1.05);
}

/* FAQ specific styling */
.collapse-title {
  cursor: pointer;
}

.collapse-title:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Footer improvements */
.footer {
  margin-top: auto;
}

/* Ensure proper contrast for text on colored backgrounds */
.text-on-primary {
  color: var(--pc, #fff);
}

.text-on-secondary {
  color: var(--sc, #fff);
}

.text-on-accent {
  color: var(--ac, #fff);
}

/* Custom utility classes */
.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Ensure images in figures are properly styled */
figure img {
  object-fit: cover;
}

/* Stats card improvements */
.stats .stat-value {
  font-weight: 800;
}

/* Make external links visually distinct (optional) */
/*
a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.8em;
}
*/

/* Theme-specific overrides can be added here based on data-theme attribute */
/*
[data-theme="cupcake"] .hero {
  background: linear-gradient(135deg, #fecaca 0%, #fed7aa 100%);
}

[data-theme="dark"] {
  // Dark theme specific overrides
}
*/
