/* ==========================================================================
   VIORA Creative & Production Studio - Style System
   Warm Editorial Minimalism (Google Stitch Approved Design Language)
   ========================================================================== */

/* 1. Custom Typography and Global Styles */
:root {
  --viora-coral: #FF7E5F;
  --viora-primary: #E86F51;
  --viora-dark-coral: #CE573B;
  --viora-terracotta: #A53B22;
  --viora-peach: #FFE7DE;
  --viora-soft-peach: #FFF3EE;
  --viora-blush: #FFDFD3;
  --viora-canvas: #FFF8F5;
  --viora-dark: #1C1917;
  --viora-charcoal: #26201E;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background-color: var(--viora-canvas);
  color: var(--viora-dark);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* 2. Glassmorphism Utilities */
.glass-pill {
  background: rgba(255, 248, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 223, 211, 0.9);
}

.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 223, 211, 0.6);
}

.glass-dark {
  background: rgba(28, 25, 23, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 3. Animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}

@keyframes floatDelayed {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(8px) rotate(-0.5deg); }
}

@keyframes warmAuraGlow {
  0%, 100% { opacity: 0.45; transform: scale(1) translate(-50%, -10%); }
  50% { opacity: 0.7; transform: scale(1.08) translate(-50%, -5%); }
}

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

.animate-float-delayed {
  animation: floatDelayed 7s ease-in-out infinite 1.5s;
}

.animate-warm-glow {
  animation: warmAuraGlow 9s ease-in-out infinite alternate;
}

/* 4. Native Dialog & Modal System */
dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  margin: auto;
}

dialog::backdrop {
  background: rgba(28, 25, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

dialog[open] {
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 5. Mobile Navigation Drawer */
#mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#mobile-menu:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 6. Lightbox Styles */
.lightbox-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92vw;
  max-width: 1100px;
  max-height: 90vh;
}

.lightbox-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #000;
}

.lightbox-image-wrapper img {
  max-height: 75vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* 7. Subtle Transitions and Hover States */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Scrollbar for sleek editorial look */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--viora-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--viora-peach);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--viora-primary);
}
