/**
 * public/css/subscribers.css
 * Email capture strip — sticky, dismissible, mobile-friendly.
 * Injected via buildThemeCSS() on all layout.ejs pages.
 */

/* ── Capture strip ─────────────────────────────────────────────────── */
.email-capture-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.96), rgba(18, 18, 26, 0.98));
  border-top: 1px solid rgba(78, 202, 255, 0.2);
  padding: 16px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.email-capture-strip.dismissed {
  transform: translateY(110%);
  pointer-events: none;
}

/* Subtle entrance animation */
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.email-capture-strip {
  animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 3s both;
  /* delay 3s so page content is visible first — no modal on load */
}

.email-capture-copy {
  flex: 1;
  min-width: 0;
}

.email-capture-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e8e8ef;
  line-height: 1.2;
  margin-bottom: 2px;
}

.email-capture-sub {
  font-size: 0.72rem;
  color: #666688;
  line-height: 1.4;
}

.capture-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.capture-input {
  background: #1a1a28;
  border: 1px solid #2a2a3e;
  border-radius: 7px;
  padding: 10px 14px;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 0.85rem;
  color: #e8e8ef;
  width: 200px;
  outline: none;
  transition: border-color 0.2s;
}

.capture-input::placeholder { color: #444466; }

.capture-input:focus {
  border-color: rgba(78, 202, 255, 0.5);
}

.capture-btn {
  background: linear-gradient(135deg, #c847f4, #4ecaff);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 18px;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}

.capture-btn:hover { opacity: 0.88; transform: scale(1.02); }
.capture-btn:active { transform: scale(0.98); }

.capture-dismiss {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #444466;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}

.capture-dismiss:hover { color: #8888a0; }

.capture-success {
  display: none;
  align-items: center;
  gap: 8px;
  color: #4ecaff;
  font-size: 0.85rem;
  font-weight: 500;
  flex-shrink: 0;
}

/* ── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .email-capture-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 10px;
  }

  .email-capture-copy { text-align: center; }
  .capture-form { flex-direction: column; }
  .capture-input { width: 100%; }
  .capture-btn { width: 100%; }

  .capture-dismiss {
    position: static;
    align-self: flex-end;
    margin-top: -4px;
  }
}

/* ── Capture error / loading states ───────────────────────────────── */
.capture-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

.capture-input.error { border-color: rgba(239, 68, 68, 0.4); }

.capture-btn.loading { opacity: 0.6; pointer-events: none; }