:root {
  --sun-1: #fde68a;
  --sun-2: #fb923c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Vazirmatn', sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(255,255,255,0.9) 0%, rgba(253,230,138,0.5) 25%, transparent 55%),
    linear-gradient(180deg, #7dd3fc 0%, #bae6fd 25%, #fef3c7 60%, #fed7aa 100%);
  background-attachment: fixed;
}

.app-title {
  font-family: 'Bricolage Grotesque', 'Vazirmatn', sans-serif;
  letter-spacing: -0.02em;
}

/* Sun glow behind title */
.sun-glow {
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(253,224,71,0.55) 0%, rgba(251,146,60,0.15) 50%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  50% { transform: translateX(-50%) scale(1.18); opacity: 1; }
}

.sun-spin {
  animation: spin 14s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Result panel */
.result-panel {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
  box-shadow: 0 12px 30px rgba(249,115,22,0.35);
}

.uv-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: white;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
html[dir="rtl"] .uv-badge { left: auto; right: 12px; }

.pop {
  animation: pop 0.35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Tip cards with rotating pastel palette */
.tip-card {
  animation: fadeUp 0.5s ease both;
  border-color: rgba(251,146,60,0.25);
}
.tip-card:nth-child(6n+1) { background: #fef3c7; }
.tip-card:nth-child(6n+2) { background: #ffedd5; }
.tip-card:nth-child(6n+3) { background: #fee2e2; }
.tip-card:nth-child(6n+4) { background: #dbeafe; }
.tip-card:nth-child(6n+5) { background: #fce7f3; }
.tip-card:nth-child(6n+6) { background: #dcfce7; }

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

.select-btn:active { transform: scale(0.97); }