/* assets/css/teoria.css */
/* Estilos específicos para secciones teóricas */

/* Badge de teoría */
.teoria-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-color);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}

/* Tarjeta de teoría */
.teoria-card {
  position: relative;
  border-left: 4px solid var(--primary-color);
  background-color: rgba(245, 245, 255, 0.8);
  transition: transform  0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 8px;
  padding: 1.5rem;
}

.teoria-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Conceptos clave */
.concept-key {
  font-weight: 600;
  color: var(--primary-color);
  cursor: help;
  border-bottom: 1px dotted var(--primary-color);
  transition: all 0.2s ease;
}

.concept-key:hover {
  background-color: rgba(0,123,255,0.1);
  border-bottom: 1px solid var(--primary-color);
}

/* Bloques de código */
.code-block {
  position: relative;
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
}

.copy-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
}

.code-block:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Tooltips para conceptos */
.tooltip-inner {
  max-width: 300px;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  font-size: 0.9rem;
}

/* Efecto de resaltado */
@keyframes highlight {
  0% { background-color: rgba(0, 123, 255, 0); }
  50% { background-color: rgba(0, 123, 255, 0.2); }
  100% { background-color: rgba(0, 123, 255, 0); }
}

.highlight {
  animation: highlight 2s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .teoria-card {
      padding: 1rem;
  }
  
  .teoria-badge {
      top: 10px;
      right: 10px;
      font-size: 0.7rem;
  }
}