/* ============================================================
   VampireBBS F3 — Nodo de Vigilancia CSS
   ============================================================ */

/* === DECRYPT ANIMATION OVERLAY === */
.decrypt-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.8s ease-out;
  backdrop-filter: blur(2px);
}

.decrypt-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.decrypt-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.decrypt-container {
  width: 90%;
  max-width: 700px;
  border: 2px solid var(--green);
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(0, 30, 0, 0.8), rgba(0, 10, 0, 0.95));
  padding: 30px;
  box-shadow: 0 0 20px var(--green-dim), inset 0 0 10px rgba(0, 255, 65, 0.05);
}

.decrypt-content {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--green);
  line-height: 1.8;
  min-height: 200px;
  white-space: pre-wrap;
  word-break: break-word;
  text-shadow: 0 0 4px var(--green-dim);
}

.decrypt-content .line {
  opacity: 0;
  animation: fadeInLine 0.3s ease-out forwards;
}

@keyframes fadeInLine {
  to { opacity: 1; }
}

.decrypt-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 12px;
}

.skip-btn {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--amber);
  background: transparent;
  border: 1px solid var(--amber-dim);
  padding: 6px 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.skip-btn:hover {
  border-color: var(--amber);
  text-shadow: 0 0 8px var(--amber);
  box-shadow: inset 0 0 10px rgba(255, 179, 0, 0.1);
}

/* === TOOL ITEMS === */
.tool-item {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.tool-item:last-child {
  border-bottom: none;
}

.tool-name {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--amber);
}

.tool-desc {
  font-size: 12px;
  color: var(--green-dim);
  margin-left: 8px;
}

.badge {
  position: absolute;
  top: 12px;
  right: 0;
  font-family: 'VT323', monospace;
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 1px;
}

.badge-online {
  color: var(--green);
  border-color: var(--green);
  text-shadow: 0 0 4px var(--green);
}

.badge-migrating {
  color: var(--amber);
  border-color: var(--amber-dim);
  text-shadow: 0 0 4px var(--amber-dim);
}

/* === PROJECT CARDS === */
.project-card {
  border: 1px solid var(--green-dim);
  background: linear-gradient(135deg, rgba(0, 30, 0, 0.4), rgba(0, 10, 0, 0.6));
  padding: 16px;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 94% 100%, 0 100%);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 12px var(--green-dim), inset 0 0 8px rgba(0, 255, 65, 0.05);
  transform: translateY(-3px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.project-title {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--green);
  text-shadow: 0 0 6px var(--green-dim);
}

.project-lang {
  font-family: 'VT323', monospace;
  font-size: 11px;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 1px 6px;
}

.project-desc {
  font-size: 12px;
  color: var(--white);
  line-height: 1.6;
  flex-grow: 1;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid var(--green-dim);
  color: var(--green-dim);
  padding: 2px 6px;
  border-radius: 2px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}

.project-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.clone-btn, .github-link {
  flex: 1;
  font-family: 'VT323', monospace;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid var(--green-dim);
  background: transparent;
  color: var(--green);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
}

.clone-btn:hover, .github-link:hover {
  border-color: var(--green);
  text-shadow: 0 0 6px var(--green);
  box-shadow: inset 0 0 8px rgba(0, 255, 65, 0.1);
}

.clone-btn.copied {
  color: var(--cyan);
  border-color: var(--cyan);
  text-shadow: 0 0 6px var(--cyan);
}

/* === TOOLTIPS === */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: rgba(0, 255, 65, 0.9);
  color: #000;
  text-align: center;
  border-radius: 2px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 11px;
  font-family: 'Share Tech Mono', monospace;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 255, 65, 0.9) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .project-card {
    min-width: 100%;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-actions {
    flex-direction: column;
  }

  .clone-btn, .github-link {
    width: 100%;
  }
}

/* === FOOTER === */
#footer {
  text-align: center;
  padding: 16px;
  border-top: 1px solid var(--green-dim);
  color: var(--green-dim);
  font-size: 11px;
  margin-top: 20px;
}

.version {
  color: var(--green);
  font-family: 'VT323', monospace;
}

/* === TICKER ANIMATION === */
@keyframes ticker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

#ticker-inner {
  animation: ticker 30s linear infinite;
  display: inline-block;
  white-space: nowrap;
}
