/* css/index.css — exact copy of index.html’s inline styles */

/* give extra space below container so cards don’t touch footer */
.container {
  margin: 0 auto 40px;
  padding: 20px;
  z-index: 2;
}

/* top navigation buttons */
.top-button-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0 20px;
}
.top-button {
  text-decoration: none;
  color: #00cccc;
  border: 1px solid #00cccc;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}
.top-button:hover {
  background-color: #00cccc;
  color: #000;
  box-shadow: 0 0 15px #00cccc;
}
@media (max-width: 767px) {
  .top-button-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* make the last button span both columns and center it */
  .top-button-row .top-button:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* Discord widget + guardians */
.discord-container {
  position: relative;
  width: 300px;
  height: 470px;
  margin: 20px auto;
  box-sizing: border-box;
}
.discord-widget {
  width: 100%;
  height: 100%;
  padding: 15px;
  background: rgba(15,15,15,0.9);
  border: 1px solid #00cccc;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,255,255,0.2);
  box-sizing: border-box;
  text-align: center;
}
.discord-widget h2 {
  margin: 0 0 10px;
  color: #e0e0e0;
}
.discord-widget iframe {
  width: 100%;
  height: 400px;
  border: none;
}
.lich-king2 {
  position: absolute;
  right:100%;
  margin-right:20px;
  top:0;
  height:100%;
  width:auto;
}
.lich-king {
  position: absolute;
  left:100%;
  margin-left:20px;
  top:0;
  height:100%;
  width:auto;
}
@media (max-width: 767px) {
  .lich-king,
  .lich-king2 {
    display: none;
  }
}

/* server-cards grid & shine */
.grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 20px;
}
.grid::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: radial-gradient(circle, rgba(0,255,255,0.1), transparent);
  z-index: -1;
}

.card {
  background: rgba(15,15,15,0.9);
  border: 2px solid #00cccc;
  border-radius: 10px;
  padding: 15px;
  width: 280px;
  box-shadow: 0 0 15px rgba(0,255,255,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 0 25px rgba(0,255,255,0.4);
}
.card::after {
  content: '';
  position: absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background: linear-gradient(90deg, transparent, rgba(0,255,255,0.2), transparent);
  animation: shine 3s infinite;
}
.card img {
  width:100%;
  height:auto;
  border-radius:5px;
  margin-bottom:5px;
  border:1px solid #00cccc;
  object-fit:cover;
  aspect-ratio:16/9;
}
.card h3 {
  margin:0.4em 0 0.2em;
  color:#00cccc;
  font-size:1.2em;
  text-shadow:0 0 5px #00cccc;
}
.card p {
  font-size:0.9em;
  margin:0.2em 0;
  color:#e0e0e0;
}
.last-updated {
  display:block;
  margin-bottom:0.5em;
  font-size:0.8em;
  opacity:0.8;
  color:#e0e0e0;
}

/* tribute box */
.donate {
  margin:20px auto;
  padding:10px 15px;
  background:rgba(15,15,15,0.9);
  border:2px solid #00cccc;
  border-radius:10px;
  width:280px;
  box-shadow:0 0 20px rgba(0,255,255,0.2);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.donate h2 {
  margin:5px 0;
  color:#e0e0e0;
}
.donate p {
  margin:5px 0 10px;
  font-size:0.95em;
  white-space:nowrap;
  color:#e0e0e0;
}
.donate a {
  display:inline-block;
  background-color:#ffdd57;
  padding:10px 24px;
  border-radius:8px;
  color:#000;
  font-weight:bold;
  text-decoration:none;
  text-shadow:0 0 5px #ffdd57;
  transition:all 0.3s ease;
}
.donate a:hover {
  background-color:#ffee80;
  box-shadow:0 0 15px #ffdd57;
  transform:scale(1.05);
}

/* spinner & status */
.spinner {
  display:inline-block;
  width:16px;
  height:16px;
  border:2px solid #00cccc;
  border-top:2px solid transparent;
  border-radius:50%;
  margin-right:5px;
  animation: spin 1s linear infinite;
  vertical-align:middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.status-online {
  color:#00ff99;
  text-shadow:0 0 5px #00ff99;
}
.status-offline {
  color:#ff4444;
  text-shadow:0 0 5px #ff4444;
}
@keyframes shine {
  0%   { left:-100%; }
  20%  { left:100%; }
  100% { left:100%; }
}
