/* assets/css/global.css */

:root {
  --color-primary: #0d9488;       /* Teal */
  --color-primary-dark: #0f766e;  /* Deep Teal */
  --color-primary-light: #ccfbf1; /* Soft Teal */
  --color-secondary: #0284c7;     /* Blue */
  --color-accent: #f59e0b;        /* Amber */
  --color-danger: #ef4444;        /* Alert Red */
  --color-neutral-dark: #1e293b;  /* Slate 800 */
  --color-neutral-light: #f8fafc; /* Slate 50 */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-neutral-light);
  color: var(--color-neutral-dark);
  scroll-behavior: smooth;
}

/* Custom Webkit Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Glassmorphism effects */
.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Hero Slideshow Transitions */
.slide {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide.active {
  opacity: 1;
  position: relative;
}

/* Category Grid Item Zoom */
.category-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px -10px rgba(13, 148, 136, 0.3);
  border-color: var(--color-primary);
}

/* Emergency Ring animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.pulse-emergency {
  animation: pulse-ring 2s infinite;
}

/* Star Rating Style */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.star-rating input {
  display: none;
}
.star-rating label {
  font-size: 1.75rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: var(--color-accent);
}

/* Floating Actions */
.btn-float {
  transition: all 0.2s ease-in-out;
}
.btn-float:hover {
  transform: scale(1.05);
}

/* Skeleton Loaders */
@keyframes skeleton-loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

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