/*
 * ═══════════════════════════════════════════════════════════════════
 *  Spark Space Design System — Standalone Theme v1.1
 *  Hosted at: https://www.sparkspace.info/spark-theme.css
 *
 *  USAGE — HTML link tag (any project, any framework):
 *    <link rel="stylesheet" href="https://www.sparkspace.info/spark-theme.css">
 *
 *  USAGE — CSS import (non-Tailwind projects):
 *    @import url("https://www.sparkspace.info/spark-theme.css");
 *
 *  USAGE — Tailwind v4 projects (add BEFORE @import "tailwindcss"):
 *    @import url("https://www.sparkspace.info/spark-theme.css");
 *    @import "tailwindcss";
 *    @theme inline {
 *      --color-background: hsl(var(--background));
 *      --color-foreground: hsl(var(--foreground));
 *      --color-primary:    hsl(var(--primary));
 *      --color-accent:     hsl(var(--accent));
 *      --color-muted:      hsl(var(--muted));
 *      --color-muted-foreground: hsl(var(--muted-foreground));
 *      --color-card:       hsl(var(--card));
 *      --color-border:     hsl(var(--border));
 *      --color-ring:       hsl(var(--ring));
 *      --font-sans: var(--app-font-sans);
 *      --font-serif: var(--app-font-serif);
 *    }
 *
 *  v1.1 changes:
 *    - .spark-btn-* border-radius updated to 9999px (pill shape)
 *    - Tagline and footer copy reflects updated positioning
 *
 *  Questions? hello@sparkspace.info
 * ═══════════════════════════════════════════════════════════════════
 */

/* ── FONTS ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Manrope:wght@300..800&display=swap');

/* ── DESIGN TOKENS ──────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --background:          240 10% 4%;
  --foreground:          0 0% 98%;

  --card:                240 6% 7%;
  --card-foreground:     0 0% 98%;
  --card-border:         240 6% 12%;

  --popover:             240 6% 7%;
  --popover-foreground:  0 0% 98%;
  --popover-border:      240 6% 12%;

  /* Brand colours */
  --primary:             330 90% 58%;   /* Hot pink */
  --primary-foreground:  0 0% 98%;

  --secondary:           240 6% 15%;
  --secondary-foreground:0 0% 98%;

  --muted:               240 6% 12%;
  --muted-foreground:    240 5% 65%;

  --accent:              190 90% 50%;   /* Electric blue */
  --accent-foreground:   0 0% 9%;

  --destructive:         0 84% 60%;
  --destructive-foreground: 0 0% 98%;

  --border:              240 6% 15%;
  --input:               240 6% 15%;
  --ring:                330 90% 58%;

  /* Typography */
  --app-font-sans:       'Manrope', sans-serif;
  --app-font-serif:      'Fraunces', serif;
  --app-font-mono:       Menlo, monospace;

  /* Shape */
  --radius:              0.75rem;
}

/* ── BASE STYLES ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  border-color: hsl(var(--border));
}

body {
  font-family: var(--app-font-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body ::selection {
  background-color: hsl(var(--primary) / 0.3);
  color: hsl(var(--primary-foreground));
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--app-font-serif);
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}

/* ── UTILITY CLASSES ────────────────────────────────────────────── */

/* Glass surface */
.glass-panel {
  background-color: hsl(var(--background) / 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Text gradients */
.text-gradient {
  background: linear-gradient(to right, hsl(var(--foreground)), hsl(var(--foreground) / 0.6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-primary {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Elevate on hover */
.hover-elevate {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-elevate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Cards */
.spark-card {
  background-color: hsl(var(--background) / 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* Base button */
.spark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--app-font-sans);
  min-height: 2.25rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.spark-btn:focus-visible {
  outline: 1px solid hsl(var(--ring));
  outline-offset: 2px;
}
.spark-btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}
.spark-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Primary button */
.spark-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--app-font-sans);
  min-height: 2.25rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.spark-btn-primary:focus-visible {
  outline: 1px solid hsl(var(--ring));
  outline-offset: 2px;
}
.spark-btn-primary:disabled {
  pointer-events: none;
  opacity: 0.5;
}
.spark-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Secondary button */
.spark-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--app-font-sans);
  min-height: 2.25rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-decoration: none;
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border: 1px solid hsl(var(--border));
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.spark-btn-secondary:focus-visible {
  outline: 1px solid hsl(var(--ring));
  outline-offset: 2px;
}
.spark-btn-secondary:disabled {
  pointer-events: none;
  opacity: 0.5;
}
.spark-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Ghost button */
.spark-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--app-font-sans);
  min-height: 2.25rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.spark-btn-ghost:hover {
  background-color: hsl(var(--secondary));
  transform: translateY(-2px);
}
.spark-btn-ghost:focus-visible {
  outline: 1px solid hsl(var(--ring));
  outline-offset: 2px;
}
.spark-btn-ghost:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Form input */
.spark-input {
  display: block;
  width: 100%;
  height: 2.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: var(--app-font-sans);
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  outline: none;
  transition: box-shadow 0.15s ease;
}
.spark-input::placeholder {
  color: hsl(var(--muted-foreground));
}
.spark-input:focus-visible {
  box-shadow: 0 0 0 1px hsl(var(--ring));
}
