/* ========== BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: url('images/Backgrounddzpeek.jpg') no-repeat center center fixed;
  background-size: cover;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
body.banlist-page {
    padding: 20px;
    min-height: 100vh;
}

/* Background effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/Backgrounddzpeek.jpg') no-repeat center center fixed;
  background-size: cover;
  filter: blur(8px) brightness(0.7);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 20, 0.85);
  z-index: -1;
}

/* ========== SERVER CARD ========== */
.server-card {
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, 
    rgba(20, 20, 20, 0.9) 0%, 
    rgba(15, 15, 15, 0.95) 50%,
    rgba(10, 10, 10, 0.9) 100%);
  color: #ffffff;
  padding: 25px;
  border-radius: 15px;
  width: 100%;
  max-width: 1100px;
  box-shadow: 
    0 0 40px rgba(0, 0, 0, 0.9),
    0 8px 30px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  gap: 25px;
}

/* ========== LEFT SECTION ========== */
.server-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.server-header {
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.server-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #fff 0%, #8ab4f8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Orbitron', sans-serif;
  line-height: 1.2;
}

.server-meta {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Fix for flag inline with text */
.server-label-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-flag {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.server-label {
  color: #8ab4f8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.6rem;
}

.ip-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(138, 180, 248, 0.1);
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid rgba(138, 180, 248, 0.2);
  margin-top: 5px;
}

.ip-label {
  color: #8ab4f8;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.ip {
  color: #ffffff !important;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.5px;
  background: none !important;
  padding: 0 !important;
  border: none !important;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== ENHANCED FEATURES ========== */
.server-features {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.features-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2ecc71;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.features-title::before,
.features-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2ecc71, transparent);
}

.features-icon {
  font-size: 1.1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(30, 30, 30, 0.8);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #2ecc71, #8ab4f8);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  background: rgba(40, 40, 40, 0.9);
  border-color: rgba(46, 204, 113, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  transform: translateX(0);
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(138, 180, 248, 0.1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.feature-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.feature-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 2px;
}

.feature-desc {
  font-size: 0.8rem;
  color: #8ab4f8;
  opacity: 0.9;
  font-weight: 500;
  line-height: 1.3;
}

/* ========== RIGHT SECTION ========== */
.server-right-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 300px;
}

.server-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #2ecc71;
  border-radius: 50%;
  animation: blink 2s infinite;
  box-shadow: 0 0 8px #2ecc71;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2ecc71;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.player-count {
  display: flex;
  align-items: center;
  gap: 8px;
}

.players-icon {
  font-size: 1.1rem;
}

.players {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
}

/* ========== MAP SECTION ========== */
.map-section {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-label {
  font-size: 0.75rem;
  color: #8ab4f8;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.map-name {
  color: #2ecc71;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1rem;
  font-family: 'Orbitron', sans-serif;
  text-align: right;
}

.map-image-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.map-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.map-image:hover {
  transform: scale(1.05);
}

.map-stats {
  display: flex;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: #8ab4f8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.stat-value {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 800;
  font-family: 'Orbitron', sans-serif;
}

.stat-value.ping {
  color: #2ecc71;
}

/* ========== BUTTONS MOVED TO RIGHT SECTION ========== */
.server-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn:hover .btn-icon {
  transform: scale(1.1);
}

.btn-text {
  white-space: nowrap;
}

.connect-btn {
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
  border: 1px solid rgba(102, 192, 244, 0.3);
}

.connect-btn:hover {
  background: linear-gradient(135deg, #2a475e 0%, #1b2838 100%);
  border-color: rgba(102, 192, 244, 0.4);
}

.discord-btn {
  background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
  border: 1px solid rgba(114, 137, 218, 0.3);
}

.discord-btn:hover {
  background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
  border-color: rgba(114, 137, 218, 0.4);
}

.copy-btn {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  border: 1px solid rgba(113, 128, 150, 0.3);
}

.owner-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4655 100%);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.owner-btn:hover {
  background: linear-gradient(135deg, #ff4655 0%, #ff6b6b 100%);
  border-color: rgba(255, 107, 107, 0.4);
}

/* ========== COPY NOTIFICATION (OLD STYLE) ========== */
.copy-notification {
  position: fixed;
  top: 30px;
  right: 30px;
  background: linear-gradient(135deg, 
    rgba(46, 204, 113, 0.95) 0%, 
    rgba(39, 174, 96, 0.95) 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  transform: translateX(100px) translateY(-20px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
  box-shadow: 
    0 10px 30px rgba(46, 204, 113, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 200px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  pointer-events: none;
}

.copy-notification.show {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* ========== MODAL ========== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: linear-gradient(135deg, 
    rgba(30, 30, 30, 0.95) 0%, 
    rgba(20, 20, 20, 0.98) 100%);
  border-radius: 15px;
  width: 100%;
  max-width: 500px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: rgba(220, 53, 69, 0.15);
  border-bottom: 1px solid rgba(220, 53, 69, 0.2);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
}

.modal-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.modal-close {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ffffff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  background: rgba(220, 53, 69, 0.3);
  border-color: rgba(220, 53, 69, 0.5);
}

.modal-body {
  padding: 30px 20px;
  text-align: center;
}

.ban-list-info {
  color: #b0b0b0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.ban-list-info p {
  margin-bottom: 15px;
}

.modal-footer {
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.close-btn {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  border: 1px solid rgba(113, 128, 150, 0.3);
  min-width: 120px;
}

.close-btn:hover {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .server-card {
    flex-direction: column;
    max-width: 600px;
    gap: 20px;
  }
  
  .server-right-section {
    min-width: auto;
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .server-label-container {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .server-card {
    padding: 20px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .server-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .server-center {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .map-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .map-name {
    text-align: left;
  }
  
  .copy-notification {
    top: 20px;
    right: 20px;
    left: 20px;
    text-align: center;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .server-card {
    padding: 15px;
    border-radius: 12px;
  }
  
  .server-title {
    font-size: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .server-features {
    padding: 15px;
  }
  
  .server-buttons {
    grid-template-columns: 1fr;
  }
  
  .btn {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
  
  .btn-icon {
    width: 18px;
    height: 18px;
  }
  
  .map-image {
    height: 140px;
  }
  
  .server-label-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .ip-display {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .feature-card {
    padding: 12px;
  }
  
  .feature-icon-wrapper {
    width: 45px;
    height: 45px;
  }
  
  .feature-icon {
    font-size: 1.5rem;
  }
}