body {
  background-color: #3B3131;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}


/* ===== Tablet (768px and below) ===== */
@media (max-width: 768px) {
  .navigation-bar {
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 8px;
    padding: 10px 10px;
  }

  .discord_button,
  .support-button,
  .login_button {
    transform: scale(0.9);
    padding: 6px 10px;
  }
}

/* ===== Smaller Tablet (700px) ===== */
@media (max-width: 700px) {

  .discord_button,
  .support-button,
  .login_button {
    transform: scale(0.8);
  }
}


/* ===== Compact Icon Buttons (480px and below) ===== */
@media (max-width: 480px) {
  .navigation-bar {
    gap: 4px;
  }

  .discord_button,
  .support-button,
  .login_button {
    min-width: 24px;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Only show the icon */
  .discord_button>*:not(.discord-icon),
  .support-button>*:not(.kofi-icon),
  .login_button>*:not(.login-icon) {
    display: none;
  }
}





.welcome-box {
  text-align: center;
  padding: 20px;
  background: #36393f;
  border-radius: 8px;
  max-width: 300px;
  margin: 20px auto;
}


/* Add to your existing CSS */
header.main-content {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  /* Fixed height */
}

.main-page-content {
  margin-top: 80px;
  /* Push content below fixed header */
  min-height: calc(100vh - 80px);
  /* Full viewport minus header */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  padding-top: 0;
  /* Remove extra top padding */
}


/* Modern Discord Profile Styles */
.user-profile-container {
  display: flex;
  align-items: center;
  margin-left: 20px;
  position: relative;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 50px;
  background: rgba(114, 137, 218, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.user-profile:hover {
  background: rgba(114, 137, 218, 0.2);
  transform: translateY(-2px);
}

.user-profile:active {
  transform: translateY(0);
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #7289da;
  object-fit: cover;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(114, 137, 218, 0.3);
}

.user-profile:hover .user-avatar {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(114, 137, 218, 0.4);
}

.username {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-shadow: 0 0 8px rgba(114, 137, 218, 0.5);
}

.user-profile:hover .username {
  color: #b9c4ff;
}

/* Status Indicator */
.user-avatar-container {
  position: relative;
}

.status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3ba55c;
  /* Online green */
  border: 2px solid #2f3136;
  transition: all 0.3s ease;
}

.user-profile:hover .status-indicator {
  transform: scale(1.2);
}

/* Dropdown Arrow */
.dropdown-arrow {
  margin-left: 4px;
  transition: transform 0.3s ease;
  opacity: 0.8;
}

.user-profile:hover .dropdown-arrow {
  transform: translateY(2px);
  opacity: 1;
}

/* Profile Popout (Optional) */
.user-profile-container:hover .profile-popout {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-popout {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: #2f3136;
  border-radius: 8px;
  padding: 16px;
  width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid rgba(114, 137, 218, 0.2);
}

/* Larger Avatar View */
.discord-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #7289da;
  object-fit: cover;
  box-shadow:
    0 0 0 8px rgba(32, 34, 37, 0.6),
    /* Expanded grey ring */
    0 8px 24px rgba(0, 0, 0, 0.3);
}

.discord-avatar:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 0 5px rgba(114, 137, 218, 0.3),
    0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .user-profile {
    padding: 6px 10px;
    gap: 8px;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
  }

  .username {
    font-size: 0.85rem;
  }
}


/* Profile Overlay Styles */
.profile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(59, 49, 49, 0.9);
  /* #3B3131 with transparency */
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.profile-card {
  background-color: #34282C;
  /* Header background color */
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  padding: 30px;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(114, 137, 218, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.profile-overlay.active .profile-card {
  transform: translateY(0);
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #7289da, #b9c4ff);
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #7289da;
  object-fit: cover;
  margin-bottom: 15px;
  box-shadow: 0 4px 20px rgba(114, 137, 218, 0.4);
  transition: transform 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
}

.profile-name {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-align: center;
}

.profile-username {
  color: #b9c4ff;
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 20px;
}

.profile-details {
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.profile-detail {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(114, 137, 218, 0.1);
}

.profile-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.profile-detail svg {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  fill: #7289da;
}

.close-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-overlay:hover {
  color: white;
}

.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.profile-btn {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-btn-primary {
  background-color: #7289da;
  color: white;
}

.profile-btn-primary:hover {
  background-color: #5d6fbe;
  transform: translateY(-2px);
}

.profile-btn-secondary {
  background-color: rgba(114, 137, 218, 0.1);
  color: #b9c4ff;
}

.profile-btn-secondary:hover {
  background-color: rgba(114, 137, 218, 0.2);
}

/* Add this to your existing media query */
@media (max-width: 768px) {
  .profile-card {
    padding: 20px;
    width: 95%;
  }

  .profile-avatar {
    width: 80px;
    height: 80px;
  }

  .profile-name {
    font-size: 1.3rem;
  }
}

/* Profile Overlay Styles */
.profile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(59, 49, 49, 0.9);
  /* #3B3131 with transparency */
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.profile-card {
  background-color: #34282C;
  /* Header background color */
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  padding: 30px;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(114, 137, 218, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.profile-overlay.active .profile-card {
  transform: translateY(0);
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #7289da, #b9c4ff);
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #7289da;
  object-fit: cover;
  margin-bottom: 15px;
  box-shadow: 0 4px 20px rgba(114, 137, 218, 0.4);
  transition: transform 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
}

.profile-name {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-align: center;
}

.profile-username {
  color: #b9c4ff;
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 20px;
}

.profile-details {
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.profile-detail {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(114, 137, 218, 0.1);
}

.profile-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.profile-detail svg {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  fill: #7289da;
}

.close-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-overlay:hover {
  color: white;
}

.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

/* Modern Button Styles */
.profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.profile-btn {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* View Profile Button */
.profile-btn-primary {
  background-color: #7289da;
  color: white;
  box-shadow: 0 2px 10px rgba(114, 137, 218, 0.3);
}

.profile-btn-primary:hover {
  background-color: #677bc4;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(114, 137, 218, 0.4);
}

.profile-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(114, 137, 218, 0.3);
}

/* Logout Button */
.logout-btn {
  background: linear-gradient(135deg, #ed4245, #d83c3f);
  color: white;
  box-shadow: 0 2px 10px rgba(237, 66, 69, 0.2);
}

.logout-btn:hover {
  background: linear-gradient(135deg, #d83c3f, #c03537);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(237, 66, 69, 0.3);
}

.logout-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(237, 66, 69, 0.2);
}

/* Ripple Effect for Both Buttons */
.profile-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.profile-btn:focus:not(:active)::after {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }

  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Button Icons */
.profile-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.profile-btn:hover svg {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-actions {
    flex-direction: column;
    gap: 10px;
  }

  .profile-btn {
    padding: 10px;
    font-size: 0.9rem;
  }

  .profile-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Simplified header - keeps only logo */
.header-simplified .nav-list>li:not(:first-child),
.header-simplified .nav-list-right>li {
  display: none;
}

/* Keep logo aligned left */
.header-simplified .header-content {
  padding: 0.5rem 1rem;
  justify-content: flex-start;
  /* Changed from center to flex-start */
}

.header-simplified .navigation-bar {
  justify-content: flex-start;
  /* Changed from center to flex-start */
}

/* Optional: Add some left margin if needed */
.header-simplified .nav-list {
  margin-left: 1rem;
}



.notification {
  position: fixed;
  bottom: 25px;
  right: 25px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(52, 40, 44, 0.95);
  color: #f5e6c8;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(120px) scale(0.95);
  opacity: 0;
  transition:
    transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.5s ease-out;
  z-index: 9999;
  border-left: 4px solid #d4af37;
  max-width: 360px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, rgba(212, 175, 55, 0.5));
  opacity: 0.8;
}

.notification.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.notification.success {
  background: rgba(59, 49, 49, 0.95);
  border-left-color: #a3c14a;
}

.notification.success::before {
  background: linear-gradient(90deg, #a3c14a, rgba(163, 193, 74, 0.5));
}

.notification.error {
  background: rgba(59, 49, 49, 0.95);
  border-left-color: #e74c3c;
}

.notification.error::before {
  background: linear-gradient(90deg, #e74c3c, rgba(231, 76, 60, 0.5));
}

.notification-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: #d4af37;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.3));
}

.notification.success .notification-icon {
  fill: #a3c14a;
}

.notification.error .notification-icon {
  fill: #e74c3c;
}

.notification-close {
  margin-left: auto;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  color: #f5e6c8;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-close:hover {
  opacity: 1;
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.notification-message {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.02em;
}

.notification-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Entrance animation */
@keyframes notificationIn {
  0% {
    transform: translateY(120px) scale(0.95);
    opacity: 0;
  }

  80% {
    transform: translateY(-10px) scale(1.02);
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Exit animation */
@keyframes notificationOut {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  20% {
    transform: translateY(-10px) scale(1.02);
  }

  100% {
    transform: translateY(120px) scale(0.95);
    opacity: 0;
  }
}

.notification.visible {
  animation: notificationIn 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.notification.hiding {
  animation: notificationOut 0.6s cubic-bezier(0.6, -0.05, 0.74, 0.05) forwards;
}

/* Glow effect for important notifications */
.notification.important {
  box-shadow:
    0 8px 32px rgba(212, 175, 55, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.important::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 14px;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

/* Progress bar for auto-dismiss notifications */
.notification.progress::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, rgba(212, 175, 55, 0.5));
  transform-origin: left;
  animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
  0% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}




/* Discord Login Styles */
.discord-login-btn {
  width: 100%;
  max-width: 300px;
  margin: 1.5rem auto;
  padding: 14px;
  background: #5865F2;
  /* Discord blurple */
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.login-box {
  background: #2f3136;
  /* Discord-style dark box */
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  margin: 0 auto;
}




.discord-login-btn:hover {
  background: #4752C4;
  /* Darker blurple */
}

.discord-icon {
  flex-shrink: 0;
}

.discord-auth-text {
  color: #b9bbbe;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.login-footer {
  color: #72767d;
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

.login-footer a {
  color: #00aff4;
  text-decoration: none;
}

/* Login Section Styles */
.login-section {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.login-logo {
  width: 80px;
  margin-bottom: 1rem;
}

.login-section h2 {
  font-family: 'Luckiest Guy', cursive;
  color: white;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.input-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ddd;
}

.input-group input {
  width: 100%;
  padding: 12px;
  background: #3a3a4a;
  border: 1px solid #4a4a5a;
  border-radius: 6px;
  color: white;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: #4e44ce;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 1rem;
  cursor: pointer;
}



.login-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
}

.login-links a {
  color: #4e44ce;
  font-size: 0.9rem;
}

/* Discord Login Styles */
.discord-login-btn {
  width: 100%;
  max-width: 300px;
  margin: 1.5rem auto;
  padding: 14px;
  background: #5865F2;
  /* Discord blurple */
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.discord-login-btn:hover {
  background: #4752C4;
  /* Darker blurple */
}

.discord-icon {
  flex-shrink: 0;
}

.discord-auth-text {
  color: #b9bbbe;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.login-footer {
  color: #72767d;
  font-size: 0.8rem;
  margin-top: 1.5rem;
}

.login-footer a {
  color: #00aff4;
  text-decoration: none;
}

.header-content {
  flex-shrink: 0;
  background-color: #34282C;
  color: white;
  height: 80px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.navigation-bar {
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 100px;
  padding-left: 0;
}


.search-container {
  position: relative;

}

.search-wrapper {
  position: relative;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}


.search-bar {
  padding: 10px 15px 10px 40px;
  /* Increased padding for better touch */
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  color: white;
  border-radius: 8px;
  /* Smoother corners */
  width: 220px;
  /* Slightly wider */
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-bar:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 4px 15px rgba(0, 0, 0, 0.2);
  width: 240px;
  /* Gentle expansion on focus */
}

.search-bar:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.12);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.8;
  transition: all 0.3s ease;
  width: 18px;
  height: 18px;
}

.search-wrapper:focus-within .search-icon {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.search-bar::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease;
}

.search-bar:focus::placeholder {
  opacity: 0.5;
}

/* Micro-interaction for search icon when typing */
.search-bar:not(:placeholder-shown)+.search-icon {
  transform: translateY(-50%) rotate(10deg) scale(1.05);
}


.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  width: 400px;
  max-height: none;
  /* Let it grow dynamically */
  padding: 0;
  margin-top: 5px;
  border: none;
  border-radius: 8px;
  list-style: none;
  font-family: 'Arial', sans-serif;
  color: #fff;
  background-color: #2e2229;
  /* Solid dark background */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  /* Nice subtle drop shadow */
  isolation: isolate;
  /* Ensure pseudo-elements don’t bleed through */
  overflow: hidden;
  /* Clip children if needed */
}


/* Solid opaque background layer to remove blur */
.autocomplete-results::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2d232a;
  z-index: -1;
  border-radius: 8px;
}

.autocomplete-meta>div {
  margin-bottom: 3px;
  /* or more/less depending on spacing you want */
}





.autocomplete-item {
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid #3c2f36;
  transition: background 0.2s ease;
}

.autocomplete-item:last-child {
  border-bottom: none;
}


.autocomplete-avatar {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #ffdd57;
  /* thin yellow ring */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


.autocomplete-avatar img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
  object-fit: cover;
}


.autocomplete-info {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}


.autocomplete-username {
  color: #bbb;
  font-size: 12px;
}

.autocomplete-meta {
  font-size: 11px;
  color: #aaa;
}

/* Modern Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
}

.status-badge.online {
  background-color: rgba(0, 230, 118, 0.1);
  color: #00e676;
}

.status-badge.online .status-dot {
  background-color: #00e676;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
}

.status-badge.offline {
  background-color: rgba(255, 77, 79, 0.1);
  color: #ff4d4f;
}

.status-badge.offline .status-dot {
  background-color: #ff4d4f;
}

/* Modern User Card */
.autocomplete-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  transition: all 0.2s ease;
  border-radius: 8px;
  cursor: pointer;
}

.relative-time {
  font-weight: bold;
  color: white;
}

.server-name {
  font-weight: bold;
  color: white;
}


.autocomplete-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.autocomplete-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 16px;
  flex-shrink: 0;
}

.autocomplete-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.autocomplete-item:hover .autocomplete-avatar img {
  transform: scale(1.05);
}

.autocomplete-info {
  flex: 1;
  min-width: 0;
}

.autocomplete-name {
  font-weight: 600;
  font-size: 1rem;
  color: #ffdd57;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-username {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.autocomplete-meta br {
  display: none;
}

.last-login {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.autocomplete-item.no-results {
  text-align: center;
  padding: 6px 8px;
  font-size: 0.75rem;
  /* smaller text */
  color: #888;
  font-style: italic;
  user-select: none;
}



.search-container {
  position: relative;
}



/* Ensure all nav items use the same alignment */
.nav-list>li {
  display: flex;
  align-items: center;
  /* Vertical alignment */
  height: 100%;
  /* Take full navbar height */
}

/* Standardize link structure */
.nav-list a.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Space between icon and text */
  height: 100%;
}

/* Fix for SVG icons - force same dimensions */
.nav-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  /* Prevent scaling */
}

/* Specific fix for server icon if needed */
.server-icon {
  position: relative;
  top: 1px;
  /* Micro-adjustment if still misaligned */
}

nav a.nav-link {
  position: relative;
  text-decoration: none;
}


/* Modern Underline Animation with Server Colors */
nav a.nav-link {
  position: relative;
  overflow: hidden;
  padding-bottom: 4px;
  /* Space for underline */
}

nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #786969, #A89F94);
  /* Warm orange-yellow gradient */
  transform: scaleX(0);
  /* Start with no width */
  transform-origin: right center;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  /* Smooth easing */
  will-change: transform;
  /* Performance optimization */
}

/* Hover effect */
nav a.nav-link:hover::after {
  transform: scaleX(1);
  /* Full width */
  transform-origin: left center;
}

/* Active link effect */
nav a.nav-link.active::after {
  transform: scaleX(1);
  background: #786969;
  /* Solid gold color for active state */
}

/* Optional: Different animation direction */
nav a.nav-link.alternate::after {
  transform-origin: center;
}

nav a.nav-link.alternate:hover::after {
  transform: scaleX(1);
}

/* Active page underline (permanent) */
nav a.nav-link.active::after {
  width: 100%;
  /* Full width */
  left: 0;
  /* Reset position */
  transform: none;
  /* Remove centering */
}

.nav-link {
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
}




.nav-list,
.nav-list-right {
  display: flex;
  align-items: center;
  gap: 50px;
  padding-left: 0;
}

.nav-list img {
  height: 70px;
  /* Optimized size */
  width: auto;
  max-width: 100px;
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  /* Bouncy animation */
  filter:
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) brightness(1.05);
  /* Slight glow */
  transform-style: preserve-3d;
  /* Enable 3D effects */
}

.nav-list img:hover {
  transform:
    scale(1.1) translateY(-3px) rotateY(10deg);
  /* Subtle 3D tilt */
  filter:
    drop-shadow(0 6px 12px rgba(88, 101, 242, 0.4))
    /* Colored glow */
    brightness(1.1);

}

@keyframes float {

  0%,
  100% {
    transform: scale(1.1) translateY(-3px) rotateY(10deg);
  }

  50% {
    transform: scale(1.1) translateY(-6px) rotateY(10deg);
  }
}

/* Optional: Add a reflection effect */
.nav-list img::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.3),
      rgba(255, 255, 255, 0));
  transform:
    scaleY(0.5) rotateX(60deg) translateZ(-10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-list img:hover::after {
  opacity: 0.6;
}

/* Logo Container */

/* Logo Image */


.nav-list li,
.nav-list-right li {
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.about-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
  /* Space between icon and text */
  opacity: 0.9;
}

.nav-item {
  display: flex;
  align-items: center;
}






.nav-list-right a {
  text-decoration: none;
}


/* Shared button styles - modern redesign */
.discord_button,
.support-button,
.login_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.8px;
  font-size: 0.8rem;
  height: 36px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateZ(0);
  /* Enable GPU acceleration */
}

/* Hover effects for all buttons */
.discord_button:hover,
.support-button:hover,
.login_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Active/click effects */
.discord_button:active,
.support-button:active,
.login_button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Discord button - modern gradient */
.discord_button {
  background: #34282C;
  color: #ccc;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease;
}

.discord_button:hover {
  background: #5865f2;
  color: #fff;
}


.discord_button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.discord_button:hover::before {
  opacity: 1;
}

/* Ko-fi button - modern gradient */
.support-button {
  background: linear-gradient(135deg, #29ABE0 0%, #1FC6C6 100%);
}

.support-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s ease;
}

.support-button:hover::after {
  transform: scale(1);
}

/* Login button - glass morphism effect */
.login_button {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease, backdrop-filter 0.4s ease;
}

.login_button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Button icons */
.discord_button svg,
.support-button svg,
.login_button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

/* Icon animations on hover */
.discord_button:hover svg {
  transform: scale(1.1) rotate(5deg);
}

.support-button:hover svg {
  transform: scale(1.1) translateX(2px);
}

.login_button:hover svg {
  transform: scale(1.1);
}

/* Ripple effect for all buttons */
.discord_button::after,
.support-button::after,
.login_button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.discord_button:focus:not(:active)::after,
.support-button:focus:not(:active)::after,
.login_button:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }

  100% {
    transform: scale(25, 25);
    opacity: 0;
  }
}



/* Responsive adjustments */
@media (max-width: 1200px) {

  .nav-list,
  .nav-list-right {
    gap: 20px;
    /* Slightly reduce gap on smaller screens */
  }
}

@media (max-width: 992px) {
  .nav-list li:first-child {
    margin-right: 20px;
    /* Reduce logo spacing */
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .discord_button,
  .support-button,
  .login_button {
    padding: 10px 18px;
    font-size: 0.85rem;
    height: 40px;
  }
}


.server-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-icon {
  opacity: 0.9;
  transition: transform 0.2s;
}

.server-item:hover .server-icon {
  transform: scale(1.1);
  opacity: 1;
}


.kofi-icon {
  width: 16px;
  height: 16px;
}

.support-link {
  text-decoration: none;
}


.nav-home {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  /* Removes pointer cursor */
}

.home-icon {
  width: 22px;
  /* Increased from 18px */
  height: 22px;
  vertical-align: middle;
  transition: transform 0.2s;
}

/* Optional hover effect */
.nav-home:hover .home-icon {
  transform: scale(1.05);
}


.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2c3e50;
  color: white;
  padding: 15px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: none;
  /* Hidden by default */
  align-items: center;
  justify-content: center;
}

.cookie-content {
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  gap: 15px;
}

.cookie-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.cookie-text {
  flex-grow: 1;
  font-size: 14px;
  line-height: 1.4;
}

.cookie-text p {
  margin: 0;
}

.cookie-button {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.cookie-button:hover {
  background: #2980b9;
}

/* --- Mobile Hamburger Styles --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 24px;
  cursor: pointer;
  margin-left: auto;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  width: 100%;
}

nav {
  transform: translateZ(0);
  will-change: transform;
  z-index: 10;
}

.nav-list li,
.nav-list-right li {
  white-space: nowrap; /* ⬅ prevents breaking into two lines */
}

.user-profile-container {
  max-width: 200px; /* You can adjust */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.username {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-list,
.nav-list-right {
  gap: 40px; /* Reduced from 100px */
}


@media (max-width: 1200px) {
  .username {
    max-width: 80px;
  }

  .nav-list,
  .nav-list-right {
    gap: 20px;
  }
}




/* --- Mobile Menu --- */
@media screen and (max-width: 1000px) {
  .hamburger {
    display: flex;
    margin-left: auto;
    z-index: 1100;
    padding: 10px;
  }



  /* When the login button is hidden, also hide the container */
  .login-button-container:has(.login_button[style*="display: none"]) {
    display: none !important;
  }

  .nav-menus {
    display: none;
    flex-direction: column;
    background-color: #2a2a2e;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    padding: 20px;
    z-index: 1050;
    border-top: 1px solid #444;
    overflow-y: auto;
  }

  .nav-menus.show {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 100vh;
    /* ✅ Fixes small scroll height */
    overflow-y: auto;
  }

  /* Reset both nav lists */
  .nav-list li,
  .nav-list-right li {
    min-height: 48px;
    padding: 12px 0;
    border-bottom: 1px solid #3d3d42;
    align-items: center;
  }



  /* Remove last border */
  .nav-list li:last-child,
  .nav-list-right li:last-child {
    border-bottom: none;
  }

  .nav-list li:first-child img {
    max-width: 150px;
    height: auto;
  }


  .user-profile-container {
    width: fit-content;
    max-width: 100%;
    margin-left: 0;
    display: inline-flex;
    /* ⬅ important: prevents it from stretching */
  }

  .user-profile {
    background: rgba(114, 137, 218, 0.1);
    padding: 8px 12px;
    border-radius: 50px;
    display: inline-flex;
    /* ⬅ prevent auto-stretch */
    align-items: center;
    gap: 12px;
  }



  .search-container,
  .notification-bell-container {
    display: none !important;
  }



  /* Nav links styling */
  .nav-link {
    min-height: 44px;
    align-items: center;
    padding: 8px 12px;
    width: 100%;
  }


  /* Space between main nav and right nav */
  .nav-list+.nav-list-right {
    border-top: 1px solid #444;
  }

  .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
}

/* Ensure menu is shown again on desktop */
@media screen and (min-width: 1000px) {
  .nav-menus {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: static;
    background-color: transparent;
    padding: 0;
    border-top: none;
  }

  .hamburger {
    display: none;
  }
}


/* Ensure the user profile and username stay clean and responsive */
@media (max-width: 1100px) {
  .user-profile-container {
    max-width: 140px !important;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .username {
    max-width: 80px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discord_button {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
  }

  .nav-list,
  .nav-list-right {
    gap: 20px !important;
  }
}

/* Optional: Hide username completely on smaller screens */
@media (max-width: 850px) {
  .username {
    display: none !important;
  }
}


@media (max-width: 1600px) {
  .nav-list,
  .nav-list-right {
    gap: 30px !important; /* Reduce spacing */
  }

  .search-bar {
    width: 180px; /* Shrink search bar */
    font-size: 0.85rem;
  }

  .discord_button,
  .support-button,
  .login_button {
    padding: 6px 10px;
    font-size: 0.75rem;
    transform: scale(0.95);
  }

  .user-profile-container {
    max-width: 140px !important;
    flex-shrink: 1;
  }

  .username {
    max-width: 70px !important;
    font-size: 0.8rem;
  }
}

@media (max-width: 1600px) {
  .nav-list,
  .nav-list-right {
    gap: 32px !important; /* Balanced spacing */
  }

  .navigation-bar {
    width: 95%; /* Reduce the unnecessary margin left/right */
  }

  .nav-list {
    margin-left: 8px; /* Pull logo closer to the left edge */
  }

  .nav-list a.nav-link {
    font-size: 12px; /* Reduce font size slightly */
  }

  .discord_button {
    padding: 6px 10px;
    font-size: 11px;
    transform: scale(0.95);
    margin-left: 20px; /* Adds space between "Liste des Bugs" and button */
  }

  .user-profile-container {
    max-width: 150px;
    overflow: hidden;
  }

  .username {
    max-width: 90px;
    font-size: 0.8rem;
  }
}


.login_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.login_button svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.login_button span {
  display: inline-block;
  line-height: 1;
  padding-top: 3px;
  vertical-align: middle;
}
