/* Kiosk System Styles */

/* Portrait orientation optimization for 1080x1920 */
@media (orientation: portrait) {
  body {
    font-size: 18px;
  }
  
  #service-menu .service-button {
    min-height: 200px;
  }
}

/* Landscape fallback */
@media (orientation: landscape) {
  body {
    font-size: 16px;
  }
  
  #service-menu {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  
  #service-menu .service-button {
    min-height: 150px;
  }
}

/* Kiosk-specific styles */
.kiosk-container {
  height: 100vh;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Video styles */
#ad-video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Service button animations */
.service-button {
  transition: all 0.3s ease;
  transform: scale(1);
}

.service-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.service-button:active {
  transform: scale(0.95);
}

/* Pulse animation for proximity status */
.proximity-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Loading animation */
.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Fade transitions */
.fade-enter {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.fade-enter-active {
  opacity: 1;
}

.fade-exit {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.fade-exit-active {
  opacity: 0;
}

/* Touch-friendly buttons */
.touch-button {
  min-height: 60px;
  min-width: 120px;
  font-size: 18px;
  padding: 15px 20px;
}

/* Hide scrollbars */
::-webkit-scrollbar {
  display: none;
}

body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Prevent text selection */
* {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow selection only for input fields */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Proximity sensor indicator */
.sensor-active {
  background: linear-gradient(45deg, #10b981, #059669);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.sensor-inactive {
  background: linear-gradient(45deg, #ef4444, #dc2626);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Video placeholder styles */
.video-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .service-button,
  .fade-enter,
  .fade-exit {
    transition: none;
  }
  
  .proximity-pulse {
    animation: none;
  }
}