/* ─── Footer ─────────────────────────────────────────────────────────────── */

footer {
  position: relative;
  z-index: 10;
  padding: 40px 24px 32px;
  border-top: 1px solid var(--g12);
}

/* Glowing gradient top line */
footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--g55) 20%,
    var(--g)   50%,
    var(--g55) 80%,
    transparent
  );
  filter: blur(1px);
}

/* ─── Session log ────────────────────────────────────────────────────────── */
.session-log {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: rgba(120, 177, 90, .22);
  margin-bottom: 20px;
  overflow: hidden;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.session-log > span {
  display: inline-block;
  animation: slideIn 0.5s ease-out both;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── Footer grid ────────────────────────────────────────────────────────── */
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  max-width: 900px;
  margin: 0 auto;
}

/* ─── Copyright / prompt ─────────────────────────────────────────────────── */
.footer-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: rgba(120, 177, 90, .40);
}

.footer-copy .prompt {
  color: var(--g-bright);
  opacity: 0.5;
  text-shadow: 0 0 6px rgba(120, 177, 90, .20);
}

.cursor-sm {
  display: inline-block;
  width: 6px;
  height: 0.85em;
  background: var(--g);
  vertical-align: text-bottom;
  animation: cursorBlink 1s steps(2) infinite;
  box-shadow: 0 0 6px rgba(120, 177, 90, .30);
  margin-left: 3px;
}

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

/* ─── Status indicators ──────────────────────────────────────────────────── */
.footer-status {
  display: flex;
  gap: 20px;
  font-size: 0.60rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(120, 177, 90, .25);
}

.footer-status > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Scoped to avoid conflict with .dot used in panel titlebars */
.footer-status .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--g);
  box-shadow: 0 0 5px rgba(120, 177, 90, .40);
  border: none;
  animation: dotPulse 2.5s ease-in-out infinite;
}

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

/* ─── Block counter ──────────────────────────────────────────────────────── */
.footer-block {
  font-size: 0.60rem;
  letter-spacing: 1.2px;
  color: rgba(120, 177, 90, .25);
  text-align: right;
}

.footer-block .block-num {
  color: var(--g55);
  font-weight: 500;
}

/* ─── Divider ────────────────────────────────────────────────────────────── */
.footer-divider {
  max-width: 900px;
  margin: 18px auto 14px;
  border: none;
  border-top: 1px dashed var(--border);
}

/* ─── Bottom row ─────────────────────────────────────────────────────────── */
.footer-bottom {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.58rem;
  letter-spacing: 1px;
  color: rgba(120, 177, 90, .18);
}

.footer-hash {
  opacity: 0.6;
  font-size: 0.52rem;
}

/* ─── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .footer-grid    { flex-direction: column; text-align: center; }
  .footer-status  { justify-content: center; }
  .footer-block   { text-align: center; }
  .footer-bottom  { text-align: center; }
}

/* ─── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cursor-sm           { animation: none !important; opacity: 1; }
  .footer-status .dot  { animation: none !important; opacity: 0.7; }
  .session-log > span  { animation: none !important; opacity: 1; }
}
