/* =====================================================
   Energy Bar Research - Neutral Study Styles
   Mobile-first, accessible, minimal design
   ===================================================== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* App Container */
.app-container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Card Deck - Horizontal Scroll Snap */
.card-deck {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  height: 100vh;
  scroll-behavior: smooth;
}

/* Hide scrollbar but keep functionality */
.card-deck::-webkit-scrollbar {
  display: none;
}

.card-deck {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Individual Card */
.product-card {
  min-width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.card-content {
  max-width: 500px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.product-image {
  width: 100%;
  max-width: 350px;
  height: 250px;
  margin: 0 auto 1.5rem;
  display: block;
  object-fit: contain;
}

.description {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #000000;
  text-align: center;
  white-space: pre-line;
}

/* Next Button */
.next-button {
  width: 100%;
  max-width: 350px;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  background-color: #90EE90;
  color: #000000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  min-height: 56px; /* Large tap target */
  animation: pulse-green 3s ease-in-out infinite;
}

.next-button:hover {
  background-color: #7CCD7C;
  animation: none;
}

.next-button:active {
  background-color: #66BB66;
  animation: none;
}

.next-button:focus {
  outline: 3px solid #000000;
  outline-offset: 2px;
}

/* Pulse animation for all buttons */
@keyframes pulse-green {
  0% {
    background-color: #90EE90;
  }
  50% {
    background-color: #BFFF00;
  }
  100% {
    background-color: #90EE90;
  }
}

/* Toast Message */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #000000;
  color: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 4px;
  font-size: 1.125rem;
  font-weight: 500;
  text-align: center;
  z-index: 1000;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Tablet & Desktop Improvements */
@media (min-width: 768px) {
  .product-card h2 {
    font-size: 2.5rem;
  }

  .product-image {
    max-width: 400px;
    height: 300px;
  }

  .description {
    font-size: 1.25rem;
  }

  .toast {
    font-size: 1.25rem;
    padding: 2rem 3rem;
  }
}
