/* ═══════════════════════════════════════════════════════════════
   Simple Link Remastered — "Cyber Forge" Theme
   Matching soloking.gg design language
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ─── Design Tokens ────────────────────────────────────────── */
:root {
  /* Core palette */
  --bg-void:       #050a14;
  --bg-deep:       #0a1020;
  --bg-surface:    #0d1528;
  --bg-elevated:   #111d35;
  --bg-card:       rgba(13, 21, 40, 0.75);

  /* Accent — neon cyan / electric blue */
  --neon:          #00d4ff;
  --neon-dim:      #0099cc;
  --neon-glow:     rgba(0, 212, 255, 0.35);
  --neon-subtle:   rgba(0, 212, 255, 0.08);

  /* Secondary accent — warm amber */
  --amber:         #f59e0b;
  --amber-glow:    rgba(245, 158, 11, 0.25);

  /* Borders */
  --border:        rgba(0, 212, 255, 0.1);
  --border-hover:  rgba(0, 212, 255, 0.3);
  --border-strong: rgba(0, 212, 255, 0.5);

  /* Text */
  --text-1:  #e8f4f8;
  --text-2:  #8ba3b8;
  --text-3:  #4a6478;

  /* Status */
  --green:   #00e676;
  --red:     #ff3d5a;
  --yellow:  #ffd600;

  /* Discord / Steam brand */
  --discord:  #5865F2;
  --steam:    #1b2838;

  /* Gradients */
  --grad-neon:   linear-gradient(135deg, #00d4ff 0%, #0066ff 50%, #7c3aed 100%);
  --grad-card:   linear-gradient(160deg, rgba(0, 212, 255, 0.06) 0%, rgba(0, 0, 0, 0) 60%);
  --grad-hero:   linear-gradient(180deg, transparent 0%, var(--bg-void) 100%);

  /* Layout */
  --max-w: 1240px;
  --gap: 4rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* Easing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-void);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 500;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ─── Animated Cyber Background ────────────────────────────── */
.cyber-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cyber-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.cyber-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.cyber-bg__glow--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  top: -250px; left: -200px;
  animation: drift1 25s ease-in-out infinite;
}

.cyber-bg__glow--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
  top: 50%; right: -200px;
  animation: drift2 30s ease-in-out infinite;
}

.cyber-bg__glow--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  bottom: -150px; left: 40%;
  animation: drift3 20s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(100px, 80px); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-80px, -60px); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(60px, -40px); }
}

.cyber-bg__scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.008) 2px,
    rgba(0, 212, 255, 0.008) 4px
  );
}

/* ─── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo-img {
  height: 44px;
  width: auto;
  max-width: 64px;
  object-fit: contain;
}

.nav__name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: all 0.25s ease;
  position: relative;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav__link:hover {
  color: var(--neon);
  background: var(--neon-subtle);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon-glow);
  border-radius: 1px;
  transition: all 0.3s var(--ease);
  transform: translateX(-50%);
}

.nav__link:hover::after { width: 70%; }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 2rem 3rem;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: var(--grad-hero);
  pointer-events: none;
}

.hero__container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 1.2rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--neon);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.06);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero__title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--text-1);
  margin-bottom: 1.25rem;
  text-shadow: 0 0 60px rgba(0, 212, 255, 0.2);
}

.hero__desc {
  max-width: 580px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.8;
}

.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-3);
}

.hero__divider span {
  display: block;
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.hero__divider svg {
  opacity: 0.4;
  animation: rotateSlow 12s linear infinite;
}

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

/* ─── Link Section ─────────────────────────────────────────── */
.link-section {
  position: relative;
  z-index: 1;
  padding: 0 2rem var(--gap);
}

.link__container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ─── Link Card ────────────────────────────────────────────── */
.link-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all 0.5s var(--ease);
  position: relative;
  animation: cardFadeIn 0.5s var(--ease) forwards;
  opacity: 0;
  display: flex;
  flex-direction: column;
}

.link-card:nth-child(1) { animation-delay: 0.05s; }
.link-card:nth-child(2) { animation-delay: 0.15s; }
.link-card:nth-child(3) { animation-delay: 0.25s; }

.link-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-neon);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.link-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.link-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(0, 212, 255, 0.05),
    inset 0 1px 0 rgba(0, 212, 255, 0.1);
}

.link-card:hover::before { opacity: 1; }
.link-card:hover::after  { opacity: 1; }

.link-card--done {
  border-color: rgba(0, 230, 118, 0.2);
}

.link-card--done::before {
  background: linear-gradient(135deg, #00e676 0%, #00d4ff 100%);
  opacity: 1;
}

.link-card--locked {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.3);
}

.link-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0;
  position: relative;
  z-index: 1;
}

.link-card__step-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.06);
}

