/* 
  Arctic Visual Kit v2.0
  - Lapland AI Lab / Aki Oksala
  - Design tokens + primitives + utilities
*/

:root {
  /* Colors: base */
  --color-bg-deep: #020617;      /* syvä yö */
  --color-bg-surface: #05091a;   /* korttitausta */
  --color-bg-soft: #0b1022;

  --color-accent-teal: #21e6c1;
  --color-accent-teal-soft: rgba(33, 230, 193, 0.2);
  --color-accent-blue: #60a5fa;
  --color-accent-purple: #a855f7;

  --color-text-main: #f9fafb;
  --color-text-muted: #9ca3af;
  --color-border-soft: rgba(148, 163, 184, 0.35);

  /* Gradients */
  --grad-page: radial-gradient(circle at top,
    #1e293b 0,
    #020617 50%,
    #000000 100%);

  --grad-card: radial-gradient(circle at top,
    rgba(33, 230, 193, 0.14),
    transparent 65%);

  --grad-orb: radial-gradient(circle at 30% 10%,
    rgba(33, 230, 193, 0.9),
    rgba(33, 230, 193, 0.1) 50%,
    transparent 70%);

  /* Shadows / glow */
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.7);
  --shadow-hero: 0 24px 60px rgba(15, 23, 42, 0.9);
  --glow-teal: 0 0 28px rgba(33, 230, 193, 0.9);

  /* Radii */
  --radius-card: 20px;
  --radius-panel: 24px;
  --radius-pill: 999px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --text-xs: 11px;
  --text-sm: 13px;
  --text-md: 15px;
  --text-lg: clamp(18px, 2.2vw, 20px);
  --text-xl: clamp(24px, 3.5vw, 30px);
  --text-2xl: clamp(30px, 4.2vw, 38px);
}

/* ===== Page structure ===== */

.arctic-page {
  min-height: 100vh;
  background: var(--grad-page);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  display: flex;
  justify-content: center;
  padding: var(--space-6) var(--space-4) var(--space-8);
}

.arctic-page-inner {
  width: 100%;
  max-width: 1120px;
}

/* ===== Panels & cards ===== */

.arctic-panel {
  position: relative;
  border-radius: var(--radius-panel);
  border: 1px solid var(--color-border-soft);
  background: rgba(5, 9, 26, 0.96);
  box-shadow: var(--shadow-hero);
  padding: var(--space-5) var(--space-5);
  overflow: hidden;
}

.arctic-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left,
    rgba(33, 230, 193, 0.2),
    transparent 60%);
  opacity: 0.75;
  pointer-events: none;
}

.arctic-panel-inner {
  position: relative;
}

/* Basic cards */

.arctic-card {
  position: relative;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border-soft);
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-soft);
  padding: var(--space-4) var(--space-4);
  overflow: hidden;
}

.arctic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0.9;
  pointer-events: none;
}

.arctic-card-body {
  position: relative; /* sisältö gradientin päällä */
}

/* Card hover tilt */

.arctic-card-tilt {
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.arctic-card-tilt:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.9);
  border-color: var(--color-accent-teal-soft);
}

/* ===== Hero orb ===== */

.arctic-glow-orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: var(--grad-orb);
  filter: blur(6px);
  opacity: 0.32;
  box-shadow: var(--glow-teal);
  animation: arctic-orb-pulse 9s ease-in-out infinite alternate;
}

@keyframes arctic-orb-pulse {
  0% {
    transform: translate3d(-18px, 4px, 0) scale(0.9);
    opacity: 0.22;
  }
  100% {
    transform: translate3d(22px, -10px, 0) scale(1.08);
    opacity: 0.4;
  }
}

/* ===== Typography helpers ===== */

.arctic-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-soft);
  background: rgba(15, 23, 42, 0.9);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.arctic-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-accent-teal);
  box-shadow: var(--glow-teal);
}

.arctic-title-main {
  font-size: var(--text-2xl);
  line-height: 1.05;
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}

.arctic-title-main span {
  background: linear-gradient(125deg,
    var(--color-accent-teal),
    var(--color-accent-blue),
    var(--color-accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.arctic-text-muted {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ===== Buttons ===== */

.arctic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
  white-space: nowrap;
}

.arctic-btn-primary {
  background: linear-gradient(135deg,
    var(--color-accent-teal),
    var(--color-accent-blue));
  color: #020617;
  box-shadow: 0 18px 40px rgba(33, 230, 193, 0.6);
}

.arctic-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 60px rgba(33, 230, 193, 0.8);
}

.arctic-btn-ghost {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--color-border-soft);
  color: var(--color-text-main);
}

.arctic-btn-ghost:hover {
  border-color: var(--color-accent-teal-soft);
}

/* ===== Chips / tags ===== */

.arctic-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-soft);
  background: rgba(15, 23, 42, 0.9);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Status chips */

.arctic-chip-status {
  font-size: var(--text-xs);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.arctic-chip-status-live {
  border-color: rgba(34, 197, 94, 0.7);
  background: rgba(21, 128, 61, 0.22);
  color: #bbf7d0;
}

.arctic-chip-status-wip {
  border-color: rgba(250, 204, 21, 0.7);
  background: rgba(202, 138, 4, 0.18);
  color: #facc15;
}

.arctic-chip-status-prototype {
  border-color: rgba(59, 130, 246, 0.7);
  background: rgba(37, 99, 235, 0.2);
  color: #bfdbfe;
}

/* Difficulty chips */

.arctic-chip-diff-easy {
  border-color: rgba(34, 197, 94, 0.7);
  background: rgba(22, 163, 74, 0.18);
  color: #bbf7d0;
}

.arctic-chip-diff-normal {
  border-color: rgba(59, 130, 246, 0.7);
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

.arctic-chip-diff-hard {
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(185, 28, 28, 0.18);
  color: #fecaca;
}

/* ===== Layout utilities ===== */

.arctic-flex-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.arctic-flex-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.arctic-flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.arctic-grid-cards {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .arctic-grid-cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .arctic-grid-cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== Icon container ===== */

.arctic-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top,
    rgba(148, 163, 184, 0.4),
    #020617 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}
