/* ============================================
   Rusted Volkswagen - Modern Website Styles
   ============================================ */

:root {
  /* Color Palette */
  --primary: #ff6b35;           /* Vibrant rust orange */
  --primary-dark: #c94a1f;     /* Darker rust */
  --primary-light: #ff8c5a;    /* Lighter rust */
  --primary-glow: rgba(255, 107, 53, 0.3);
  --secondary: #2c3e50;        /* Dark blue-gray */
  --accent: #f77f00;           /* Bright orange accent */
  --success: #2ecc71;          /* Vibrant green */
  --warning: #f39c12;          /* Yellow */
  --danger: #e74c3c;           /* Red */
  
  /* Background Colors */
  --bg-primary: #0a0a0a;      /* Deeper black */
  --bg-secondary: #141414;    /* Dark gray */
  --bg-tertiary: #1e1e1e;     /* Medium gray */
  --bg-card: rgba(20, 20, 20, 0.6); /* Glassmorphism card */
  --bg-card-hover: rgba(30, 30, 30, 0.8);
  
  /* Text Colors */
  --text-primary: #ffffff;     /* White */
  --text-secondary: #c8c8c8;   /* Light gray */
  --text-muted: #8a8a8a;       /* Medium gray */
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #c94a1f 50%, #ff8c5a 100%);
  --gradient-primary-hover: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 50%, #c94a1f 100%);
  --gradient-bg: radial-gradient(ellipse at top, #1a0f0f 0%, #0a0a0a 50%, #0a0a0a 100%);
  --gradient-hero: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.15) 0%, rgba(0, 0, 0, 0.95) 70%);
  --gradient-card: linear-gradient(145deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.6));
  --gradient-glow: radial-gradient(ellipse at center, var(--primary-glow) 0%, transparent 70%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 8px 32px rgba(255, 107, 53, 0.3);
  --shadow-primary-lg: 0 16px 64px rgba(255, 107, 53, 0.4);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Animated background particles effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(255, 107, 53, 0.1), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255, 107, 53, 0.08), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 107, 53, 0.1), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 107, 53, 0.08), transparent);
  background-repeat: repeat;
  background-size: 200% 200%;
  background-position: 0% 0%;
  animation: backgroundShift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes backgroundShift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

/* Ensure content is above background */
body > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.text-rust {
  color: var(--primary) !important;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  background: rgba(10, 10, 10, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 107, 53, 0.2);
  transition: var(--transition-normal);
  padding: 1rem 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 107, 53, 0.1);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
}

.brand-logo {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary) !important;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  z-index: -1;
  animation: pulseGlow 4s ease-in-out infinite;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-glow);
  animation: rotate  20s linear infinite;
  opacity: 0.5;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.8; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 50%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 80px var(--primary-glow);
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 107, 53, 0.2);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
  transition: var(--transition-slow);
}

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: var(--shadow-primary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  text-align: center;
}

.hero-logo {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 60px var(--primary-glow));
  animation: float 4s ease-in-out infinite;
  transition: var(--transition-slow);
}

.hero-logo:hover {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 80px var(--primary-glow));
  transform: scale(1.05);
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
  }
  50% { 
    transform: translateY(-15px) rotate(2deg);
  }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  font-weight: 600;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  transition: var(--transition-normal);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-primary);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary-hover);
  transition: var(--transition-normal);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary-lg);
  color: white;
}

.btn-primary:hover::before {
  left: 0;
}

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

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
}

/* ============================================
   Sections
   ============================================ */

.servers-section,
.community-section,
.about-section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Server Cards
   ============================================ */

.server-card {
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 107, 53, 0.2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: var(--transition-normal);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.server-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.server-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-primary-lg), var(--shadow-xl);
  border-color: rgba(255, 107, 53, 0.5);
  background: var(--bg-card-hover);
}

.server-card:hover::before {
  transform: scaleX(1);
}

.server-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(10, 10, 10, 0.2));
  border-bottom: 1px solid rgba(255, 107, 53, 0.15);
  position: relative;
}

.server-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-normal);
}

.server-card:hover .server-header::after {
  opacity: 0.5;
}

.server-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.server-status.online {
  color: var(--success);
}

.server-status.offline {
  color: var(--danger);
}

.server-status i {
  font-size: 0.5rem;
}

.server-ping {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.server-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.server-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  position: relative;
}

.info-item i {
  width: 16px;
  color: var(--primary);
}

.server-address {
  flex: 1;
  min-width: 0;
}

