/* MineHubX - Main CSS */

/* CSS Variables for Theme */
:root {
  /* Dark Theme Colors */
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --accent-primary: #4caf50; /* Minecraft green */
  --accent-secondary: #2e7d32;
  --accent-tertiary: #8bc34a;
  --primary-color: #4caf50;
  --primary-color-dark: #2e7d32;
  --primary-color-light: #8bc34a;
  --primary-color-rgb: 76, 175, 80; /* RGB values for rgba() usage */
  --danger: #f44336;
  --warning: #ff9800;
  --success: #4caf50;
  --info: #2196f3;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 3rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: var(--space-lg);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-tertiary);
}

button, .btn {
  cursor: pointer;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  border: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  background-color: var(--accent-primary);
  color: var(--text-primary);
}

button:hover, .btn:hover {
  background-color: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

button:active, .btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
}

.btn-danger {
  background-color: var(--danger);
}

.btn-danger:hover {
  background-color: #d32f2f;
}

input, select, textarea {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--bg-secondary);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header */
header {
  background: linear-gradient(135deg,
    rgba(30, 30, 30, 0.95) 0%,
    rgba(45, 45, 45, 0.95) 50%,
    rgba(30, 30, 30, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4),
              0 0 20px rgba(76, 175, 80, 0.1);
  padding: var(--space-sm) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition-normal);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg,
    rgba(76, 175, 80, 0.3),
    rgba(139, 195, 74, 0.5),
    rgba(76, 175, 80, 0.3)) 1;
}

header:hover {
  border-image: linear-gradient(90deg,
    rgba(76, 175, 80, 0.6),
    rgba(139, 195, 74, 0.8),
    rgba(76, 175, 80, 0.6)) 1;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5),
              0 0 25px rgba(76, 175, 80, 0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: -0.5px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.logo:hover {
  transform: scale(1.05);
  color: var(--accent-tertiary);
}

.logo-icon {
  margin-right: var(--space-sm);
  font-size: 1.2em;
  color: var(--accent-primary);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.logo span {
  color: var(--text-primary);
  background: linear-gradient(90deg, var(--text-primary), #8bc34a);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* Navigation Container */
.nav-container {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
  text-decoration: none;
  background: linear-gradient(135deg, transparent, transparent);
  border: 1px solid transparent;
}

.nav-link i {
  font-size: 1.1em;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: linear-gradient(135deg,
    rgba(76, 175, 80, 0.1),
    rgba(139, 195, 74, 0.15));
  border-color: rgba(76, 175, 80, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.nav-link:hover i {
  transform: translateY(-2px) scale(1.1);
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.nav-link.active {
  color: var(--accent-primary);
  background: linear-gradient(135deg,
    rgba(76, 175, 80, 0.2),
    rgba(139, 195, 74, 0.25));
  border-color: rgba(76, 175, 80, 0.4);
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
  text-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
}

.nav-link.active i {
  color: var(--accent-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
  opacity: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 30px;
  opacity: 1;
}

/* Navigation Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Search Toggle */
.search-toggle-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: var(--text-lg);
  padding: var(--space-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-toggle-btn:hover {
  color: var(--accent-primary);
  background-color: rgba(255, 255, 255, 0.05);
  transform: none;
  box-shadow: none;
}

/* Login Button */
.login-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 1px solid rgba(76, 175, 80, 0.3);
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent);
  transition: left 0.5s;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
  background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-primary));
  border-color: rgba(76, 175, 80, 0.5);
}

.login-btn:active {
  transform: translateY(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: linear-gradient(135deg,
    rgba(76, 175, 80, 0.2),
    rgba(139, 195, 74, 0.3));
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
  position: relative;
  touch-action: manipulation;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bar {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.9),
    rgba(76, 175, 80, 0.8),
    rgba(255, 255, 255, 0.9));
  border-radius: 3px;
  transition: all var(--transition-fast);
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.4);
  display: block;
  margin: 0;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 150;
  overflow: hidden;
  transition: height var(--transition-normal);
  display: flex;
  align-items: center;
  opacity: 0;
}

.search-overlay.active {
  height: 100%;
  opacity: 1;
}

.search-form {
  display: flex;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  padding-right: 50px;
  background-color: var(--bg-tertiary);
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-lg);
}

.search-submit {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: var(--text-lg);
  padding: 0 var(--space-md);
  cursor: pointer;
}

.search-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-close:hover {
  color: var(--accent-primary);
  transform: rotate(90deg);
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  padding: var(--space-xl) 0;
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.footer-section h3 {
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--space-sm);
}

.copyright {
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--bg-tertiary);
  color: var(--text-secondary);
}

/* Cards */
.card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: var(--space-md);
}

.card-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.card-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-lg); }
.mt-3 { margin-top: var(--space-xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-lg); }
.mb-3 { margin-bottom: var(--space-xl); }

