* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* UNIVERSAL LAYOUT FIX - This ensures footer positioning works on ALL pages */
html {
  height: 100%;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #0d0a1a;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* Main content should take up available space with better spacing */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem; /* Add padding to all main content */
  max-width: 1400px; /* Prevent content from getting too wide */
  margin: 0 auto; /* Center content */
  width: 100%;
  padding-top:0;
  padding-bottom: 0;
}

/* Navbar - more spacious */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 3rem; /* Increased padding */
  background: #0d0a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  margin: 0 auto;
  width: 100%;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem; /* Slightly larger */
  display: flex;
  align-items: center;
  color: white;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem; /* More space between elements */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem; /* More space between nav items */
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #ccc;
  font-weight: 600;
  font-size: 1.1rem; /* Slightly smaller for better proportion */
  padding: 0.8rem 1.5rem; /* Better padding */
  border-radius: 10px;
  transition: all 0.25s ease;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
  color: white;
}

/* User info in navbar */
.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem; /* Better padding */
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: background-color 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.user-info:hover {
  background: rgba(255, 255, 255, 0.08);
}

.user-info-clickable {
  display: flex;
  align-items: center;
  gap: 0.8rem; /* More space */
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.user-info-clickable:hover {
  transform: scale(1.02);
}

.profile-pic {
  width: 36px; /* Slightly larger */
  height: 36px;
  border-radius: 50%;
  border: 2px solid #a56dff;
  object-fit: cover;
  transition: border-color 0.3s ease;
}

.user-info-clickable:hover .profile-pic {
  border-color: #d100ff;
}

.username {
  color: white;
  font-weight: 600;
  font-size: 1rem; /* Slightly larger */
  transition: color 0.3s ease;
}

.user-info-clickable:hover .username {
  color: #a56dff;
}

.logout-btn {
  background: rgba(165, 109, 255, 0.2);
  border: 1px solid #a56dff;
  color: #a56dff;
  padding: 0.6rem 1rem; /* Better padding */
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: #a56dff;
  color: white;
}

.twitchLogin {
  background-color: #a56dff;
  border: none;
  padding: 0.8rem 1.8rem; /* More padding */
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.twitchLogin:hover {
  background-color: #8342f4;
}

/* UNIVERSAL FOOTER - Updated with new social links */
.footer {
  flex-shrink: 0;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #aaa;
  font-size: 0.95rem;
  flex-wrap: wrap;
  padding: 1.2rem 1rem; /* More padding */
  background: #0d0a1a;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  width: 100%;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* More space between icons */
}

.footer-left a {
  color: #ccc;
  font-size: 1.3rem; /* Slightly larger icons */
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.footer-left a:hover {
  color: #a56dff;
  background: rgba(165, 109, 255, 0.1);
  transform: translateY(-2px);
}

/* Specific icon colors on hover */
.footer-left a[href*="twitch"]:hover {
  color: #9146ff;
  background: rgba(145, 70, 255, 0.1);
}

.footer-left a[href*="github"]:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.footer-left a[href*="discord"]:hover {
  color: #5865f2;
  background: rgba(88, 101, 242, 0.1);
}

.footer-left a[href*="instagram"]:hover {
  color: #e1306c;
  background: rgba(225, 48, 108, 0.1);
}

.footer-right {
  margin-top: 0.5rem;
}

/* CONTENT CONTAINERS - Better spacing */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem; /* More padding */
  min-height: 70vh; /* Slightly taller */
}

.stats-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem; /* More space between cards */
  flex-wrap: wrap;
  padding: 4rem 2rem; /* Better padding */
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 70vh;
}

.faq-container {
  flex: 1;
  padding: 2rem 0; /* Reduced since main-content has padding now */
  max-width: 1000px;
  margin: 0 auto;
}

.commands-header {
  flex-shrink: 0;
  margin-bottom: 2rem; /* Better spacing */
}

.commands-grid {
  flex: 1;
  padding: 0; /* Remove padding since main-content has it */
}

/* Loading and error states - better spacing */
.loading-container,
.error-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  text-align: center;
  padding: 3rem; /* Reduced since main-content has padding */
}

/* Profile and settings pages - better spacing */
.profile-hero,
.config-hero {
  flex: 1;
  padding: 2rem 0; /* Reduced since main-content has padding */
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.spotify-hero {
  flex: 1;
  padding: 2rem 0; /* Reduced since main-content has padding */
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Responsive design - better mobile spacing */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-right {
    gap: 1rem;
  }
  
  .user-info .username {
    display: none;
  }
  
  .footer {
    flex-direction: column;
    text-align: center;
    padding: 20px 25px;
  }
  
  .footer-left {
    margin-bottom: 1rem;
    justify-content: center;
  }
  
  .footer-right {
    margin-top: 0;
  }
  
  .hero {
    min-height: 60vh;
    padding: 2rem 1rem;
  }
  
  .stats-container {
    min-height: 60vh;
    padding: 2rem 1rem;
    gap: 2rem;
  }
  
  .faq-container {
    padding: 1rem 0;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 1rem;
  }
  
  .main-content {
    padding: 0.5rem;
  }
  
  .footer-left {
    gap: 1rem;
  }
  
  .footer-left a {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
  
  .hero {
    padding: 1.5rem 0.5rem;
  }
  
  .stats-container {
    padding: 1.5rem 0.5rem;
  }
}