/* ==========================================================================
   WorldSoftNet — reusable components
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; font-weight: 700; font-size: var(--fs-sm); line-height: 1.2;
  text-decoration: none; transition: transform .2s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--primary { background: var(--primary); color: var(--white); box-shadow: 0 8px 20px rgba(47, 91, 234, .28); }
.btn--primary:hover { background: var(--primary-hover); color: var(--white); }
.btn--ghost { border-color: var(--gray-200); color: var(--navy-900); background: var(--white); }
.btn--ghost:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn--light { background: var(--white); color: var(--navy-900); }
.btn--light:hover { color: var(--primary); }
.btn--outline-light { border-color: rgba(255, 255, 255, .35); color: var(--white); background: transparent; }
.btn--outline-light:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--sm { min-height: 38px; padding: .5rem 1rem; font-size: var(--fs-xs); }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: var(--fs-sm); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: var(--radius-pill);
  font-size: var(--fs-xs); font-weight: 700; line-height: 1.6; background: var(--blue-100); color: var(--primary);
}
.badge--teal { background: var(--teal-100); color: #0b7f72; }
.badge--coral { background: var(--coral-100); color: #b83a28; }
.badge--gray { background: var(--gray-100); color: var(--gray-800); }
.badge--demo { background: #fff4d6; color: #8a5a00; border: 1px dashed #e0b04a; }
.badge--demo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.demo-note {
  display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--radius);
  background: #fffaeb; border: 1px dashed #e0b04a; color: #6b4700; font-size: var(--fs-sm);
}
.demo-note strong { color: #5a3b00; }

.platforms { display: flex; gap: .4rem; align-items: center; }
.platform-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--gray-50); color: var(--navy-900); border: 1px solid var(--border); }
.platform-icon svg { width: 16px; height: 16px; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-5); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--text-muted); font-size: var(--fs-sm); }

.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--space-4);
  background: var(--blue-100); color: var(--primary);
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile--teal { background: var(--teal-100); color: #0b8f80; }
.icon-tile--coral { background: var(--coral-100); color: #d24b36; }
.icon-tile--sun { background: #fff1d2; color: #b77700; }

/* ---------- Phone mockup ---------- */
.phone {
  --phone-w: 240px;
  position: relative; width: var(--phone-w); aspect-ratio: 9 / 19.5; flex-shrink: 0;
  padding: calc(var(--phone-w) * .035); border-radius: calc(var(--phone-w) * .16);
  background: linear-gradient(145deg, #2a3350, #0b1124 60%, #1d2540);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), 0 30px 60px rgba(4, 10, 30, .35), 0 8px 18px rgba(4, 10, 30, .25);
}
.phone::before { /* side button */
  content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 12%; border-radius: 0 3px 3px 0; background: #1d2540;
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--phone-w) * .13); overflow: hidden; background: #000; }
.phone__screen svg { width: 100%; height: 100%; }
.phone__island {
  position: absolute; top: calc(var(--phone-w) * .035); left: 50%; transform: translateX(-50%);
  width: 30%; height: calc(var(--phone-w) * .075); border-radius: 99px; background: #05070d; z-index: 2;
}
.phone--sm { --phone-w: 180px; }
.phone--lg { --phone-w: 280px; }

/* ---------- Game art animation hooks (used inside generated SVG) ---------- */
.art-float { animation: art-float 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.art-float--2 { animation-delay: -1.6s; }
.art-float--3 { animation-delay: -3.1s; }
.art-pulse { animation: art-pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.art-glow { animation: art-glow 2.4s ease-in-out infinite; }
.art-spin { animation: art-spin 40s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes art-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes art-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes art-glow { 0%, 100% { opacity: .25; } 50% { opacity: .85; } }
@keyframes art-spin { to { transform: rotate(360deg); } }

/* ---------- Avatars ---------- */
.avatar { border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.avatar svg { width: 100%; height: 100%; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
