/*
 * 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 url("/assets/glide-60ebf883.css");
@import url("/assets/glide-theme-2b039fac.css");

:root {
  --turbo-frame-debug-color: #3B82F6;
  --turbo-frame-debug-z-index: 9999;
  --turbo-frame-debug-font-size: 0.75rem;
  --turbo-frame-debug-border-radius: 0.25rem;
}

/* Turbo Progress Bar - Verde */
.turbo-progress-bar {
  background-color: var(--primary-color) !important;
}

/* Safe Area Classes para iOS */
.safe-top {
  top: env(safe-area-inset-top);
}

.safe-top-fallback {
  top: env(safe-area-inset-top, 1rem);
}

.safe-bottom {
  bottom: env(safe-area-inset-bottom);
}

.safe-left {
  left: env(safe-area-inset-left);
}

.safe-right {
  right: env(safe-area-inset-right);
}

.pt-safe {
  padding-top: env(safe-area-inset-top);
}

.pb-safe {
  padding-bottom: env(safe-area-inset-bottom);
}

.pl-safe {
  padding-left: env(safe-area-inset-left);
}

.pr-safe {
  padding-right: env(safe-area-inset-right);
}

/* Efeito simples de Crossfade */
/* 1. Define as animações */
@keyframes slide-out {
  from { transform: translateX(0%); }
  to { transform: translateX(-100%); }
}

@keyframes slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0%); }
}

/* 2. Aplica as animações aos elementos da View Transition */
::view-transition-old(root) {
  animation: 0.5s ease-in-out both slide-out;
}

::view-transition-new(root) {
  animation: 0.5s ease-in-out both slide-in;
}

/* 3. Garante que as imagens não fiquem distorcidas durante a transição */
::view-transition-old(root),
::view-transition-new(root) {
  mix-blend-mode: normal;
  height: 100%;
}

/* Fix autofill background color for dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* For Firefox */
input:autofill {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

.debug-turbo {
  turbo-frame {
    border: 1px var(--turbo-frame-debug-color) solid;
    display: block;
    border-radius: var(--turbo-frame-debug-border-radius);

    &::before {
      content: "Frame: #" attr(id);
      display: inline-block;
      position: relative;
      top: -1rem;
      right: -0.5rem;
      color: var(--turbo-frame-debug-color);
      font-size: var(--turbo-frame-debug-font-size);
      z-index: var(--turbo-frame-debug-z-index);
      background-color: #fff;
      padding: 0.25rem;
      border: 1px var(--turbo-frame-debug-color) solid;
      border-radius: var(--turbo-frame-debug-border-radius);
    }
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animation-delay-200 {
  animation-delay: 0.2s;
}

.text-glow {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.neon-border-lime {
  box-shadow: 0 0 15px rgba(132, 204, 22, 0.3), inset 0 0 10px rgba(132, 204, 22, 0.1);
  border-color: rgba(132, 204, 22, 0.5);
}

.neon-text-lime {
  color: #a3e635;
  text-shadow: 0 0 10px rgba(163, 230, 53, 0.5);
}

.bg-mesh {
  background-color: #13131a;
  background-image:
    radial-gradient(at 0% 0%, rgba(132, 204, 22, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Stacked Cards */
.stack-container {
  position: relative;
  height: 200px;
  /* Adjust based on card height */
  perspective: 1000px;
}

.stack-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: top center;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.stack-card:nth-child(1) {
  z-index: 3;
  transform: translateY(0) scale(1);
}

.stack-card:nth-child(2) {
  z-index: 2;
  transform: translateY(15px) scale(0.96);
  opacity: 0.8;
}

.stack-card:nth-child(3) {
  z-index: 1;
  transform: translateY(30px) scale(0.92);
  opacity: 0.6;
}

.stack-container:hover .stack-card:nth-child(1) {
  transform: translateY(0);
}

.stack-container:hover .stack-card:nth-child(2) {
  transform: translateY(110px) scale(1);
  opacity: 1;
}

.stack-container:hover .stack-card:nth-child(3) {
  transform: translateY(220px) scale(1);
  opacity: 1;
}

/* Spark-Inspired Utilities */
.glass-strip {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.glass-strip:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.text-shadow-lg {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.text-shadow-sm {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Tennis Theming */
.tennis-accent {
  border-left: 3px solid #ccff00;
}

.tennis-btn {
  background: linear-gradient(135deg, #ccff00 0%, #99cc00 100%);
  color: #1a1a1a;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(204, 255, 0, 0.4);
  transition: all 0.2s ease;
}

.tennis-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(204, 255, 0, 0.6);
}

.glass-strip-sport {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.glass-strip-sport:hover {
  background: rgba(30, 30, 30, 0.8);
  border-color: rgba(204, 255, 0, 0.5);
  transform: translateX(5px);
}

/* Time of Day Filters for Background */
.bg-phase-morning {
  filter: brightness(1.1) contrast(0.9) hue-rotate(-10deg) saturate(0.8) sepia(0.2);
}

.bg-phase-day {
  filter: brightness(1.3) contrast(1.1) saturate(1.2);
}

.bg-phase-sunset {
  filter: brightness(0.9) contrast(1.2) sepia(0.5) hue-rotate(-30deg) saturate(1.5);
}

.bg-phase-night {
  filter: none;
  /* Original image is already night/dark */
}

/* Hide scrollbar but keep scroll functionality */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.no-scrollbar::-webkit-scrollbar {
  display: none;  /* Chrome, Safari and Opera */
}

/* ============================================
   Landing Page Animations
   ============================================ */

/* Slide up animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  opacity: 0;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll indicator animation */
@keyframes scrollDown {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

.animate-scroll-down {
  animation: scrollDown 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Floating animation for elements */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

/* Pulse glow animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(204, 255, 0, 0.6);
  }
}

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

/* Scale in animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  opacity: 0;
  animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Rotate animation for tennis ball */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-slow {
  animation: spin 8s linear infinite;
}

/* Text reveal animation */
@keyframes textReveal {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

.animate-text-reveal {
  animation: textReveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Gradient text animation */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient-text {
  background: linear-gradient(90deg, #ccff00, #88ff00, #ccff00);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
}

/* Stagger children animation delay utility */
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Smooth scroll for the whole page */
html {
  scroll-behavior: smooth;
}

/* Landing page specific styles */
.landing-hero-gradient {
  background: radial-gradient(ellipse at center top, rgba(204, 255, 0, 0.15) 0%, transparent 60%);
}

.landing-section-fade {
  background: linear-gradient(to bottom, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
}

/* Tennis ball texture */
.tennis-ball-texture {
  background:
    linear-gradient(45deg, transparent 45%, rgba(255,255,255,0.1) 50%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, rgba(255,255,255,0.1) 50%, transparent 55%),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 30%);
}

/* Glow effects */
.glow-lime {
  box-shadow: 0 0 30px rgba(204, 255, 0, 0.4);
}

.glow-lime-sm {
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.3);
}

.text-glow-lime {
  text-shadow: 0 0 20px rgba(204, 255, 0, 0.5);
}

/* Card hover lift effect */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Noise texture overlay */
.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}


