/* ===== TECHNICAL THEME COMPONENTS ===== */

/* Code Editor Inspired Elements */
.code-block {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #d4d4d4;
  overflow-x: auto;
  position: relative;
}

.code-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
  border-bottom: 1px solid #333;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.code-block::after {
  content: '● ● ●';
  position: absolute;
  top: 8px;
  left: 15px;
  color: #666;
  font-size: 12px;
}

/* Syntax Highlighting */
.token-keyword { color: #569cd6; }
.token-string { color: #ce9178; }
.token-comment { color: #6a9955; }
.token-function { color: #dcdcaa; }
.token-number { color: #b5cea8; }

/* Tech Grid Background */
.tech-grid {
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Glowing Effects */
.glow {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.glow-intense {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
}

/* Technical Badges */
.tech-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(59, 130, 246, 0.2);
  color: var(--text-highlight);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Status Indicators */
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: var(--space-xs);
}

.status-online { background: var(--success); }
.status-offline { background: var(--error); }
.status-warning { background: var(--warning); }
.status-info { background: var(--info); }

/* Terminal Style */
.terminal {
  background: #0c0c0c;
  border: 1px solid #333;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  color: #00ff00;
  padding: var(--space-lg);
  position: relative;
}

.terminal::before {
  content: '$ ';
  color: #00ff00;
  font-weight: bold;
}

/* Data Visualization */
.data-bar {
  height: 4px;
  background: var(--gradient-tech);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Matrix Effect */
.matrix-bg {
  background: 
    linear-gradient(180deg, transparent 0%, rgba(0,255,0,0.1) 50%, transparent 100%);
  background-size: 100% 20px;
  animation: matrix 2s linear infinite;
}

@keyframes matrix {
  0% { background-position: 0 0; }
  100% { background-position: 0 20px; }
}

/* Holographic Effect */
.holographic {
  background: linear-gradient(45deg, 
    rgba(59, 130, 246, 0.1) 0%, 
    rgba(139, 92, 246, 0.1) 25%, 
    rgba(16, 185, 129, 0.1) 50%, 
    rgba(245, 158, 11, 0.1) 75%, 
    rgba(59, 130, 246, 0.1) 100%);
  background-size: 400% 400%;
  animation: holographic 3s ease infinite;
}

@keyframes holographic {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Tech Particles */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 50%;
  animation: float 6s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Responsive Tech Elements */
@media (max-width: 768px) {
  .code-block {
    font-size: 0.8rem;
    padding: var(--space-md);
  }
  
  .tech-badge {
    font-size: 0.7rem;
  }
  
  .data-grid {
    grid-template-columns: 1fr;
  }
}