/* Responsive Design */
@media (max-width: 992px) {
  .nav-link span {
    display: none;
  }

  .nav-link {
    padding: var(--space-sm);
  }

  .nav-link i {
    font-size: 1.3em;
    margin: 0;
  }

  .login-btn span {
    display: none;
  }

  .login-btn {
    padding: var(--space-sm);
    width: 40px;
    height: 40px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 60px;
  }

  .nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    transition: height var(--transition-normal), opacity var(--transition-normal);
    opacity: 0;
    z-index: 990; /* Increased z-index but still below the toggle button */
    pointer-events: none; /* Prevent clicks when menu is closed */
  }

  .nav-container.active {
    height: 100vh;
    opacity: 1;
    pointer-events: auto; /* Enable clicks when menu is open */
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
  }

  .nav-link {
    font-size: var(--text-lg);
  }

  .nav-link span {
    display: inline;
  }

  .nav-link i {
    font-size: 1.2em;
  }

  .nav-actions {
    margin-top: var(--space-xl);
    flex-direction: column;
    gap: var(--space-lg);
  }

  .login-btn {
    width: auto;
    padding: var(--space-sm) var(--space-xl);
  }

  .login-btn span {
    display: inline;
  }

  .mobile-menu-toggle {
    display: flex;
    padding: 12px;
    margin: -8px;
    background: linear-gradient(135deg,
      rgba(76, 175, 80, 0.3),
      rgba(139, 195, 74, 0.4));
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.3);
  }

  .mobile-menu-toggle:hover {
    background: linear-gradient(135deg,
      rgba(76, 175, 80, 0.4),
      rgba(139, 195, 74, 0.5));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
  }

  .mobile-menu-toggle.active {
    background: linear-gradient(135deg,
      rgba(76, 175, 80, 0.6),
      rgba(139, 195, 74, 0.7));
    border-color: rgba(76, 175, 80, 0.6);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.5);
  }

  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: linear-gradient(90deg,
      rgba(255, 255, 255, 1),
      rgba(76, 175, 80, 1),
      rgba(255, 255, 255, 1));
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
  }

  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: linear-gradient(90deg,
      rgba(255, 255, 255, 1),
      rgba(76, 175, 80, 1),
      rgba(255, 255, 255, 1));
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(76, 175, 80, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-primary);
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto;
}

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

/* User Menu Styles */
.user-menu-container {
  position: relative;
}

.user-menu {
  position: relative;
  display: inline-block;
}

.user-menu-button {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(46, 125, 50, 0.2));
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  transition: all var(--transition-fast);
  border: 1px solid rgba(76, 175, 80, 0.2);
  height: 40px;
}

/* Navbar user button style - matching the screenshot */
.navbar-user-button {
  background: #4caf50;
  border: none;
  border-radius: 20px;
  padding: 5px 15px 5px 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  position: relative;
  z-index: 201; /* Higher than dropdown to ensure it's clickable */
}

.navbar-user-button:hover {
  background: #3d8b40;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.navbar-user-button .user-name {
  color: white;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.navbar-user-button .fa-chevron-down {
  color: white;
  font-size: 12px;
}

.user-menu-button:hover {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(46, 125, 50, 0.3));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-primary);
}

.avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  transition: transform var(--transition-fast);
}

