:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --card-bg: #ffffff;

  --text: #1f2937;
  --muted: #6b7280;

  --accent: #2ea17a;
  --accent-strong: #1f7d5f;
  --accent-soft: #d7f3ea;

  --border: rgba(0, 0, 0, 0.08);
  --divider: rgba(0, 0, 0, 0.25);
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: 0.3s ease;
}

.container {
  max-width: 900px;
  margin: 50px auto;
  padding: 20px;
}

.card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 0 25px rgba(96, 192, 160, 0.2);
  transition: 0.3s ease;
}

h1 {
  color: var(--accent-strong);
  margin-top: 0;
}

button {
  background: var(--accent);
  color: #003333;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s ease;
}

button:hover {
  background: var(--accent-strong);
  color: white;
  transform: scale(1.05);
}

.link {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: bold;
}

.link:hover {
  color: var(--accent);
}

.fox-links {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
}

.fox-links a {
  position: relative;
  padding: 0 16px;
  color: var(--accent);
  transition: color 0.2s ease;
}

.fox-links a i {
  display: inline-block;
  transition: transform 0.2s ease;
}

.fox-links a:hover {
  color: var(--accent-strong);
}

/* 🔥 skalujemy TYLKO ikonę */
.fox-links a:hover i {
  transform: scale(1.25);
}

/* separator */
.fox-links a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: var(--divider);
  opacity: 0.6;
}

#discord-widget {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 25px rgba(96, 192, 160, 0.2);
  transition: 0.3s ease;

  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;

  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#discord-widget:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

#discord-widget:active {
  transform: scale(0.98);
}

.emoji {
  font-size: 1.8rem;
  line-height: 1;
  grid-row: 1;
}

/* Nazwa serwera */
.server-name {
  margin: 0;
  grid-column: 2;
  grid-row: 1;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;

  grid-column: 2;
  grid-row: 2;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.about-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-card {
  display: block;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* tylko linki mają pointer */
a.about-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

a.about-card:active {
  transform: scale(0.98);
}

.site-footer {
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center; /* 🔥 centrowanie w poziomie */
  text-align: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-copy {
  margin: 0;
}

.footer-note {
  margin: 8px 0 0 0;
  opacity: 0.7;
}

.lang-switch {
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center; /* 🔥 centrowanie */
  gap: 6px;
}

.lang-switch a {
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.lang-switch a:hover {
  opacity: 1;
}

.lang-switch .divider {
  margin: 0 6px;
  opacity: 0.4;
}

/* 🔥 aktywny język */
.lang-switch a.active {
  font-weight: 600;
  opacity: 1;
}

.lastfm-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  backdrop-filter: blur(12px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.03) inset;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.lastfm-card:hover {
  transform: translateY(-2px);
}

.lastfm-card:active {
  transform: scale(0.98);
}
.lastfm-card.fade-out {
  opacity: 0;
  transform: translateY(6px);
}

#album-art {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

#album-art.fade-img {
  opacity: 0;
}

.lastfm-label {
  display: flex; /* 🔥 DODAJ */
  align-items: center; /* 🔥 DODAJ */
  gap: 6px; /* 🔥 opcjonalnie */
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.lastfm-track {
  font-weight: 600;
  font-size: 0.95rem;
}

.lastfm-label.live {
  color: #4ade80; /* zielony */
}

.lastfm-label.recent {
  color: var(--muted);
}
.live-dot {
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  position: relative;
  transform: scale(0.6);
  transition: 0.2s ease;
}

.live-dot.active {
  display: inline-block;
}

.live-dot.active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 1.5s infinite;
  opacity: 0.6;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(2.2);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
