/* DAO Tab Kawaii-Cyberpunk Redesign */
/* Created by Cuserob - Visual Creation & Interface Design 🎨✨ */

/* ========================================
   NEURAL NETWORK CONTAINER
   ======================================== */

.neural-network-container {
  position: relative;
  min-height: 100vh;
  padding: 2rem 1rem;
  background: linear-gradient(180deg, 
    rgba(10, 0, 20, 0.95) 0%, 
    rgba(20, 0, 40, 0.98) 50%,
    rgba(30, 0, 60, 0.95) 100%);
  overflow: hidden;
}

/* Animated background neurons */
.neural-network-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 0, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 0, 0.05) 0%, transparent 50%);
  animation: neural-pulse 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   HEADER REDESIGN
   ======================================== */

.neural-header {
  text-align: center;
  margin: 2rem auto 3rem;
  position: relative;
  z-index: 10;
}

.synaptic-background {
  position: absolute;
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  opacity: 0.3;
  z-index: -1;
}

.neural-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.cyber-text {
  background: linear-gradient(135deg, #00ffff, #0099ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
  animation: cyber-glow 2s ease-in-out infinite;
}

.pulse-text {
  background: linear-gradient(135deg, #ff00ff, #ff0080);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
  animation: pulse-glow 2s ease-in-out infinite 0.5s;
  margin-left: 0.5rem;
}

/* ========================================
   NEURAL NAVIGATION KAWAII STYLE
   ======================================== */

.neural-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem auto;
  flex-wrap: wrap;
  max-width: 1000px;
  position: relative;
  z-index: 10;
}

.neural-nav-btn {
  background: rgba(30, 0, 60, 0.8);
  border: 2px solid rgba(255, 0, 255, 0.3);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.neural-nav-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 0, 255, 0.2), transparent);
  transform: rotate(0deg);
  transition: transform 0.6s ease;
  opacity: 0;
}

.neural-nav-btn:hover::before {
  transform: rotate(180deg);
  opacity: 1;
}

.neural-nav-btn i {
  font-size: 1.2rem;
  color: #ff00ff;
  transition: all 0.3s ease;
}

.neural-nav-btn:hover {
  background: rgba(255, 0, 255, 0.2);
  border-color: #ff00ff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 0, 255, 0.4);
}

.neural-nav-btn:hover i {
  color: #00ffff;
  transform: rotate(360deg);
}

.neural-nav-btn.active {
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(0, 255, 255, 0.3));
  border-color: #ff00ff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
}

.nav-pulse {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  transition: width 0.3s ease;
  border-radius: 3px;
}

.neural-nav-btn.active .nav-pulse,
.neural-nav-btn:hover .nav-pulse {
  width: 80%;
}

/* ========================================
   PROPOSALS KAWAII REDESIGN
   ======================================== */

.proposals-container {
  max-width: 1200px;
  margin: 2rem auto;
  position: relative;
  z-index: 10;
}

.proposals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.proposals-header h3 {
  font-size: 2rem;
  background: linear-gradient(135deg, #00ffff, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.create-proposal-btn {
  background: linear-gradient(135deg, #ff00ff, #ff0080);
  border: none;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(255, 0, 255, 0.4);
}

.create-proposal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 0, 255, 0.6);
}

/* Proposal Cards */
.proposals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.proposal-card {
  background: rgba(20, 0, 40, 0.9);
  border: 3px solid transparent;
  border-image: linear-gradient(135deg, #00ffff, #ff00ff) 1;
  border-radius: 25px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.proposal-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(255, 0, 255, 0.1), transparent);
  animation: card-rotate 20s linear infinite;
  pointer-events: none;
}

.proposal-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(255, 0, 255, 0.4),
    0 0 60px rgba(0, 255, 255, 0.3);
}

