/**
 * Smartspace WordPress Theme - Main Stylesheet (Minimal)
 *
 * This file contains ONLY custom styles that Tailwind CDN doesn't provide.
 * All Tailwind utility classes (text-*, font-*, spacing, colors, etc.) are
 * provided by the Tailwind CDN and should NOT be duplicated here.
 *
 * Design System:
 * - Typography: Inter font (400, 500, 600, 700)
 * - Primary: #0882a8 (teal)
 * - Secondary: #18c5e0 (lighter teal)
 * - Foreground: #0a0f1a (dark)
 * - Background: #ffffff (white)
 */

/* ========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ======================================== */

:root {
  --color-primary: #0882a8;
  --color-primary-light: #18c5e0;
  --color-accent: #0882a8;
  --color-accent-light: #18c5e0;
  --color-foreground: #0a0f1a;
  --color-background: #ffffff;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-muted-foreground: rgba(255, 255, 255, 0.5);
  --transition-base: 0.2s ease;
  --transition-in: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-out: 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   SMOOTH SCROLL BEHAVIOR
   ======================================== */

html {
  scroll-behavior: smooth;
}

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ========================================
   SCROLL-TRIGGERED FADE ANIMATIONS
   ======================================== */

.observe-fade {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

/* ========================================
   ANIMATION UTILITY CLASSES
   ======================================== */

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

.animate-ping {
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

/* ========================================
   GLASS MORPHISM EFFECTS
   ======================================== */

.glass-card {
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

.glass-card-white {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ========================================
   NOTIFICATION CARD STYLES
   ======================================== */

.notification-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  width: 18rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  color: #ffffff;
}

.notification-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.notification-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--color-accent-light);
}

.notification-dot::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-accent-light);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.notification-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.notification-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   DROPDOWN/NAVIGATION STYLES
   ======================================== */

.nav-link-with-dropdown {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 0.375rem;
  min-width: 12rem;
  z-index: 100;
  margin-top: 0.5rem;
}

.nav-link-with-dropdown:hover .nav-dropdown {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: background-color var(--transition-base);
}

.nav-dropdown-item:hover {
  background-color: #f5f5f5;
}

/* ========================================
   SITE HEADER DROPDOWN
   ======================================== */

.site-header__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  min-width: 14rem;
  z-index: 100;
  margin-top: 0.5rem;
}

.site-header__nav-item:hover .site-header__dropdown {
  display: block;
}

.site-header__dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-header__dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background-color var(--transition-base);
}

.site-header__dropdown-item:hover {
  background-color: #f5f5f5;
}

.site-header__dropdown-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

.site-header__dropdown-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
}

.site-header__dropdown-desc {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
