/* =========================
   GT Gaming — Link Hub
   Black + Red theme
   ========================= */

:root {
  --bg: #07080a;
  --bg-2: #0d0e11;
  --surface: #121317;
  --surface-2: #171920;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);

  --text: #f3f4f6;
  --text-dim: #a0a4ad;
  --text-muted: #6b7280;

  --accent: #ff2e3a;
  --accent-2: #ff5560;
  --accent-deep: #b10e18;
  --accent-glow: rgba(255, 46, 58, 0.45);

  --radius: 14px;
  --radius-lg: 18px;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(255, 46, 58, 0.25),
                 0 10px 40px rgba(255, 46, 58, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 46, 58, 0.08), transparent 60%),
    linear-gradient(180deg, #07080a 0%, #0a0b0e 100%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Ambient background glow ---- */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 600px at 15% 110%, rgba(255, 46, 58, 0.10), transparent 60%),
    radial-gradient(500px 500px at 90% 0%, rgba(177, 14, 24, 0.12), transparent 65%);
}

/* ---- Layout ---- */
.container {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #1a1c22, #0c0d10 70%);
  border: 1px solid var(--border-strong);
  box-shadow:
    0 0 0 4px rgba(255, 46, 58, 0.08),
    0 10px 30px rgba(0, 0, 0, 0.55);
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 180deg, transparent 0 70%, var(--accent) 85%, transparent 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 2px;
  opacity: 0.7;
  animation: spin 8s linear infinite;
}


.title {
  margin: 4px 0 0;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 420px;
}

/* ---- Sections ---- */
.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 2px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr 20px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
  will-change: transform;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  background: var(--surface-2);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:active {
  transform: translateY(0) scale(0.995);
}

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--accent);
}

.btn-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  color: var(--text);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.btn:hover .btn-icon {
  color: var(--brand, var(--accent));
  transform: scale(1.08);
}

.btn-label {
  text-align: left;
}

.btn-arrow {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover .btn-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* Primary watch buttons — red-accented */
.btn-primary {
  background: linear-gradient(180deg, #141519 0%, #0f1013 100%);
  border-color: rgba(255, 46, 58, 0.18);
}

.btn-primary:hover {
  border-color: color-mix(in srgb, var(--brand, var(--accent)) 55%, transparent);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 0 1px color-mix(in srgb, var(--brand, var(--accent)) 28%, transparent),
    0 0 22px color-mix(in srgb, var(--brand, var(--accent)) 22%, transparent);
}

/* Discord highlight button */
.btn-discord {
  background: linear-gradient(135deg, #ff2e3a 0%, #b10e18 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  box-shadow:
    0 10px 30px rgba(255, 46, 58, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-discord:hover {
  background: linear-gradient(135deg, #ff5560 0%, #c7121d 100%);
  box-shadow:
    0 14px 40px rgba(255, 46, 58, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-discord .btn-icon,
.btn-discord:hover .btn-icon {
  color: #fff;
}

.btn-discord .btn-arrow {
  color: rgba(255, 255, 255, 0.85);
}

.btn-discord:hover .btn-arrow {
  color: #fff;
}

/* Ghost button for optional steam link */
.btn-ghost {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-style: solid;
  border-color: var(--border-strong);
}

/* ---- Socials ---- */
.socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 6px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  transition:
    transform 0.25s var(--ease),
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  color: var(--text);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.social-label {
  letter-spacing: 0.02em;
}

.social:hover {
  transform: translateY(-2px);
  color: var(--text);
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--brand, var(--accent)) 55%, transparent);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.5),
    0 0 16px color-mix(in srgb, var(--brand, var(--accent)) 30%, transparent);
}

.social:hover .social-icon {
  color: var(--brand, var(--accent));
  transform: scale(1.1);
}

.social:focus-visible {
  outline: none;
  border-color: var(--brand, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, var(--accent)) 40%, transparent);
}

/* ---- Footer ---- */
.footer {
  margin-top: 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 16px 0 8px;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
}

/* ---- Animations ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.container > * {
  animation: fadeUp 0.5s var(--ease) both;
}
.container > *:nth-child(1) { animation-delay: 0.02s; }
.container > *:nth-child(2) { animation-delay: 0.08s; }
.container > *:nth-child(3) { animation-delay: 0.14s; }
.container > *:nth-child(4) { animation-delay: 0.20s; }
.container > *:nth-child(5) { animation-delay: 0.26s; }
.container > *:nth-child(6) { animation-delay: 0.32s; }

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .container {
    padding: 32px 16px 28px;
    gap: 24px;
  }

  .avatar { width: 96px; height: 96px; }

  .btn {
    padding: 15px 16px;
    font-size: 15px;
  }

  .socials {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .avatar::after { display: none; }
}
