/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import "tailwind.css";
@import "animate.css/animate.min.css";

/* Custom Vegas-themed animations using Animate.css pattern */
@keyframes neon-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes neon-glow {
  0%, 100% { opacity: 0.5; transform: scale(1.02); }
  50% { opacity: 0.3; transform: scale(1); }
}

@keyframes dice-roll {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(90deg); }
  50% { transform: translateY(0) rotate(180deg); }
  75% { transform: translateY(-5px) rotate(270deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

@keyframes card-flip {
  0% { transform: rotateY(0deg) translateY(0); }
  50% { transform: rotateY(180deg) translateY(-10px); }
  100% { transform: rotateY(360deg) translateY(0); }
}

@keyframes fade-in-out {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes slide-up {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Custom animation utility classes */
.animate-neon-pulse {
  animation: neon-pulse 2s ease-in-out infinite;
}

.animate-neon-glow {
  animation: neon-glow 2s ease-in-out infinite;
}

.animate-dice-roll-1 {
  animation: dice-roll 3s linear infinite;
}

.animate-dice-roll-2 {
  animation: dice-roll 3s linear infinite 0.5s;
}

.animate-dice-roll-3 {
  animation: dice-roll 3s linear infinite 1s;
}

.animate-card-flip-1 {
  animation: card-flip 3s ease-in-out infinite;
}

.animate-card-flip-2 {
  animation: card-flip 3s ease-in-out infinite 0.5s;
}

.animate-card-flip-3 {
  animation: card-flip 3s ease-in-out infinite 1s;
}

.animate-fade-in-out {
  animation: fade-in-out 3s ease-in-out infinite;
}

.animate-slide-up {
  animation: slide-up 0.5s ease-out forwards;
}

/* Custom utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile-first design improvements */
@media (max-width: 1023px) {
  /* Smooth scrolling for mobile navigation */
  html {
    scroll-behavior: smooth;
  }

  /* Better touch targets */
  .touch-target {
    min-height: 44px;
    min-width: 44px;
  }

  /* Improved readability on mobile */
  .mobile-optimized {
    line-height: 1.6;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Mobile menu animations */
.mobile-menu {
  transition: all 0.3s ease-in-out;
  transform-origin: top;
}

.mobile-menu.hidden {
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
}

.mobile-menu:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.animate-slide-down {
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hamburger button animation */
.hamburger-btn {
  transition: all 0.2s ease-in-out;
}

.hamburger-btn:hover {
  transform: scale(1.05);
}

.hamburger-btn:active {
  transform: scale(0.95);
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Focus states for better accessibility */
.focus-ring:focus {
  outline: 2px solid #8B5CF6;
  outline-offset: 2px;
}

/* Better link hover states on mobile */
@media (hover: hover) {
  .hover-lift:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* Prevent horizontal scroll on mobile */
body {
  overflow-x: hidden;
}

/* Better form inputs on mobile */
input, textarea, select {
  font-size: 16px; /* Prevents zoom on iOS */
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* Card hover effects for desktop */
@media (min-width: 1024px) {
  .card-hover {
    transition: all 0.2s ease-in-out;
  }

  .card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
}

/* Flash message animations */
.flash-message {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flash-message.translate-x-full {
  transform: translateX(100%);
}

.flash-message.translate-x-0 {
  transform: translateX(0);
}

.flash-message.opacity-0 {
  opacity: 0;
}

.flash-message.opacity-100 {
  opacity: 1;
}

/* Flash message hover effects */
.flash-message:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Flash message responsive positioning */
@media (max-width: 1023px) {
  #flash-messages {
    left: 1rem !important;
    right: 1rem !important;
    top: 5rem !important; /* Adjusted for mobile nav height */
    max-width: none !important;
  }
}

@media (min-width: 1024px) {
  #flash-messages {
    right: 1.5rem !important;
    left: auto !important;
    max-width: 24rem !important;
    top: 6rem !important; /* Adjusted for enhanced desktop nav */
  }
}

@media (min-width: 1280px) {
  #flash-messages {
    max-width: 28rem !important;
  }
}

/* Enhanced desktop navigation styles */
@media (min-width: 1024px) {
  /* Desktop navigation hover effects */
  .desktop-nav-item {
    position: relative;
    overflow: hidden;
  }

  .desktop-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
  }

  .desktop-nav-item:hover::before {
    left: 100%;
  }
}

/* Improved mobile menu animations */
@media (max-width: 1023px) {
  .mobile-menu-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Mobile navigation backdrop */
  .mobile-menu:not(.hidden)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
  }
}

/* Simple TikTok video container */
.tiktok-video-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* TikTok embed container */
.tiktok-embed-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .tiktok-video-container {
    max-width: 350px;
  }
}

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

  .print-break {
    page-break-before: always;
  }

  .tiktok-embed-container {
    display: none !important;
  }
}