.google-icon {
  color: #4285F4;
  font-size: 14px;
  margin-left: -5px;
  margin-right: 5px;
  background-color: white;
  border-radius: 50%;
  padding: 2px;
  height: 18px;
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-link {
  display: block;
  border-radius: 50%;
  overflow: hidden;
  line-height: 0;
}

.avatar-link:hover .avatar-small {
  transform: scale(1.1);
}

.user-menu-button span {
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-button i {
  color: var(--accent-primary);
  transition: transform var(--transition-fast);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background-color: #222;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  width: 220px;
  padding: var(--space-md);
  display: none;
  z-index: 200;
  border: 1px solid #333;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.user-dropdown.active {
  display: block !important;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  animation: fadeInDropdown 0.3s ease-out;
}

/* MineX Balance in Navbar */
.minex-balance-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background-color: rgba(255, 215, 0, 0.1);
  color: gold;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  margin-bottom: 5px;
}

.minex-balance-nav i {
  font-size: 1.1em;
}

.minex-icon {
  color: gold;
}

@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add animation delay to dropdown items for a cascade effect */

.user-dropdown a:nth-child(1) { animation-delay: 0.05s; }
.user-dropdown a:nth-child(2) { animation-delay: 0.1s; }
.user-dropdown a:nth-child(3) { animation-delay: 0.15s; }
.user-dropdown a:nth-child(4) { animation-delay: 0.2s; }
.user-dropdown a:nth-child(5) { animation-delay: 0.25s; }
.user-dropdown a:nth-child(6) { animation-delay: 0.3s; }

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

.user-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background-color: #222;
  transform: rotate(45deg);
  border-top: 1px solid #333;
  border-left: 1px solid #333;
}

.user-dropdown a {
  color: #e0e0e0;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  margin-bottom: 2px;
  animation: slideIn 0.3s ease-out backwards;
}

.user-dropdown a:hover {
  background-color: #333;
  color: #4caf50;
  transform: translateX(3px);
}

.user-dropdown a i {
  color: #4caf50;
  width: 20px;
  text-align: center;
}

/* User dropdown styling is already defined above */

.user-dropdown a:last-child {
  margin-top: var(--space-sm);
  border-top: 1px solid #444;
  padding-top: var(--space-md);
}

.user-dropdown a:last-child i {
  color: #ff5252; /* Brighter red color for logout in dark theme */
}

.user-dropdown a:last-child:hover {
  background-color: rgba(255, 82, 82, 0.2); /* Slight red tint on hover */
  color: #ff5252;
}

/* When dropdown is active, rotate the chevron */
.user-dropdown.active + .user-menu-button i.fa-chevron-down {
  transform: rotate(180deg);
}

/* More Dropdown Menu */
.more-menu-container {
  position: relative;
}

.more-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background-color: #222;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  width: 220px;
  padding: var(--space-md);
  display: none;
  z-index: 200;
  border: 1px solid #333;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.more-dropdown.active {
  display: block !important;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  animation: fadeInDropdown 0.3s ease-out;
}

.more-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background-color: #222;
  transform: rotate(45deg);
  border-top: 1px solid #333;
  border-left: 1px solid #333;
}

.more-dropdown a {
  color: #e0e0e0;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  margin-bottom: 2px;
  animation: slideIn 0.3s ease-out backwards;
}

.more-dropdown a:hover {
  background-color: #333;
  color: #4caf50;
  transform: translateX(3px);
}

.more-dropdown a i {
  color: #4caf50;
  width: 20px;
  text-align: center;
}

/* Add animation delay to dropdown items for a cascade effect */
.more-dropdown a:nth-child(1) { animation-delay: 0.05s; }
.more-dropdown a:nth-child(2) { animation-delay: 0.1s; }
.more-dropdown a:nth-child(3) { animation-delay: 0.15s; }
.more-dropdown a:nth-child(4) { animation-delay: 0.2s; }

/* When dropdown is active, rotate the chevron */
.more-dropdown.active + .nav-link i.fa-chevron-down {
  transform: rotate(180deg);
}

/* Screen reader only - visually hidden but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
