/* ═══════════════════════════════════════════════════════════════
   Auroracraft · Link-in-Bio · style.css
   Glassmorphism · Fullscreen Background · Clean Professional
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --bg-base:          #060910;
  --bg-card:          rgba(12, 16, 28, 0.55);
  --bg-card-hover:    rgba(18, 24, 42, 0.72);
  --border-subtle:    rgba(255, 255, 255, 0.06);
  --border-hover:     rgba(255, 255, 255, 0.14);

  --accent-from:      #6366f1;
  --accent-to:        #8b5cf6;
  --accent-glow:      rgba(99, 102, 241, 0.25);

  --text-primary:     #eef0ff;
  --text-secondary:   #7e88a4;
  --text-muted:       #3d4560;

  --font-base:        'Inter', system-ui, -apple-system, sans-serif;
  --radius-card:      14px;
  --radius-sm:        10px;

  --transition-fast:  150ms cubic-bezier(.4,0,.2,1);
  --transition-med:   280ms cubic-bezier(.4,0,.2,1);
  --transition-slow:  450ms cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-base);
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* ── Fullscreen Background Image + Glassmorphism Overlay ────────── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.page-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.page-bg__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 16, 0.72);
  backdrop-filter: blur(32px) saturate(120%);
  -webkit-backdrop-filter: blur(32px) saturate(120%);
}

/* ── Partikel-Feld (CSS-Only, subtil) ───────────────────────────── */
.particle-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  left: var(--x);
  bottom: -10px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(165, 180, 255, var(--opacity));
  animation: particle-rise var(--duration) var(--delay) linear infinite;
}

@keyframes particle-rise {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10%  { opacity: 1; }
  90%  { opacity: 0.4; }
  100% {
    transform: translateY(-110vh);
    opacity: 0;
  }
}

/* ── Layout Container ───────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  padding: 56px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Profil-Header ──────────────────────────────────────────────── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  text-align: center;
}

/* Logo (clean, kein Ring) */
.logo-wrapper {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(99, 102, 241, 0.2));
  transition: filter var(--transition-med);
}

.logo-img:hover {
  filter: drop-shadow(0 6px 28px rgba(99, 102, 241, 0.35));
}

/* Name */
.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.2;
}

/* ── Announcement Banner ────────────────────────────────────────── */
.announcement-banner {
  position: relative;
  width: 100%;
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12),
    rgba(139, 92, 246, 0.06)
  );
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
  animation: card-enter 0.4s both;
}

.announcement-banner:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
}

.announcement-banner__content {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.announcement-banner__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
}

.announcement-banner__icon svg {
  width: 20px;
  height: 20px;
}

.announcement-banner__text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.announcement-banner__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.announcement-banner__text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

a.announcement-banner {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.announcement-banner__arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  margin-left: auto;
  transition: color var(--transition-fast), transform var(--transition-med);
}

.announcement-banner__arrow svg {
  width: 100%;
  height: 100%;
}

a.announcement-banner:hover .announcement-banner__arrow {
  color: #a5b4fc;
  transform: translateX(3px);
}

/* ── Link-Liste ─────────────────────────────────────────────────── */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* ── Link-Karte (Standard) ──────────────────────────────────────── */
.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  color: var(--text-primary);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform var(--transition-med),
    border-color var(--transition-med),
    background var(--transition-med),
    box-shadow var(--transition-med);
  cursor: pointer;
  animation: card-enter var(--transition-slow) both;
}

/* Gestaffeltes Einblenden per nth-child */
.link-card:nth-child(1)  { animation-delay: 0.05s; }
.link-card:nth-child(2)  { animation-delay: 0.10s; }
.link-card:nth-child(3)  { animation-delay: 0.12s; }
.link-card:nth-child(4)  { animation-delay: 0.16s; }
.link-card:nth-child(5)  { animation-delay: 0.20s; }
.link-card:nth-child(6)  { animation-delay: 0.24s; }
.link-card:nth-child(7)  { animation-delay: 0.28s; }
.link-card:nth-child(8)  { animation-delay: 0.32s; }

@keyframes card-enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}

.link-card:active {
  transform: translateY(0) scale(0.99);
}

/* ── Featured Link-Karte (hervorgehoben: true) ──────────────────── */
.link-card--featured {
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.18),
    rgba(139, 92, 246, 0.10));
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow:
    0 4px 20px rgba(99, 102, 241, 0.12),
    0 1px 0 rgba(255,255,255,0.06) inset;
}

.link-card--featured:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow:
    0 8px 36px rgba(99, 102, 241, 0.22),
    0 1px 0 rgba(255,255,255,0.08) inset;
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.28),
    rgba(139, 92, 246, 0.18));
}

/* Shimmer-Effekt auf Featured-Karten */
.link-card__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Icon ───────────────────────────────────────────────────────── */
.link-card__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-med);
}

.link-card__icon svg {
  width: 18px;
  height: 18px;
  color: #8891ad;
  transition: color var(--transition-med), transform var(--transition-med);
}

.link-card--featured .link-card__icon {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.18);
}

.link-card--featured .link-card__icon svg {
  color: #a5b4fc;
}

.link-card:hover .link-card__icon svg {
  color: #a5b4fc;
  transform: scale(1.08);
}

/* ── Text ───────────────────────────────────────────────────────── */
.link-card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-card__title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.005em;
}

.link-card__subtitle {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.link-card--featured .link-card__title {
  font-weight: 600;
  color: #e0e0ff;
}

/* ── Pfeil ──────────────────────────────────────────────────────── */
.link-card__arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform var(--transition-med);
}

.link-card__arrow svg {
  width: 100%;
  height: 100%;
}

.link-card:hover .link-card__arrow {
  color: var(--text-secondary);
  transform: translateX(3px);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  margin-top: 44px;
  padding: 16px 24px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ── Footer Links ───────────────────────────────────────────────── */
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-links a {
  color: #9098b3;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #c4cbea;
}

.footer-sep {
  color: #4a5168;
  font-size: 0.75rem;
  user-select: none;
}

.footer-copy {
  color: #5a6280;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

/* ── Responsive (Mobile-First) ──────────────────────────────────── */
@media (max-width: 480px) {
  .container {
    padding: 40px 16px 32px;
    max-width: 100%;
  }

  .logo-wrapper {
    width: 76px;
    height: 76px;
  }

  .profile-name {
    font-size: 1.35rem;
  }

  .profile {
    margin-bottom: 28px;
  }

  .link-card {
    padding: 13px 14px;
    gap: 12px;
  }

  .link-card__icon {
    width: 36px;
    height: 36px;
  }

  .link-card__icon svg {
    width: 16px;
    height: 16px;
  }

  .link-card__title {
    font-size: 0.84rem;
  }

  .link-card__subtitle {
    font-size: 0.7rem;
  }

  .announcement-banner__content {
    padding: 16px;
    gap: 12px;
  }

  .announcement-banner__icon {
    width: 36px;
    height: 36px;
  }

  .announcement-banner__icon svg {
    width: 18px;
    height: 18px;
  }

  .announcement-banner__title {
    font-size: 0.84rem;
  }

  .announcement-banner__text {
    font-size: 0.74rem;
  }
}

/* ── Reduzierte Bewegung (Accessibility) ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
