/* review.css */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg: #0f1115;
  --bg-card: #15181e;
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.5);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.3);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08), transparent 25%);
}

.review-container {
  width: 100%;
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  margin: 20px;
}

.review-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.5;
}

.review-header {
  text-align: center;
  margin-bottom: 30px;
}

.review-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  margin: 0 0 10px 0;
  background: linear-gradient(to right, #fff, #a78bfa);
  -webkit-background-clip: text;
  color: transparent;
}

.review-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: 16px;
}

.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input, .form-textarea {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.stars-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
  flex-direction: row-reverse;
}

.star {
  font-size: 40px;
  color: var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.star:hover,
.star:hover ~ .star,
.star.active,
.star.active ~ .star {
  color: #fbbf24;
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
  transform: scale(1.1);
}

.star-text {
  text-align: center;
  color: var(--primary);
  font-weight: 500;
  height: 24px;
  margin-top: 5px;
  transition: all 0.3s ease;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--primary-glow);
  background: #7c3aed;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  margin-bottom: 24px;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.back-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(-4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 16px 24px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: slideIn 0.3s ease forwards;
}

.toast.success { border-left: 4px solid #34d399; }
.toast.error { border-left: 4px solid #ef4444; }

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

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}
