/* Community Page Styles - TronMenders */

.dashboard-card {
  background: linear-gradient(
    135deg,
    rgba(31, 41, 55, 0.8) 0%,
    rgba(17, 24, 39, 0.9) 100%
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.metric-card {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.1) 0%,
    rgba(5, 150, 105, 0.15) 100%
  );
  border-left: 4px solid #10b981;
}

.financial-gradient {
  background: linear-gradient(
    135deg,
    #065f46 0%,
    #047857 25%,
    #059669 50%,
    #10b981 75%,
    #34d399 100%
  );
}

/* Hero section specific styles matching theme documentation */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom right,
    #111827,    /* gray-900 */
    #1f2937,    /* gray-800 */
    #000000);   /* black */
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  margin: 0 24px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(34, 197, 94, 0.05),  /* green-500/5 */
    rgba(59, 130, 246, 0.05)); /* blue-500/5 */
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 24px 24px;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 32px 32px;
  }
}

/* Professional badge styling */
.professional-badge {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 9999px;
  padding: 8px 16px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
}

.professional-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Gradient text effect for hero titles */
.gradient-text {
  background: linear-gradient(to right, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Metric cards styling matching theme */
.metric-card-enhanced {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.metric-number {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Community specific enhancements */
.chat-message {
  transition: all 0.2s ease;
}

.chat-message:hover {
  background: rgba(31, 41, 55, 0.3);
  border-radius: 8px;
  padding: 8px;
  margin: -8px;
}

.forum-category {
  transition: all 0.3s ease;
}

.forum-category:hover {
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.study-group-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.study-group-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Advanced Mobile Navigation System from user_loged_theme.md */
/* Fallback CSS when TailwindCSS doesn't load */
@media (max-width: 0) { /* This ensures it only applies if Tailwind fails */
  .hidden { display: none !important; }
  .md\:hidden { display: block !important; }
  .md\:flex { display: none !important; }
}

/* Ultra-Aggressive Mobile Menu Visibility */
@media (max-width: 767px) {
  /* Force mobile menu to be visible when JavaScript toggles it */
  #mobile-menu:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    background-color: rgba(31, 41, 55, 0.95) !important;
    border-top: 1px solid rgba(34, 197, 94, 0.2) !important;
    padding: 16px !important;
    z-index: 1000 !important;
  }
  
  /* Force all mobile menu links to be visible */
  #mobile-menu a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    color: #d1d5db !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    transition: all 0.2s !important;
    background-color: transparent !important;
  }
  
  #mobile-menu a:hover {
    background-color: rgba(34, 197, 94, 0.1) !important;
    color: white !important;
  }
  
  /* Force mobile menu icons to be visible */
  #mobile-menu svg {
    width: 20px !important;
    height: 20px !important;
    margin-right: 12px !important;
    color: inherit !important;
    fill: currentColor !important;
    stroke: currentColor !important;
  }
  
  /* Force mobile menu text to be visible */
  #mobile-menu span,
  #mobile-menu .text-white,
  #mobile-menu .text-gray-300 {
    color: #d1d5db !important;
    font-size: 16px !important;
    font-weight: 500 !important;
  }
  
  /* Force mobile menu button to be visible */
  #mobile-menu-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(31, 41, 55, 0.8) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    border-radius: 8px !important;
    padding: 8px !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
  }
  
  #mobile-menu-button svg {
    width: 24px !important;
    height: 24px !important;
    color: white !important;
    stroke: white !important;
    fill: none !important;
    stroke-width: 2 !important;
  }
}

/* Professional Mobile Menu Styling with Enhanced Visibility */
/* Ultra-aggressive mobile menu text visibility */
#mobile-menu * {
  color: #d1d5db !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#mobile-menu a * {
  color: inherit !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Force mobile menu hamburger button to be ultra-visible */
#mobile-menu-button {
  background-color: #374151 !important;
  border: 2px solid #10b981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5) !important;
}

/* Force mobile menu container to be ultra-visible */
#mobile-menu {
  background-color: rgba(31, 41, 55, 0.98) !important;
  border: 2px solid rgba(34, 197, 94, 0.5) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

/* Force all mobile menu links to have visible text */
#mobile-menu a span,
#mobile-menu a div,
#mobile-menu a {
  color: #e5e7eb !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Force logout button to be visible */
#mobile-menu .logout-btn {
  background-color: rgba(239, 68, 68, 0.2) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #f87171 !important;
}

/* Force all SVG icons in mobile menu to be visible */
#mobile-menu svg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}

/* Force desktop navigation visibility on larger screens */
@media (min-width: 768px) {
  .hidden.md\:flex {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
  
  .hidden.md\:flex a {
    padding: 8px 16px;
    border-radius: 8px;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s;
  }
  
  .hidden.md\:flex a:hover {
    background: rgba(34, 197, 94, 0.1);
    color: white;
  }
  
  #mobile-menu-button {
    display: none !important;
  }
}
