/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: white;
  color: #1f2937; /* gray-800 */
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

::selection {
  background-color: #bfdbfe; /* blue-200 */
}

/* Container */
.app-container {
  width: 100%;
  max-width: 480px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
  background-color: white;
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 48px;
}

/* Footer */
.app-footer {
  margin-top: auto;
  padding-top: 32px;
  padding-bottom: 16px;
  text-align: center;
  font-size: 11px;
  color: #9ca3af; /* gray-400 */
  border-top: 1px solid #f3f4f6; /* gray-100 */
}

/* Progress Bar */
.progress-container {
  width: 100%;
  background-color: #fdf8e7;
  height: 10px;
  border-radius: 9999px;
  margin-bottom: 32px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-bar {
  background-color: #d4af37;
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease-out;
  width: 0%;
}

/* Typography & Colors */
.text-primary {
  color: #d4af37;
}

.bg-primary {
  background-color: #d4af37;
}

.bg-primary:hover {
  background-color: #b8860b;
}

.bg-primary-light {
  background-color: #fdf8e7;
}

.text-gray-500 {
  color: #6b7280;
}

.font-bold {
  font-weight: 700;
}

.text-center {
  text-align: center;
}

/* Components */
.pre-title {
  background-color: transparent;
  color: #b8860b;
  font-weight: 900;
  padding: 0;
  margin-bottom: 24px;
  font-size: 28px;
  line-height: 1.2;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0px 2px 4px rgba(184, 134, 11, 0.15);
}

.main-title {
  font-size: 22px;
  font-weight: 700;
  color: #b8860b;
  margin-bottom: 24px;
  line-height: 1.375;
}

.main-image {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.btn-primary {
  width: 100%;
  background-color: #d4af37;
  color: white;
  font-weight: 700;
  padding: 16px;
  border-radius: 16px;
  font-size: 18px;
  box-shadow: 0 4px 14px 0 rgba(212, 175, 55, 0.39);
  margin-bottom: 32px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-green {
  background-color: #22c55e;
  box-shadow: 0 4px 14px 0 rgba(34, 197, 94, 0.39);
}

.footer-text {
  color: #6b7280;
  font-size: 14px;
  padding: 0 16px;
  line-height: 1.625;
}

/* Options (Image & Emoji) */
.option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  background-color: #fdf8e7;
  border: 2px solid #e5c158;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
  text-align: left;
  cursor: pointer;
  margin-bottom: 16px;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.option-btn:hover {
  border-color: #d4af37;
}

.option-btn:active {
  transform: scale(0.98);
}

.option-btn-image {
  width: 88px;
  height: 88px;
  object-fit: cover;
}

.option-btn-text {
  flex: 1;
  padding: 0 16px;
  font-weight: 700;
  color: #b8860b;
  font-size: 15px;
  line-height: 1.25;
}

.option-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #e5c158;
  margin-right: 16px;
  flex-shrink: 0;
}

.option-btn:hover .option-circle {
  border-color: #d4af37;
}

.option-emoji {
  font-size: 30px;
  margin-right: 16px;
  flex-shrink: 0;
}

.option-btn-emoji-padding {
  padding: 16px;
}

/* Audio Message */
.audio-player {
  background-color: #f2efe9;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.play-button {
  width: 40px;
  height: 40px;
  background-color: #9ca3af;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 12px;
  flex-shrink: 0;
}

.audio-wave {
  flex: 1;
}

.wave-bars {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}

.wave-bar {
  width: 4px;
  background-color: #d1d5db;
  border-radius: 9999px;
}

.audio-time {
  font-size: 11px;
  color: #6b7280;
  text-align: left;
  margin-top: 4px;
  font-weight: 500;
}

.audio-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-left: 12px;
  border: 2px solid white;
  object-fit: cover;
  flex-shrink: 0;
}

/* Testimonials & Final Video */
.video-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background-color: #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.1);
}

.video-btn {
  background-color: rgba(26, 86, 219, 0.9);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.video-btn span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.final-video-badge {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

.badge-text {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  color: white;
  font-weight: 900;
  font-size: 20px;
  padding: 8px 24px;
  border-radius: 8px;
  letter-spacing: 0.025em;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Loading Step */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.loading-bar-container {
  width: 100%;
  background-color: #fdf8e7;
  height: 10px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.loading-bar-fill {
  background-color: #d4af37;
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease-out;
}

.loading-text {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #b8860b;
  margin-bottom: 8px;
  padding: 0 4px;
}

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

.animate-slide-in {
  animation: slideIn 0.3s ease-out forwards;
}

.animate-zoom-in {
  animation: zoomIn 0.7s ease-out forwards;
}

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

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

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.btn-pulse-green {
  animation: pulse-green 2s infinite;
}

.hidden {
  display: none;
}
