/* ============================================================
   PL REVIEW - Design System
   ============================================================ */

:root {
  --primary: #0F172A;
  --primary-light: #1E293B;
  --accent: #FACC15;
  --accent-dark: #EAB308;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --bg: #FAFAF9;
  --bg-white: #FFFFFF;
  --border: #E5E7EB;
  --border-light: #F1F5F9;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

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

img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* Cards */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  border: 1px solid var(--border-light);
}
.card-lg { padding: 48px; border-radius: var(--radius-xl); }

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(22px, 3.5vw, 32px); }
h3 { font-size: 20px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-lg { font-size: 18px; }
.text-sm { font-size: 14px; }
.text-xs { font-size: 13px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}
.btn-accent {
  background: var(--accent);
  color: var(--primary);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.4);
}
.btn-google {
  background: #fff;
  color: var(--text);
  border: 2px solid var(--border);
  padding: 14px 28px;
}
.btn-google:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); }
.btn-lg { padding: 18px 36px; font-size: 17px; }
.btn-block { width: 100%; }

/* Forms */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}
.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 16px;
  background: #fff;
  transition: var(--transition);
  color: var(--text);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

/* Star rating */
.star-rating {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}
.star-rating input { display: none; }
.star-rating label {
  font-size: 48px;
  cursor: pointer;
  color: #E5E7EB;
  transition: var(--transition);
  line-height: 1;
  user-select: none;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: var(--accent);
  transform: scale(1.05);
}
.star-rating {
  direction: rtl;
}
.star-rating label {
  transform-origin: center;
}
.star-rating label:hover {
  transform: scale(1.15);
}

/* Small stars display */
.stars-display {
  display: inline-flex;
  gap: 2px;
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
}
.stars-display .star-empty { color: #E5E7EB; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--border-light);
  color: var(--text-muted);
}
.badge-success { background: #DCFCE7; color: #166534; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pop {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.fade-up { animation: fadeUp 600ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.pop { animation: pop 500ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }

/* Utilities */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }
.hidden { display: none; }
.w-full { width: 100%; }

/* Responsive */
@media (max-width: 640px) {
  .card { padding: 24px 20px; border-radius: var(--radius); }
  .card-lg { padding: 32px 24px; }
  .star-rating label { font-size: 42px; }
  .container, .container-sm, .container-md { padding: 0 16px; }
  .btn { padding: 13px 24px; font-size: 15px; }
  .btn-lg { padding: 16px 28px; font-size: 16px; }
}
