/* ===================================================================
   UNISKY WELLNESS - CORE DESIGN SYSTEM & CUSTOM STYLING
   Brand Colors:
   - Deep Teal / Navy: #0b4f6c
   - Forest Herbal Green: #2d6a4f
   - Herbal Sage & Mint: #52b788 / #d8f3dc
   - Royal Ayurvedic Gold: #d4af37 / #f3c642
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --color-brand-navy: #0b4f6c;
  --color-brand-navy-dark: #073549;
  --color-brand-green: #2d6a4f;
  --color-brand-green-dark: #1b4332;
  --color-brand-mint: #52b788;
  --color-brand-mint-light: #d8f3dc;
  --color-brand-gold: #d4af37;
  --color-brand-gold-light: #fef3c7;
  --color-bg-light: #f8fafc;
  --color-text-main: #1e293b;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Base Typography & Font Scale Expansion */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: #f8fafc;
  overflow-x: hidden;
}

h1, h2, h3, .font-heading {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

.font-serif-luxury {
  font-family: 'Playfair Display', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism Styles */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.glass-dark {
  background: rgba(7, 53, 73, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-admin-sidebar {
  background: linear-gradient(180deg, #073549 0%, #0b4f6c 100%);
}

/* Hero Multi-Slide Carousel */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s ease, visibility 0.7s ease;
  z-index: 1;
}

.hero-slide.active,
.hero-slide[data-active="true"],
.hero-slide.opacity-100 {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 10 !important;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 7s ease-out;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 53, 73, 0.94) 0%, rgba(11, 79, 108, 0.86) 45%, rgba(45, 106, 79, 0.88) 100%);
}

.wellness-glow {
  box-shadow: 0 12px 40px -5px rgba(45, 106, 79, 0.28), 0 8px 12px -6px rgba(11, 79, 108, 0.18);
}

.gold-glow {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

/* Floating Badges Animation */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

.animate-float {
  animation: floatSlow 5s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatSlow 6s ease-in-out 2s infinite;
}

/* Card Hover Transitions */
.product-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 35px -10px rgba(11, 79, 108, 0.2), 0 12px 18px -5px rgba(45, 106, 79, 0.15);
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Shimmer Highlight Effect */
.shimmer-badge {
  background: linear-gradient(90deg, #d4af37 0%, #fff2b2 50%, #d4af37 100%);
  background-size: 200% auto;
  color: #073549;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

/* Admin Dashboard Specific */
.admin-tab-btn.active {
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-left: 4px solid #52b788;
}

/* ===================================================================
   HIGH-CONTRAST FORM CONTROLS & PLACEHOLDER STYLING (DARK & READABLE)
   =================================================================== */
::placeholder {
  color: #475569 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

::-webkit-input-placeholder {
  color: #475569 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

::-moz-placeholder {
  color: #475569 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

:-ms-input-placeholder {
  color: #475569 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

input::placeholder,
textarea::placeholder,
select::placeholder,
.form-input::placeholder,
.form-textarea::placeholder,
.form-select::placeholder {
  color: #475569 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}

/* Dark mode inputs placeholder contrast */
.bg-slate-900 input::placeholder,
.bg-slate-950 input::placeholder,
.bg-slate-900 textarea::placeholder,
.bg-slate-950 textarea::placeholder,
.glass-dark input::placeholder,
.glass-dark textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

.form-input, .form-textarea, .form-select {
  color: #0f172a !important;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: #2d6a4f;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.18);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 440px;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  animation: slideInRight 0.35s ease-out forwards;
  backdrop-filter: blur(10px);
}

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

.toast.toast-success {
  background: #0f3e2b;
  color: #d8f3dc;
  border-left: 5px solid #52b788;
}

.toast.toast-error {
  background: #450a0a;
  color: #fecaca;
  border-left: 5px solid #ef4444;
}

.toast.toast-info {
  background: #073549;
  color: #bae6fd;
  border-left: 5px solid #38bdf8;
}

/* Modal Transitions */
.modal-backdrop {
  background-color: rgba(11, 23, 38, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Print Styling */
@media print {
  .no-print {
    display: none !important;
  }
}
