/* =========================================
   NETWORK LAYOUT
   ========================================= */
.network-container {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.network-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-title {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #fff;
}

.header-status {
  font-size: 10px;
  color: var(--neon-teal);
  border: 1px solid rgba(29, 205, 159, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
}

/* =========================================
   POOL GRID (The New Layout)
   ========================================= */
.pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* =========================================
   POOL CARD DESIGN
   ========================================= */
.pool-card {
  background: rgba(12, 14, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hover Effect: Lift & Glow */
.pool-card:hover {
  transform: translateY(-5px);
  border-color: rgba(29, 205, 159, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: rgba(20, 24, 30, 0.8);
}

/* The "Active Line" Animation on Hover */
.pool-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-teal), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.pool-card:hover::after {
  transform: translateX(100%);
}

/* --- Card Header --- */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pool-icon {
  width: 40px;
  height: 40px;
  background: rgba(29, 205, 159, 0.1);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--neon-teal);
  font-size: 18px;
}

.pool-status-badge {
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #111;
  border: 1px solid #333;
  color: #888;
}

.pool-status-badge.running {
  border-color: rgba(29, 205, 159, 0.3);
  color: var(--neon-teal);
  background: rgba(29, 205, 159, 0.05);
}

/* --- Card Body --- */
.pool-name {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
}

.pool-metrics {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 10px;
  color: #666;
}

.metric-value {
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  color: #ccc;
}

.metric-value.positive {
  color: var(--neon-teal);
  text-shadow: 0 0 10px rgba(29, 205, 159, 0.3);
}

.metric-value.negative {
  color: #ff4444;
}

/* --- Card Footer --- */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #555;
}

.action-arrow {
  color: var(--neon-teal);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.pool-card:hover .action-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Loading State */
.loading-scan {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: #444;
  letter-spacing: 2px;
  font-size: 12px;
  animation: pulseText 1.5s infinite;
}

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

@media (max-width: 768px) {
  .pool-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
}