.link-card__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.link-card__body {
  padding: 1.25rem 1.5rem 1.75rem;
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.link-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: var(--r-lg);
  margin: 0 0 1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.link-card__icon--steam {
  background: rgba(27, 40, 56, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.15);
  color: var(--text-1);
}

.link-card__icon--discord {
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
  color: var(--discord);
}

.link-card__icon--group {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  color: var(--neon);
}

.link-card:hover .link-card__icon {
  box-shadow: 0 0 25px var(--neon-glow);
  border-color: var(--border-hover);
}

.link-card__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.link-card__desc {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  width: 100%;
}

.link-card__desc strong {
  color: var(--neon);
}

.link-card__hint {
  font-size: 0.78rem;
  color: var(--neon-dim);
  margin-top: 0.75rem;
  font-style: italic;
  opacity: 0.7;
  animation: hintPulse 3s ease-in-out infinite;
  letter-spacing: 0.02em;
  width: 100%;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.9; }
}

.link-card__user {
  display: flex;
  justify-content: center;
}

.link-card__avatar {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  border: 2px solid var(--border-hover);
  box-shadow: 0 0 20px var(--neon-glow);
}

.link-card__avatar--placeholder {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--bg-surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Status Indicators ────────────────────────────────────── */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--online {
  background: var(--green);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.status-dot--offline {
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 61, 90, 0.4);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

.status-text {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-text--online  { color: var(--green); }
.status-text--offline { color: var(--red); }

/* ─── Connect Buttons ──────────────────────────────────────── */
.connect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  align-self: stretch;
  padding: 0.85rem 1.5rem;
  background: var(--grad-neon);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.connect-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.connect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.15);
}

.connect-btn:hover::before { opacity: 1; }

.connect-btn--discord {
  background: linear-gradient(135deg, #5865F2 0%, #7c3aed 100%);
}

.connect-btn--discord:hover {
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.4), 0 0 40px rgba(88, 101, 242, 0.2);
}

.connect-btn--steam {
  background: linear-gradient(135deg, var(--neon-dim) 0%, var(--neon) 100%);
  color: var(--bg-void);
  font-weight: 800;
}

.connect-btn--steam:hover {
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35), 0 0 40px rgba(0, 212, 255, 0.2);
}

/* ─── Private Profile Warning ─────────────────────────────── */
.link-card__warning {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-left: 3px solid var(--amber);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-2);
  animation: cardFadeIn 0.4s var(--ease);
  text-align: left;
  width: 100%;
  align-self: stretch;
}

.link-card__warning svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--amber);
}

.link-card__warning strong {
  color: var(--amber);
  font-weight: 700;
  font-size: 0.82rem;
}

.link-card__warning a {
  color: var(--neon) !important;
  text-decoration: none !important;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  padding-bottom: 1px;
  transition: all 0.25s ease;
}

.link-card__warning a:hover {
  color: #fff !important;
  border-bottom-color: var(--neon);
  text-shadow: 0 0 8px var(--neon-glow);
}

/* ─── Complete Section ─────────────────────────────────────── */
.complete-section {
  position: relative;
  z-index: 1;
  padding: 0 2rem var(--gap);
}

.complete__container {
  max-width: 640px;
  margin: 0 auto;
}

.complete__card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 0.5s var(--ease) forwards;
}

.complete__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(135deg, #00e676 0%, #00d4ff 100%);
}

.complete__avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.complete__avatar-wrapper {
  text-align: center;
}

.complete__avatar {
  width: 80px; height: 80px;
  border-radius: var(--r-lg);
  border: 2px solid var(--border-hover);
  box-shadow: 0 0 20px var(--neon-glow);
  margin-bottom: 0.5rem;
}

.complete__avatar-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.complete__avatar-label svg {
  color: var(--neon-dim);
}

.complete__link-icon {
  color: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.complete__details {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-bottom: 1.5rem;
}

.complete__detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.complete__detail-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.complete__detail-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-2);
}

.complete__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 230, 118, 0.06);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: var(--r-md);
  color: var(--green);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.complete__status-icon {
  display: flex;
}

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 2rem;
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer__line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  margin-bottom: 2rem;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* ─── Animations ───────────────────────────────────────────── */
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 255, 0.3); }

::selection {
  background: rgba(0, 212, 255, 0.25);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root { --gap: 3rem; }

  .link__container {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .nav__inner { padding: 0 1.5rem; }
  .nav__name { font-size: 1rem; }

  .hero { padding: 4rem 1.5rem 2.5rem; }
  .hero__title { font-size: clamp(1.6rem, 5.5vw, 2.8rem); }
  .hero__desc { font-size: 0.95rem; }

  .complete__card { padding: 1.5rem; }
  .complete__avatars { gap: 1rem; }
  .complete__avatar { width: 64px; height: 64px; }
}

@media (max-width: 480px) {
  :root { --gap: 2.5rem; }

  .nav__inner { padding: 0 1rem; height: 60px; }
  .nav__logo-img { height: 36px; }
  .nav__name { font-size: 0.85rem; }

  .hero { padding: 3rem 1rem 2rem; }
  .hero__title { font-size: clamp(1.3rem, 6vw, 2rem); }
  .hero__desc { font-size: 0.85rem; }

  .link-card__body { padding: 1rem 1.25rem 1.25rem; }
  .link-card__icon { width: 52px; height: 52px; }
  .link-card__title { font-size: 0.95rem; }

  .complete__card { padding: 1.25rem; }
  .complete__avatars { flex-direction: column; }
  .complete__link-icon { transform: rotate(90deg); }
}

/* ─── Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
