/* Servers Page Styles */
.servers-main {
  padding: 0 0 6rem; /* Eliminado el padding superior para quitar espacio */
  min-height: calc(100vh - 300px);
  position: relative; /* Para posicionar los botones relativos al main */
}

/* Servers Section */
.servers-section {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  border-top: 2px solid var(--accent-2);
  margin-top: 0;
  padding: 2rem 0;
}

/* Notice Box */
.notice-box {
  background: linear-gradient(135deg, rgba(26, 22, 18, 0.9), rgba(20, 18, 18, 0.7));
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(242, 160, 61, 0.15);
}

.notice-box p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.notice-box strong {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 768px) {
  .notice-box {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
}

/* Estilo para el contenedor de botones al final */
.buttons-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 9, 9, 0.95);
  padding: 1.5rem 0;
  border-top: 1px solid var(--accent);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  backdrop-filter: blur(10px);
}

/* Estilo para los botones */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px;
  text-align: center;
}

.btn-primary:hover {
  background: #ffc107;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 160, 61, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}


.servers-section {
  padding: 2rem 0;
}

.servers-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--muted);
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.server-category {
  background: rgba(20, 18, 18, 0.5);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid var(--line);
}

.server-category h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.server-card {
  background: linear-gradient(135deg, rgba(26, 22, 18, 0.8), rgba(20, 18, 18, 0.6));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.server-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(242, 160, 61, 0.2);
}

.server-name {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.server-ip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  font-family: 'Courier New', monospace;
  color: var(--accent);
  word-break: break-all;
}

.server-ip a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.server-ip a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.server-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.status-online {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.status-offline {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

.server-players {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.copy-ip {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.2s;
}

.copy-ip:hover {
  background: rgba(242, 160, 61, 0.1);
}

.copy-ip.copied {
  background: var(--accent);
  color: #000;
}

/* Responsive */
@media (max-width: 768px) {
  .servers-grid {
    grid-template-columns: 1fr;
  }
  
  .server-card {
    padding: 1rem;
  }
}

/* Animación para el botón copiar */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.copy-feedback {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent);
  animation: fadeIn 0.3s ease;
}