.btn-copy-ip {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin-left: 0.5rem;
  transition: var(--transition-fast);
  opacity: 0;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item:hover .btn-copy-ip {
  opacity: 1;
}

.btn-copy-ip:hover {
  color: var(--primary);
  background: rgba(183, 65, 14, 0.1);
}

.btn-copy-ip:active {
  transform: scale(0.95);
}

.player-info {
  margin-bottom: 1.5rem;
}

.player-count {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.current-players {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.max-players {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.players-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.player-progress {
  margin-top: 0.5rem;
}

.progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  background: var(--gradient-primary);
  height: 100%;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.server-description {
  margin-bottom: 1.5rem;
}

.server-description p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.server-footer {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-connect {
  width: 100%;
  font-weight: 600;
  padding: 0.75rem 1rem;
}

/* ============================================
   Community Cards
   ============================================ */

.community-card {
  background: var(--gradient-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 107, 53, 0.2);
  padding: 2.5rem 2rem;
  transition: var(--transition-normal);
  height: 100%;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.community-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
  transition: var(--transition-slow);
}

.community-card:hover::before {
  left: 100%;
}

.community-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-primary-lg), var(--shadow-xl);
  border-color: rgba(255, 107, 53, 0.5);
  background: var(--bg-card-hover);
}

.community-icon {
  width: 90px;
  height: 90px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.25rem;
  color: white;
  box-shadow: var(--shadow-primary);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.community-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: iconShine 3s infinite;
}

@keyframes iconShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.community-card:hover .community-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-primary-lg);
}

.community-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.community-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ============================================
   About Section
   ============================================ */

.about-content {
  padding-right: 2rem;
}

.features-list {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-item i {
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.feature-item h5 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.about-image {
  text-align: center;
}

.image-placeholder {
  width: 100%;
  height: 300px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--bg-secondary);
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-text {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1rem;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* ============================================
   Modal
   ============================================ */

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
  color: var(--text-primary);
}

.btn-close {
  filter: invert(1);
}

.modal-body {
  color: var(--text-secondary);
}

.contact-links {
  margin-top: 1rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .hero-section {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 3rem;
  }
  
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
  
  .stat-item {
    padding: 1rem;
    flex: 1;
    min-width: 100px;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .footer-links {
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
  }
  
  .about-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .server-header {
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
  }
  
  .server-card {
    margin-bottom: 1.5rem;
  }
  
  .community-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .section-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  .server-card {
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
  }
  
  .server-header {
    padding: 1rem;
    flex-wrap: wrap;
  }
  
  .server-body {
    padding: 1.25rem;
  }
  
  .server-footer {
    padding: 1rem;
  }
  
  .community-card {
    margin-bottom: 1rem;
    padding: 1.5rem;
  }
  
  .stat-item {
    padding: 0.75rem;
    min-width: 80px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .navbar {
    padding: 0.75rem 0;
  }
  
  .navbar-brand img {
    height: 32px;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    min-height: 44px;
    touch-action: manipulation;
  }
  
  .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.05rem;
    min-height: 48px;
  }
  
  .hero-stats {
    gap: 0.75rem;
  }
  
  .stat-item {
    flex: 1 1 auto;
    min-width: 90px;
    max-width: 120px;
  }
  
  .community-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .servers-section,
  .community-section,
  .about-section {
    padding: 3rem 0;
  }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }

.overflow-hidden { overflow: hidden; }

/* ============================================
   Custom Scrollbar
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ============================================
   Server Filters
   ============================================ */

.server-filters {
  margin-bottom: 2rem;
}

.server-filters-container {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.filter-search-wrapper {
  flex: 1 1 auto;
  min-width: 280px;
  max-width: 400px;
}

.filter-controls-wrapper {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.server-filters .form-select-compact {
  min-width: 150px;
  font-size: 0.9rem;
  padding: 0.625rem 2rem 0.625rem 0.875rem;
}

.server-filters .form-select-compact option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.server-filters .input-group-compact {
  position: relative;
  width: 100%;
  display: flex;
  align-items: stretch;
}

.server-filters .input-group-compact > .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.server-filters .form-control,
.server-filters .form-select-compact {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 107, 53, 0.2);
  color: var(--text-primary);
  transition: var(--transition-fast);
  border-radius: var(--radius-md);
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
  height: auto;
  line-height: 1.5;
}

.server-filters .form-control:focus,
.server-filters .form-select-compact:focus {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.15rem var(--primary-glow), var(--shadow-primary);
  outline: none;
}

.server-filters .input-group-text {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-right: none;
  color: var(--primary);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.server-filters .form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
  font-size: 0.9rem;
}

.server-filters .input-group-compact .form-control {
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding-right: 2.75rem;
}

.btn-clear-search {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  z-index: 15;
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
  line-height: 1;
}

.btn-clear-search:hover {
  background: rgba(255, 107, 53, 0.15);
  color: var(--primary);
}

.btn-clear-search:active {
  transform: translateY(-50%) scale(0.9);
}

.btn-clear-search i {
  pointer-events: none;
}

.server-filters .form-select-compact {
  min-width: 150px;
  font-size: 0.9rem;
  padding: 0.625rem 2rem 0.625rem 0.875rem;
}

.server-filters .form-select-compact option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.no-results {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
}

.no-results i {
  opacity: 0.5;
}

/* ============================================
   Refresh Button & Indicator
   ============================================ */

.refresh-btn {
  transition: var(--transition-normal);
}

.refresh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.refresh-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 12px;
  height: 12px;
  background: var(--success);
  border-radius: 50%;
  z-index: 1000;
  transition: var(--transition-fast);
  box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-indicator i {
  display: none;
}

.refresh-indicator.refreshing {
  animation: pulse 1s ease-in-out infinite;
}

.refresh-indicator.refreshing i {
  animation: spin 1s linear infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   Notifications
   ============================================ */

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  color: white;
  font-weight: 500;
  min-width: 250px;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
}

.notification.notification-success {
  background: var(--success);
}

.notification.notification-error {
  background: var(--danger);
}

.notification.notification-info {
  background: #3498db;
}

.notification.show {
  transform: translateX(0);
}

/* ============================================
   Loading States
   ============================================ */

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

.server-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.server-card.loading .server-status {
  color: var(--text-muted);
}

/* ============================================
   Accessibility Improvements
   ============================================ */

.skip-to-main {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 10000;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) 0;
  transition: var(--transition-fast);
}

.skip-to-main:focus {
  top: 0;
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   Touch Interactions
   ============================================ */

@media (hover: none) and (pointer: coarse) {
  .server-card:active,
  .community-card:active {
    transform: scale(0.98);
  }
  
  .btn:active {
    transform: scale(0.95);
  }
  
  .btn-copy-ip {
    opacity: 1;
    min-width: 44px;
    min-height: 44px;
  }
  
  .server-card:hover {
    transform: none;
  }
  
  .community-card:hover {
    transform: none;
  }
}

/* ============================================
   Mobile Improvements
   ============================================ */

@media (max-width: 768px) {
  .server-filters {
    margin-bottom: 1.5rem;
  }
  
  .server-filters-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    max-width: 100%;
    padding: 0 0.75rem;
  }
  
  .filter-search-wrapper {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
  }
  
  .filter-controls-wrapper {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .server-filters .form-control,
  .server-filters .form-select-compact {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    min-height: 44px;
  }
  
  .server-filters .form-select-compact {
    width: 100%;
    min-width: 100%;
  }
  
  .server-filters .input-group-text {
    padding: 0.75rem 0.875rem;
    min-height: 44px;
  }
  
  .btn-clear-search {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
    right: 0.625rem;
  }
  
  .server-filters .input-group-compact .form-control {
    padding-right: 3.25rem;
  }
  
  .server-filters .input-group-compact {
    flex-wrap: nowrap;
  }
  
  .refresh-btn {
    width: 100%;
    margin-top: 0.5rem;
    min-height: 48px;
    font-size: 1rem;
  }
  
  .section-header {
    flex-wrap: wrap;
    padding: 0 0.75rem;
  }
  
  .section-header .refresh-btn {
    margin-top: 1rem;
    margin-left: 0 !important;
  }
  
  .info-item {
    flex-wrap: wrap;
    padding: 0.75rem 0;
    gap: 0.5rem;
  }
  
  .btn-copy-ip {
    opacity: 1;
    margin-left: auto;
    padding: 0.625rem;
    min-width: 44px;
    min-height: 44px;
    font-size: 1rem;
  }
  
  .refresh-indicator {
    bottom: 16px;
    right: 16px;
    width: 12px;
    height: 12px;
  }
  
  .notification {
    right: 16px;
    left: 16px;
    top: 90px;
    min-width: auto;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
  }
  
  .server-filters .input-group {
    flex-wrap: nowrap;
  }
}

@media (max-width: 576px) {
  .server-filters .row {
    margin-bottom: 0;
  }
  
  .server-filters .col-md-6,
  .server-filters .col-md-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}