/* ========== Modern Minecraft Server Status Card ========== */

.mss-card {
  background: linear-gradient(135deg, #1b1f24 0%, #13161a 100%);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  color: #f1f5f9;
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);
  max-width: 420px;
  margin: 1rem auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mss-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.6);
}

/* Header */
.mss-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.mss-favicon {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(255,255,255,0.15);
}

.mss-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.mss-subtitle {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Status line */
.mss-status-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0 0.75rem;
}

.mss-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 8px #ff4d4d;
  transition: all 0.3s ease;
}
.mss-dot--online {
  background: #4ade80;
  box-shadow: 0 0 10px #22c55e, 0 0 20px #16a34a;
  animation: pulse-online 1.8s infinite ease-in-out;
}

@keyframes pulse-online {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.75; }
}

.mss-status-text {
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* MOTD text */
.mss-motd {
  margin-top: 1rem;
  padding-top: 0.75rem;
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(6px);
  animation: fadeInUp 0.6s 0.2s forwards;
}

/* Player count section */
.mss-playercount {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 1rem;
  font-weight: 500;
  color: #93e5a2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(6px);
  animation: fadeInUp 0.6s 0.5s forwards;
}

.mss-playercount::before {
  content: "👥";
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Loading spinner */
.mss-loading {
  display: none;
}

.mss-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #22c55e;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ==== Join Buttons ==== */
.mss-join {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mss-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(34,197,94,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
}

.mss-join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(34,197,94,0.45);
}

.mss-join-btn--copy {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 18px rgba(37,99,235,0.3);
}

.mss-join-btn--copy:hover {
  box-shadow: 0 8px 22px rgba(37,99,235,0.45);
}

/* Animation, wenn IP kopiert wurde */
@keyframes copiedFlash {
  0% { background: #22c55e; transform: scale(1); }
  50% { background: #4ade80; transform: scale(1.05); }
  100% { background: linear-gradient(90deg, #3b82f6, #2563eb); transform: scale(1); }
}
.mss-join-btn--copied {
  animation: copiedFlash 1.2s ease;
}
/* ===== Join Hinweis (modern & dezent) ===== */
.mss-join-hint {
  margin-top: 0.9rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
  border-left: 3px solid #22c55e;
  box-shadow: inset 0 0 6px rgba(34,197,94,0.1);
  opacity: 0;
  transform: translateY(5px);
  animation: fadeInHint 0.8s 0.4s forwards ease-out;
}

.mss-join-hint strong {
  color: #fff;
}

.mss-join-hint code {
  background: rgba(255,255,255,0.08);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: #86efac;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
}

.mss-join-hint-icon {
  font-size: 1.2rem;
  opacity: 0.9;
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.3));
}

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

