/* Review Funnel Styles */

:root {
  --brand-color: #2563eb;
  --brand-color-light: #3b82f6;
  --brand-color-dark: #1d4ed8;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e5e7eb 100%);
  min-height: 100vh;
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  text-align: center;
}

/* Header / Branding */
.logo {
  max-width: 180px;
  max-height: 100px;
  margin-bottom: 16px;
  object-fit: contain;
}

.logo-placeholder {
  width: 80px;
  height: 80px;
  background: var(--brand-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 32px;
  font-weight: bold;
}

.business-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 32px;
}

/* Thumbs Selection */
.thumbs-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 32px 0;
}

.thumb-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.thumb-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.thumb-btn.thumb-up:hover,
.thumb-btn.thumb-up.selected {
  border-color: var(--success-color);
  background: #ecfdf5;
}

.thumb-btn.thumb-down:hover,
.thumb-btn.thumb-down.selected {
  border-color: var(--danger-color);
  background: #fef2f2;
}

/* Screens */
.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Keywords */
.keywords-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.keywords-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.keyword-btn {
  padding: 10px 18px;
  border-radius: 25px;
  border: 2px solid #e5e7eb;
  background: var(--white);
  color: var(--text-dark);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.keyword-btn:hover {
  border-color: var(--brand-color);
  background: #eff6ff;
}

.keyword-btn.selected {
  border-color: var(--brand-color);
  background: var(--brand-color);
  color: var(--white);
}

/* Generated Review */
.review-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px 0;
  text-align: left;
  min-height: 100px;
  border: 1px solid #e5e7eb;
}

.review-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
}

.review-placeholder {
  color: var(--text-light);
  font-style: italic;
  text-align: center;
}

/* Buttons */
.btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--brand-color);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-color-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--white);
  color: var(--brand-color);
  border: 2px solid var(--brand-color);
}

.btn-secondary:hover {
  background: #eff6ff;
}

.btn-success {
  background: var(--success-color);
  color: var(--white);
}

.btn-success:hover {
  background: #059669;
}

.btn-block {
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn-group .btn {
  flex: 1;
}

/* Feedback Form */
.feedback-form {
  text-align: left;
}

.feedback-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feedback-textarea {
  width: 100%;
  min-height: 150px;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.feedback-textarea:focus {
  outline: none;
  border-color: var(--brand-color);
}

.feedback-textarea::placeholder {
  color: var(--text-light);
}

/* Thank You Screen */
.thank-you-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.thank-you-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.thank-you-message {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 24px;
}

/* Back Button */
.back-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #374151;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  margin-bottom: 16px;
  display: inline-block;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}

.back-btn:hover {
  color: var(--text-dark);
}

/* Copied Toast */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 16px;
  }
  
  .card {
    padding: 24px;
  }
  
  .thumb-btn {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .keyword-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--brand-color, #2563eb);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#screen-loading {
  text-align: center;
  padding: 60px 20px;
}

#screen-error {
  text-align: center;
  padding: 40px 20px;
}
