/* Survey Landing Page Styles */

/* Fade in animation */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

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

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

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

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

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

/* Selected state styles */
.selected {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
}

/* Button states */
.btn-enabled {
  background-color: #2563eb !important;
  color: white !important;
  cursor: pointer !important;
}

.btn-enabled:hover {
  background-color: #1d4ed8 !important;
  transform: scale(1.05) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.btn-back-enabled {
  color: #4b5563 !important;
  cursor: pointer !important;
}

.btn-back-enabled:hover {
  color: #111827 !important;
  background-color: #f3f4f6 !important;
}

/* Loading animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

/* Arrow hint overlay */
.overlay-hint-progress-pointer {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  animation: fadeIn 0.5s ease;
  cursor: pointer;
  display: none;
  pointer-events: none;
}

.overlay-hint-progress-pointer .pointer-arrow-image {
  right: 210px;
  top: 80px;
  transform: rotate(5deg);
  position: absolute;
  height: 400px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
  pointer-events: auto;
  cursor: pointer;
}

.overlay-hint-progress-pointer .pointer-arrow-image svg {
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.8));
}

.overlay-hint-progress-pointer .pointer-arrow-image.animated {
  animation: arrowImageAnimate 1s alternate infinite ease-in-out;
}

.overlay-hint-progress-pointer .pointer-arrow-image.animated svg {
  animation: upDownAnimate 1s alternate infinite ease-in-out;
}

@keyframes arrowImageAnimate {
  from {
    transform: rotate(5deg);
  }
  to {
    transform: rotate(15deg);
  }
}

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

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

.pointer-arrow-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(-50%);
  }
  40% {
    transform: translateY(-60%);
  }
  60% {
    transform: translateY(-55%);
  }
}

/* Hidden class utility */
.hidden {
  display: none !important;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.footer a {
  color: #6b7280;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer a:hover {
  color: #374151;
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  #app {
    padding: 1rem;
  }
  
  #survey-container,
  #thank-you-container,
  #progress-state,
  #complete-state {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 500px;
  }
  
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  #survey-container,
  #thank-you-container,
  #progress-state,
  #complete-state {
    padding: 1rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .space-y-3 > * + * {
    margin-top: 0.5rem;
  }
}