/* Status Badge Kawaii Style */
.status-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.status-badge.voting {
  background: linear-gradient(135deg, #00ff00, #00ff88);
  color: #000;
  animation: status-pulse 2s ease-in-out infinite;
}

.status-badge.passed {
  background: linear-gradient(135deg, #00ffff, #0099ff);
  color: #000;
}

.status-badge.rejected {
  background: linear-gradient(135deg, #ff0066, #ff00cc);
  color: #fff;
}

/* Voting Section Kawaii Style */
.voting-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed rgba(255, 0, 255, 0.3);
}

.vote-bar {
  height: 30px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  margin: 1rem 0;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.vote-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.vote-progress.for {
  background: linear-gradient(135deg, #00ff88, #00ffff);
  color: #000;
}

.vote-progress.for::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: vote-shine 3s linear infinite;
}

.vote-progress.against {
  background: linear-gradient(135deg, #ff0066, #ff00cc);
  color: #fff;
}

/* Author Avatar Kawaii Touch */
.author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ff00ff;
  box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* ========================================
   COMMUNITY HUB KAWAII STYLE
   ======================================== */

.community-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: rgba(30, 0, 60, 0.8);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, #00ffff, #ff00ff) 1;
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 0, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: stat-rotate 10s linear infinite;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 0, 255, 0.4);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: icon-float 3s ease-in-out infinite;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, #00ffff, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-change {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.stat-change.positive {
  background: rgba(0, 255, 0, 0.2);
  color: #00ff88;
}

.stat-change.negative {
  background: rgba(255, 0, 0, 0.2);
  color: #ff6666;
}

/* ========================================
   CHAT SECTION KAWAII STYLE
   ======================================== */

.neural-chat {
  background: rgba(20, 0, 40, 0.9);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 2rem 0;
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed rgba(255, 0, 255, 0.3);
}

.online-count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #00ff88;
}

.online-indicator {
  width: 10px;
  height: 10px;
  background: #00ff88;
  border-radius: 50%;
  animation: online-pulse 2s ease-in-out infinite;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-right: 0.5rem;
}

/* Custom scrollbar */
.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00ffff, #ff00ff);
  border-radius: 10px;
}

.chat-message {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: start;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

.chat-message:hover {
  background: rgba(255, 0, 255, 0.1);
  transform: translateX(5px);
}

.message-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid rgba(255, 0, 255, 0.5);
  flex-shrink: 0;
}

.message-content {
  flex: 1;
}

.message-author {
  font-weight: 600;
  color: #ff00ff;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.message-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.4;
}

.message-time {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.3rem;
}

/* Chat Input Kawaii Style */
.chat-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(0, 255, 255, 0.5);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 25px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.chat-input:focus {
  outline: none;
  border-color: #ff00ff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
  background: rgba(255, 0, 255, 0.1);
}

.chat-send-btn {
  background: linear-gradient(135deg, #00ffff, #0099ff);
  border: none;
  color: #000;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.6);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes neural-pulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(5deg);
  }
}

@keyframes cyber-glow {
  0%, 100% {
    filter: brightness(1);
    transform: translateY(0);
  }
  50% {
    filter: brightness(1.3);
    transform: translateY(-5px);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    filter: brightness(1);
    transform: translateY(0);
  }
  50% {
    filter: brightness(1.3);
    transform: translateY(-5px);
  }
}

@keyframes card-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes status-pulse {
  0%, 100% {
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.5);
  }
  50% {
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.8);
  }
}

@keyframes vote-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes stat-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .neural-nav {
    gap: 0.5rem;
  }
  
  .neural-nav-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .proposals-grid {
    grid-template-columns: 1fr;
  }
  
  .community-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .neural-title {
    font-size: 2rem;
  }
  
  .proposals-header {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   DEBUG FIXES
   ======================================== */

/* Remove any red debug borders */
.neural-network-container * {
  border-color: transparent !important;
}

.neural-network-container .debug,
.neural-network-container .dev-only {
  display: none !important;
}