/* ============================================
   ZIFFI — Terminal & Chat Section Styles
   Terminal animation, AI chat UI
   ============================================ */

/* ---- Terminal ---- */
.magic {
  padding: 120px 0;
  position: relative
}

.magic-inner {
  text-align: center;
  margin-bottom: 64px
}

.terminal {
  background: rgba(15, 15, 25, 0.98);
  border: 1px solid rgba(15, 15, 25, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
}

.terminal-bar {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.t-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%
}

.t-red {
  background: rgba(239, 68, 68, 0.8)
}

.t-yellow {
  background: rgba(249, 115, 22, 0.8)
}

.t-green-dot {
  background: rgba(16, 185, 129, 0.8)
}

.terminal-title {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 10px;
  font-weight: 600
}

.terminal-body {
  padding: 28px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 2.2
}

.terminal-body div {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease
}

.t-dim {
  color: rgba(255, 255, 255, 0.4)
}

.t-violet {
  color: #9CA3AF
}

.t-green {
  color: #10b981
}

.t-blue {
  color: #60A5FA
}

.t-white {
  color: #fff
}

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #9CA3AF;
  margin-left: 2px;
  animation: cursor 1s infinite;
  vertical-align: middle
}

@keyframes cursor {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

/* ---- Chat ---- */
.chat-section {
  padding: 120px 0;
  position: relative
}

.chat-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center
}

.chat-ui {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(15, 15, 25, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.chat-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(15, 15, 25, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #111827, #374151);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.chat-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text)
}

.chat-status {
  font-size: 12px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600
}

.chat-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green)
}

.chat-messages {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px
}

.msg {
  max-width: 85%
}

.msg-ai {
  align-self: flex-start
}

.msg-user {
  align-self: flex-end
}

.msg-bubble {
  padding: 13px 17px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500
}

.msg-ai .msg-bubble {
  background: rgba(15, 15, 25, 0.04);
  border: 1px solid rgba(15, 15, 25, 0.06);
  color: var(--text-secondary);
  border-bottom-left-radius: 5px
}

.msg-user .msg-bubble {
  background: #111827;
  color: #fff;
  border-bottom-right-radius: 5px
}

.msg-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  padding: 0 5px;
  font-weight: 600
}

.msg-ai .msg-time {
  text-align: left
}

.msg-user .msg-time {
  text-align: right
}

.filed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: var(--green);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 10px;
}

.chat-platforms {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.platform-badge {
  background: rgba(15, 15, 25, 0.04);
  border: 1px solid rgba(15, 15, 25, 0.08);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}