/* === CSS الموحد لكل صفحات الموقع === */

/* --- من index.ejs --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Almarai', sans-serif;
  background: linear-gradient(135deg, #0a0e1b 0%, #1a1a2e 50%, #16213e 100%);
  color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
  transition: opacity 0.3s ease-in-out;
  opacity: 1 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.loaded {
  opacity: 1 !important;
}
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: linear-gradient(45deg, #4e8cf3, #7b2ff2, #ff6b9d, #12c2e9);
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
}
.server-info-card {
  background: linear-gradient(135deg, #23243a 0%, #1a1a2e 100%);
  border-radius: 22px;
  box-shadow: 0 8px 32px 0 rgba(78,140,243,0.10), 0 1.5px 8px 0 rgba(123,47,242,0.10);
  padding: 36px 32px 28px 32px;
  margin-bottom: 32px;
  border: 1.5px solid rgba(78,140,243,0.18);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.server-info-card:hover {
  box-shadow: 0 12px 40px 0 rgba(78,140,243,0.18), 0 2px 12px 0 rgba(123,47,242,0.13);
}
.server-header {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 0;
}
.server-avatar img {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  border: 3px solid #4e8cf3;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(78,140,243,0.12);
}
.server-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.server-details h2 {
  font-size: 2.2em;
  font-weight: 900;
  margin-bottom: 0;
  color: #fff;
  letter-spacing: 0.5px;
}
.server-id {
  color: #7b2ff2;
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 0;
  margin-top: 2px;
  word-break: break-all;
}
.status-indicators {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}
.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #4e8cf3 30%, #7b2ff2 100%);
  color: #fff;
  font-size: 1em;
  font-weight: 700;
  border-radius: 12px;
  padding: 7px 22px 7px 16px;
  box-shadow: 0 2px 8px rgba(78,140,243,0.10);
  min-width: 120px;
  justify-content: center;
  border: none;
}
.status-badge .status-icon {
  font-size: 1.5em;
  border-radius: 50%;
  padding: 8px;
  margin-left: 6px;
  background: linear-gradient(135deg, rgba(78,140,243,0.22) 0%, rgba(123,47,242,0.18) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(78,140,243,0.10);
  transition: background 0.3s, color 0.3s;
}
.status-badge .fa-shield,
.status-badge .fa-users,
.status-badge .fa-hashtag {
  color: #fff;
}
.overview-stats-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px 0 0 0;
  justify-content: flex-start;
}
.stat-card {
  background: linear-gradient(135deg, #23243a 0%, #1a1a2e 100%);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(78,140,243,0.10);
  padding: 18px 22px 14px 22px;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.2px solid rgba(78,140,243,0.13);
  transition: box-shadow 0.2s;
  flex: 1 1 180px;
  max-width: 220px;
}
.stat-card:hover {
  box-shadow: 0 8px 32px rgba(78,140,243,0.16);
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg,rgba(78,140,243,0.18),rgba(123,47,242,0.13));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  color: #fff;
  box-shadow: 0 2px 8px rgba(78,140,243,0.10);
}
.stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-title {
  font-size: 1em;
  color: #7b2ff2;
  font-weight: 700;
  margin-bottom: 2px;
}
.stat-value {
  font-size: 1.25em;
  color: #fff;
  font-weight: 900;
}
@media (max-width: 700px) {
  .server-info-card {
    padding: 12px 4px 12px 4px;
    gap: 8px;
    border-radius: 14px;
  }
  .server-header {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
  }
  .server-avatar img {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    margin-bottom: 4px;
  }
  .server-details {
    align-items: center;
    text-align: center;
    gap: 2px;
  }
  .server-details h2 {
    font-size: 1.4em;
    margin-bottom: 0;
  }
  .server-id {
    font-size: 0.9em;
    margin-bottom: 0;
  }
  .status-indicators {
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
  }
  .status-badge {
    min-width: 100px;
    padding: 6px 16px 6px 12px;
    font-size: 0.9em;
  }
  .status-badge .status-icon {
    font-size: 1.2em;
    padding: 6px;
  }
  .overview-stats-cards {
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 0 0;
  }
  .stat-card {
    min-width: unset;
    max-width: unset;
    flex: 1;
    padding: 14px 16px 10px 16px;
  }
  .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 1.2em;
  }
  .stat-title {
    font-size: 0.9em;
  }
  .stat-value {
    font-size: 1.1em;
  }
}

/* إصلاحات خاصة لـ iPhone */
@media screen and (max-width: 414px) {
  body {
    -webkit-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .server-info-card {
    padding: 10px 2px 10px 2px !important;
    border-radius: 12px !important;
  }
  
  .server-details h2 {
    font-size: 1.2em !important;
  }
  
  .server-id {
    font-size: 0.8em !important;
  }
  
  .status-badge {
    min-width: 80px !important;
    padding: 5px 12px 5px 10px !important;
    font-size: 0.8em !important;
  }
  
  .stat-card {
    padding: 12px 14px 8px 14px !important;
  }
  
  .stat-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1.1em !important;
  }
  
  .stat-title {
    font-size: 0.85em !important;
  }
  
  .stat-value {
    font-size: 1em !important;
  }
}

/* إصلاحات خاصة لـ Safari على iOS */
@supports (-webkit-touch-callout: none) {
  body {
    -webkit-overflow-scrolling: touch !important;
  }
  
  .server-info-card {
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
  
  .stat-card {
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
}