/* ===== ORZBA VIBECODING STYLE ===== */
/* Warm, dreamy, immersive — every pixel moves */

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

:root {
  --bg: #0b081a;
  --bg-2: #120e24;
  --text: #f0edff;
  --text-dim: #8880b0;
  --pink: #ff6b9d;
  --pink-glow: rgba(255,107,157,0.3);
  --purple: #a78bfa;
  --gold: #fbbf24;
  --cyan: #67e8f9;
  --border: rgba(255,255,255,0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Georgia", "Noto Serif SC", serif;
  --max-w: 1100px;
  --radius: 16px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === PARTICLES CANVAS === */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* === AMBIENT GRADIENT ORB === */
.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  animation: orbFloat 20s ease-in-out infinite;
}

.ambient-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--pink), transparent);
  top: -200px; right: -200px;
  animation-delay: 0s;
}

.ambient-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--purple), transparent);
  bottom: -200px; left: -200px;
  animation-delay: -7s;
}

.ambient-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--cyan), transparent);
  top: 50%; left: 50%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* === LAYER STACK === */
.layer {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* === TYPOGRAPHY === */
h1 { font-size: clamp(2.2rem, 7vw, 4.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; line-height: 1.3; }

.gradient-text {
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(135deg, var(--pink), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-dim { color: var(--text-dim); }
.text-sm { font-size: 0.85rem; }
.text-lg { font-size: clamp(1.05rem, 2vw, 1.25rem); }
.text-center { text-align: center; }

/* === SPACING === */
.section { padding: clamp(4rem, 10vw, 8rem) 0; }
.section-sm { padding: clamp(2rem, 4vw, 3rem) 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 1px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  transition: opacity 200ms;
}

.btn:hover {
  transform: scale(1.04);
  background: rgba(255,255,255,0.1);
}

.btn:hover::before { opacity: 0.6; }

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

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  box-shadow: 0 4px 20px var(--pink-glow);
}

.btn-primary::before { display: none; }

.btn-primary:hover {
  box-shadow: 0 6px 30px var(--pink-glow);
  background: linear-gradient(135deg, #ff7baa, #b896ff);
}

.btn-sm { padding: 10px 24px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,8,26,0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links { display: flex; gap: 4px; align-items: center; }

.nav-links a {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 20px;
  transition: all 200ms;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  position: relative;
}

/* === WISH LAMP === */
.wish-lamp {
  position: relative;
  width: 60px; height: 80px;
  margin: 0 auto 2rem;
}

.wish-lamp-body {
  width: 40px; height: 50px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--pink), #ff9a76);
  border-radius: 50% 50% 40% 40%;
  animation: lampGlow 3s ease-in-out infinite;
}

.wish-lamp-top {
  width: 20px; height: 6px;
  margin: 0 auto;
  background: var(--gold);
  border-radius: 2px;
}

.wish-lamp-string {
  width: 2px; height: 24px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
}

@keyframes lampGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,107,157,0.3); }
  50% { box-shadow: 0 0 40px rgba(255,107,157,0.6), 0 0 80px rgba(255,107,157,0.2); }
}

/* === GLASS CARD === */
.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(167,139,250,0.08);
}

/* === WISH INPUT === */
.wish-input-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.wish-textarea {
  width: 100%;
  min-height: 140px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.8;
  resize: vertical;
  transition: all 300ms;
  outline: none;
}

.wish-textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 30px var(--pink-glow), inset 0 0 30px rgba(255,107,157,0.05);
}

.wish-textarea::placeholder { color: var(--text-dim); opacity: 0.4; }

.wish-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-btn {
  padding: 5px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 200ms;
  font-family: var(--font);
}

.tag-btn:hover,
.tag-btn.active {
  border-color: var(--pink);
  color: var(--pink);
  background: rgba(255,107,157,0.08);
}

/* === WISH CARD === */
.wish-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.wish-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--purple), transparent);
  transition: left 600ms;
}

.wish-card:hover::before { left: 100%; }

.wish-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(167,139,250,0.06);
}

.wish-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.wish-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.wish-tag {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(255,107,157,0.1);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--pink);
}

.like-btn {
  cursor: pointer;
  transition: all 200ms;
  user-select: none;
}

.like-btn:hover {
  color: var(--pink);
  transform: scale(1.15);
}

.like-btn.liked { color: var(--pink); }

/* === DIVIDER === */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2rem 0;
}

/* === STAT === */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* === WALL GRID === */
.wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* === AUTH === */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 16px 60px;
}

.auth-box {
  width: 100%;
  max-width: 400px;
}

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 500; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--text-dim); }

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  transition: all 200ms;
}

.form-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 20px var(--pink-glow);
}

.form-input::placeholder { color: var(--text-dim); opacity: 0.4; }

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

/* === ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float { animation: float 4s ease-in-out infinite; }

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.scale-in { animation: scaleIn 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

/* === LOADING === */
.spinner {
  width: 32px; height: 32px;
  margin: 2rem auto;
  border: 2px solid var(--border);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* === TOAST === */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11,8,26,0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  z-index: 9999;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  animation: toastIn 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-dim);
}

.empty-icon { font-size: 3rem; margin-bottom: 1rem; }

/* === MISC === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav-links a { padding: 6px 10px; font-size: 0.8rem; }
  .stats-row { gap: 2rem; }
  .wall-grid { grid-template-columns: 1fr; }
}
