@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


body, input, button, select, textarea {
  font-family: 'Vazirmatn', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

/*  پس‌زمینه کلی */
.gradient-bg {
  background: linear-gradient(135deg, #0a0f1c 0%, #0f172a 50%, #111827 100%);
  position: relative;
}

.gradient-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
  pointer-events: none;
}


.neon-glow {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4),
              0 0 40px rgba(14, 165, 233, 0.2);
}

.neon-glow-cyan {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5),
              0 0 40px rgba(14, 165, 233, 0.3);
}


.server-card {
  background: rgba(17, 24, 39, 0.92); /* جایگزین سبک‌تر */
  border: 1px solid rgba(6, 182, 212, 0.3);
  /* backdrop-filter حذف شود */
}


.status-online {
  background: linear-gradient(45deg, #22c55e, #16a34a);
  animation: pulse 2s infinite;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.status-offline {
  background: linear-gradient(45deg, #ef4444, #dc2626);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.table-row {
  transition: transform 0.3s ease, opacity 0.3s ease;
}


.fixed-row-height {
  height: 72px;
}

.server-name-span {
  line-height: 1.4;
  display: block;
}

.mobile-card {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.97), rgba(15, 23, 42, 0.97));
  border-inline-start: 4px solid #06b6d4;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.35),
    0 0 10px rgba(6, 182, 212, 0.08);
  will-change: transform, opacity;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}


.gaming-header {
  background: rgba(17, 24, 39, 0.95); /* بدون blur ولی ظاهری مشابه */
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
}


.gaming-table {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(6, 182, 212, 0.25);
  /* backdrop-filter حذف شود */
}


.table-head-border {
  border-bottom: 2px solid rgba(6, 182, 212, 0.3);
}


#homepage {
  background: linear-gradient(135deg, #093052, #0a2342, #1e3a5f);
  background-size: cover;
  position: relative;
  overflow: hidden;
}

#homepage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at top, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(255, 0, 150, 0.1) 0%, transparent 50%);
  animation: wave-flow 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes wave-flow {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
  50% { transform: translateY(-20px) rotate(2deg); opacity: 1; }
}


.particle {
  position: absolute;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-glow 6s ease-in-out infinite;
  will-change: transform, opacity;
}

.particle:nth-child(1) { width: 4px; height: 4px; left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; left: 80%; top: 30%; animation-delay: 2s; }
.particle:nth-child(3) { width: 3px; height: 3px; left: 60%; top: 70%; animation-delay: 4s; }
.particle:nth-child(4) { width: 5px; height: 5px; left: 20%; top: 80%; animation-delay: 1s; }
.particle:nth-child(5) { width: 4px; height: 4px; left: 90%; top: 60%; animation-delay: 3s; }

@keyframes float-glow {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.6; }
  50% { transform: translateY(-15px) scale(1.2); opacity: 1; }
}


.hero-content {
  position: relative;
  z-index: 10;
}

.hero-title {
  background: linear-gradient(135deg, #00ffff 0%, #ff0080 50%, #8000ff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-glow 4s ease infinite;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

@keyframes title-glow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}


.cta-button {
  background: linear-gradient(135deg, #00ffff 0%, #0080ff 50%, #8000ff 100%);
  background-size: 200% 200%;
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.4),
    0 8px 25px rgba(0, 128, 255, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
  animation: neon-pulse 3s ease-in-out infinite;
  border: 1px solid rgba(0, 255, 255, 0.3);
}


.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.6),
    0 15px 40px rgba(0, 128, 255, 0.4);
}

@keyframes neon-pulse {
  0%, 100% { 
    background-position: 0% 50%; 
    box-shadow: 
      0 0 20px rgba(0, 255, 255, 0.4),
      0 8px 25px rgba(0, 128, 255, 0.3);
  }
  50% { 
    background-position: 100% 50%; 
    box-shadow: 
      0 0 30px rgba(0, 255, 255, 0.6),
      0 8px 25px rgba(128, 0, 255, 0.4);
  }
}

/* این باعث می‌شه حتی اگر اسم خیلی بلند باشه، مرورگر اونو تو چند خط بشکنه و هیچ وقت از عرض صفحه نزنه بیرون. */
.server-name-span {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}


@media (max-width: 640px) {
  header h1 {
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
  }
}

@media (max-width: 768px) {
  #particles-js { display: none !important; }
  .particle { display: none !important; animation: none !important; }

  .status-online { animation: none !important; }
  .cta-button { animation: none !important; }
  #homepage::before { animation: none !important; }

  .gaming-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(17, 24, 39, 0.95) !important;
  }

  .server-card,
  .gaming-table {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(17, 24, 39, 0.92) !important;
  }
}

.server-name-span {
    font-size: 14px !important; /* یا هر سایزی که می‌خوای */
}
.server-config {
    font-size: 13px !important;
}

.players-count {
    font-size: 13px !important;
}
