/* Custom CSS for MB-CarRental PHP Website */

:root {
  --background: 0 0% 100%;
  --foreground: 215 25% 15%;
  --muted: 210 11% 98%;
  --muted-foreground: 215 13% 45%;
  --popover: 0 0% 100%;
  --popover-foreground: 215 25% 15%;
  --card: 0 0% 100%;
  --card-foreground: 215 25% 15%;
  --border: 210 11% 88%;
  --input: 210 11% 88%;
  --primary: 212 85% 45%;
  --primary-foreground: 210 100% 98%;
  --secondary: 210 11% 96%;
  --secondary-foreground: 215 25% 15%;
  --accent: 210 11% 96%;
  --accent-foreground: 215 25% 15%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 60 9% 98%;
  --ring: 212 85% 45%;
  --radius: 0.75rem;
  --premium-blue: 212 85% 45%;
  --premium-blue-dark: 213 90% 35%;
  --premium-gold: 35 85% 65%;
}

.dark {
  --background: 215 25% 8%;
  --foreground: 210 100% 98%;
  --muted: 215 25% 12%;
  --muted-foreground: 215 13% 65%;
  --popover: 215 25% 8%;
  --popover-foreground: 210 100% 98%;
  --card: 215 25% 8%;
  --card-foreground: 210 100% 98%;
  --border: 215 25% 18%;
  --input: 215 25% 18%;
  --primary: 212 85% 55%;
  --primary-foreground: 215 25% 8%;
  --secondary: 215 25% 12%;
  --secondary-foreground: 210 100% 98%;
  --accent: 215 25% 12%;
  --accent-foreground: 210 100% 98%;
  --destructive: 0 62% 50%;
  --destructive-foreground: 210 100% 98%;
  --ring: 212 85% 55%;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-feature-settings: "rlig" 1, "calt" 1;
  overflow-x: hidden;
  touch-action: pan-y;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 80px;
}

/* Component Classes */
.gradient-text {
  background: linear-gradient(to right, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.premium-button {
  background: linear-gradient(to right, #2563eb, #3b82f6);
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.premium-button:hover {
  background: linear-gradient(to right, #1d4ed8, #2563eb);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.vehicle-card {
  transition: all 0.5s ease;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid rgba(226, 232, 240, 0.3);
}

.vehicle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(59, 130, 246, 0.1);
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
}

.premium-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.9) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.floating-animation {
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

.subtle-shimmer {
  position: relative;
  overflow: hidden;
}

.subtle-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.subtle-shimmer:hover::after {
  left: 100%;
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-highlight {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
  transition: all 0.3s ease;
}

.price-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.35);
}

/* Navigation Styles */
#navigation[data-scrolled="true"] {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(71, 85, 105, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Hero Section Styles */
.hero-content {
  animation: fadeInUp 1s ease-out;
}

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

.scroll-indicator {
  animation: bounce 2s infinite;
}

.scroll-dot {
  animation: scrollDot 2s infinite;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateY(0);
  }
  40%, 43% {
    transform: translateY(-10px);
  }
}

@keyframes scrollDot {
  0% {
    height: 12px;
    margin-top: 8px;
  }
  50% {
    height: 6px;
    margin-top: 10px;
  }
  100% {
    height: 12px;
    margin-top: 8px;
  }
}

/* Carousel Styles */
.image-carousel {
  position: relative;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 16rem;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  body {
    position: relative;
    touch-action: pan-y;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }

  html {
    height: -webkit-fill-available;
  }

  p, h1, h2, h3, h4, h5, h6, span, div[class*="text"] {
    -webkit-user-select: text;
    user-select: text;
  }

  .vehicle-card, .carousel-container {
    touch-action: pan-y;
  }

  .mobile-footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 2rem)) !important;
    margin-bottom: env(safe-area-inset-bottom, 0);
  }

  .floating-whatsapp {
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0)) !important;
  }

  #kontakt .max-w-6xl,
  #kontakt .max-w-7xl {
    max-width: calc(100vw - 2rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  #kontakt .grid {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  #kontakt input,
  #kontakt textarea,
  #kontakt .card,
  #kontakt [role="button"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .min-h-screen {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  z-index: 999;
}

/* Form Styles */
.form-field {
  position: relative;
}

.form-error {
  display: none;
}

.form-field.error .form-error {
  display: block;
}

.form-field.error input,
.form-field.error select,
.form-field.error textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Animation Utilities */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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