/* Servers page styling - lightweight and matches site theme */
.servers-container {
  max-width: 1100px;
  margin: 1rem auto;
  padding: 1rem 2rem 2rem 2rem;
}

/* Header styles copied from projects.css so the Servers header matches the Projects hero */
.header {
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 0.5rem;
}

.header h1 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6ec7 0%, #b794f6 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.header p {
  font-size: 1.2rem;
  color: rgba(183, 148, 246, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.current-server .server-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(183,148,246,0.06);
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.server-image img {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(159,122,234,0.18);
}

.server-info h3 {
  margin-bottom: 0.25rem;
}

.server-meta {
  color: #cfc7ff;
  margin-bottom: 0.75rem;
}

.server-description {
  color: #e6e1ff;
}

.server-timeline .timeline {
  position: relative;
  margin-left: 1rem;
  padding-left: 2rem;
  border-left: 2px solid rgba(183,148,246,0.08);
}

.timeline-item {
  margin: 1.5rem 0;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(45deg,#7c3aed,#ff6ec7);
  box-shadow: 0 4px 10px rgba(124,58,237,0.2);
}

.timeline-item-content {
  background: rgba(255,255,255,0.02);
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(183,148,246,0.04);
}

.timeline-item-content .tag {
  display: inline-block;
  background: rgba(159,122,234,0.12);
  color: #e6e1ff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.timeline-image img {
  margin-top: 0.75rem;
  max-width: 320px;
  border-radius: 8px;
  border: 1px solid rgba(159,122,234,0.06);
}

/* Make tags subtly glossy like the project code tags and keep base tag properties */
.tech-tag {
  /* base tag appearance (match main site) */
  padding: 0.35rem 0.9rem;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

  /* servers-specific additions */
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.03);
  display: inline-flex;
  align-items: center;
}

.tech-tag::after {
  content: '';
  position: absolute;
  left: -40%;
  top: 0;
  height: 100%;
  width: 80%;
  background: linear-gradient(120deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.0) 100%);
  transform: translateX(0);
  transition: transform 450ms ease, opacity 300ms ease;
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: screen;
}

.tech-tag:hover::after {
  transform: translateX(60%);
  opacity: 0.36;
}

/* Custom platform tag styles */
/* Minecraft tag - green grass block colors */
.tech-tag[data-tech="minecraft"] {
  background: linear-gradient(135deg, #3e8e41 0%, #7cb342 100%);
}

/* FiveM tag - orange/red logo colors */
.tech-tag[data-tech="fivem"] {
  background: linear-gradient(135deg, #f40552 0%, #ff6b35 100%);
}

/* Server role styling */
.server-role {
  display: inline-block;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.3) 0%, rgba(183, 148, 246, 0.3) 100%);
  color: #b794f6;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(183, 148, 246, 0.2);
}

/* Home button styled like Projects page */
.home-btn {
  position: absolute;
  top: 0.2rem; /* moved further up per request */
  left: 2rem;
  padding: 0.75rem 1.5rem;
  background: rgba(183, 148, 246, 0.15);
  border: 1px solid rgba(183, 148, 246, 0.3);
  border-radius: 8px;
  color: #b794f6;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  font-size: 0.95rem;
  z-index: 100;
}

.home-btn:hover {
  background: rgba(183, 148, 246, 0.25);
  border-color: #b794f6;
  transform: translateY(-2px);
}

@media (max-width: 800px) {
  .current-server .server-card { flex-direction: column; align-items: flex-start; }
  .server-image img { width: 100%; height: auto; }
}

/* Server Modal Styles */
.server-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(135deg, #2a1a4d 0%, #1a0f3d 100%);
  border: 2px solid rgba(183, 148, 246, 0.3);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.4);
  animation: modalSlideIn 0.3s ease;
}

/* Discord Widget Modal specific styling */
.discord-widget-modal {
  padding: 1rem;
  max-width: 370px;
  background: transparent;
  border: none;
}

.custom-discord-widget {
  max-width: 450px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1a4d 0%, #1a0f3d 100%);
  border: 2px solid rgba(183, 148, 246, 0.3);
}

.widget-header {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(183, 148, 246, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.widget-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
  overflow: hidden;
}

.widget-icon.server-logo {
  background: transparent;
  border: 2px solid rgba(183, 148, 246, 0.3);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.widget-icon.server-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget-info h2 {
  margin: 0 0 0.5rem 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.widget-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #b794f6;
  font-size: 0.9rem;
  margin: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #3ba55d;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 165, 93, 0.7);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(59, 165, 93, 0);
  }
}

.widget-embed {
  background: #1a0f3d;
  min-height: 400px;
}

.widget-embed iframe {
  display: block;
  border: none;
}

.widget-footer {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(183, 148, 246, 0.2);
  display: flex;
  gap: 0.75rem;
}

.widget-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.join-btn {
  background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
  color: #fff;
}

.join-btn:hover {
  background: linear-gradient(135deg, #4752c4 0%, #5b6eae 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.docs-btn {
  background: linear-gradient(135deg, rgba(183, 148, 246, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
  color: #b794f6;
  border: 1px solid rgba(183, 148, 246, 0.3);
}

.docs-btn:hover {
  background: linear-gradient(135deg, rgba(183, 148, 246, 0.3) 0%, rgba(124, 58, 237, 0.3) 100%);
  border-color: #b794f6;
  transform: translateY(-2px);
}

.widget-stats {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.15);
}

.stat-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(183, 148, 246, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(183, 148, 246, 0.2);
}

.stat-item i {
  font-size: 1.5rem;
  color: #b794f6;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  color: #b794f6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
  margin-top: 0.2rem;
}

.loading-dots {
  color: #b794f6;
  animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
  0%, 20% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.custom-discord-widget .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
}

.widget-placeholder {
  background: linear-gradient(135deg, #2a1a4d 0%, #1a0f3d 100%);
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid rgba(183, 148, 246, 0.3);
}

.widget-placeholder h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.widget-placeholder p {
  color: #b794f6;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #b794f6;
  cursor: pointer;
  transition: all 0.3s;
  line-height: 1;
}

.modal-close:hover {
  color: #ff6ec7;
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(183, 148, 246, 0.2);
}

.modal-header i {
  font-size: 2.5rem;
  color: #5865f2;
}

.modal-header h2 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.modal-body {
  color: #d4d4d8;
}

.server-info-section {
  margin-bottom: 1.5rem;
}

.server-info-section h3 {
  color: #b794f6;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.server-info-section p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.server-info-section strong {
  color: #fff;
  margin-right: 0.5rem;
}

.server-links-section h3 {
  color: #b794f6;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.discord-btn {
  background: #5865f2;
  color: #fff;
}

.discord-btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.docs-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #b794f6 100%);
  color: #fff;
}

.docs-btn:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #a78bfa 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.modal-btn i {
  font-size: 1.2rem;
}

@media (max-width: 600px) {
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }
}
