/* ============================================
   Feedback Site — Art of YouTube
   Dark theme + Orange accent (FacelessOS-inspired)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Backgrounds */
  --color-bg: #0a0a0a;
  --color-card: #111111;
  --color-card-hover: #161616;
  --color-surface: #1a1a1a;

  /* Orange accent (Art of YouTube) */
  --color-accent: #F97316;
  --color-accent-hover: #EA580C;
  --color-accent-glow: rgba(249, 115, 22, 0.3);
  --color-accent-subtle: rgba(249, 115, 22, 0.1);

  /* Stars */
  --color-star: #F97316;
  --color-star-hover: #FB923C;
  --color-star-inactive: #333333;

  /* Text */
  --color-text: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.4);

  /* Borders */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);

  /* Success */
  --color-success: #22c55e;

  /* Error */
  --color-error: #ef4444;

  /* System */
  --font-stack: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.2s ease;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-stack);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
}

/* Subtle background glow (FacelessOS-style) */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Layout */
.container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow);
  animation: fadeIn 0.5s ease;
}

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

/* Header */
.header {
  text-align: center;
  margin-bottom: 36px;
}

.brand {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.header h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--color-text);
}

.header .subtitle {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto;
}

.gift-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  background: var(--color-accent-subtle);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
}

.gift-badge svg {
  flex-shrink: 0;
}

/* Locked Video Preview */
.locked-preview {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--color-border);
}

.locked-preview-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: blur(3px) brightness(0.65);
  transform: scale(1.05);
}

.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
}

.lock-icon {
  width: 36px;
  height: 36px;
  fill: rgba(255, 255, 255, 0.7);
}

.locked-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
}

/* Questions */
.question {
  margin-bottom: 30px;
}

.question-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 6px;
  padding: 4px 0;
}

.star-rating .star {
  cursor: pointer;
  transition: transform var(--transition), color var(--transition);
  color: var(--color-star-inactive);
  display: flex;
  align-items: center;
}

.star-rating .star:hover {
  transform: scale(1.15);
}

.star-rating .star svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
  transition: fill var(--transition);
}

.star-rating .star.hovered,
.star-rating .star.selected {
  color: var(--color-star);
}

.star-rating .star.hovered {
  color: var(--color-star-hover);
}

.rating-hint {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 8px;
  min-height: 20px;
  transition: color var(--transition);
}

.rating-hint.active {
  color: var(--color-text-secondary);
}

/* Sub-ratings (Content Quality section) */
.sub-ratings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sub-rating {
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.sub-rating:hover {
  border-color: var(--color-border-hover);
}

.sub-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.sub-rating .star-rating {
  gap: 4px;
}

.sub-rating .star-rating .star svg {
  width: 24px;
  height: 24px;
}

/* Textarea */
textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-stack);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
  resize: vertical;
  min-height: 100px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

textarea::placeholder {
  color: var(--color-text-muted);
}

textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

/* Submit Button */
.submit-btn {
  display: block;
  width: 100%;
  padding: 18px 24px;
  margin-top: 12px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-stack);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--color-accent-glow);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-btn .btn-loading {
  display: none;
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Validation */
.question.error .star-rating {
  padding: 8px;
  border: 1px solid var(--color-error);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.05);
}

.error-msg {
  display: none;
  font-size: 12px;
  color: var(--color-error);
  margin-top: 8px;
}

.question.error .error-msg {
  display: block;
}

/* ============================================
   Thank You Pages
   ============================================ */

.thankyou-header {
  text-align: center;
  margin-bottom: 32px;
}

.thankyou-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.thankyou-header h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.thankyou-header p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Video Section */
.video-section {
  margin-bottom: 28px;
}

.video-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
  color: var(--color-accent);
}

.video-section p {
  color: var(--color-text-muted) !important;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Whop Review CTA */
.review-section {
  text-align: center;
  padding: 28px 24px;
  background: var(--color-accent-subtle);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius);
}

.review-section p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 18px;
  line-height: 1.6;
}

.review-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.review-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--color-accent-glow);
}

.review-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Social Proof */
.social-proof {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.avatar-stack {
  display: flex;
  flex-direction: row;
}

.avatar-stack .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-card);
  margin-left: -10px;
  position: relative;
  object-fit: cover;
  display: block;
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

.social-proof-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.social-proof-stars {
  display: flex;
  gap: 2px;
}

.social-proof-stars svg {
  width: 14px;
  height: 14px;
  fill: var(--color-star);
}

.social-proof-text span {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.divider {
  height: 1px;
  background: var(--color-border);
  margin: 28px 0;
  border: none;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--color-star-hover);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 540px) {
  .card {
    padding: 32px 22px;
    border-radius: 12px;
  }

  .header h1,
  .thankyou-header h1 {
    font-size: 24px;
  }

  .sub-ratings {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .star-rating .star svg {
    width: 34px;
    height: 34px;
  }

  .submit-btn {
    font-size: 15px;
    padding: 16px 20px;
  }
}
