/* =====================================================================
   Local Lead Systems — Portfolio Demo Stylesheet
   Custom enhancements on top of Tailwind CSS
   ===================================================================== */

/* ── Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Terminal output box ─────────────────────────────────────────────── */
.terminal-box {
  background: #0b1220;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  min-height: 220px;
  font-family: 'Fira Code', Consolas, Monaco, 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-y: auto;
  color: #d1fae5;
  position: relative;
}

.terminal-box::before {
  content: '● ● ●';
  display: block;
  font-size: 0.6rem;
  color: #475569;
  letter-spacing: 0.25em;
  margin-bottom: 0.75rem;
}

/* ── Demo cards ──────────────────────────────────────────────────────── */
.demo-card {
  transition: all 0.25s ease;
}

.demo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.demo-card.active {
  box-shadow: 0 0 0 2px rgb(59 130 246), 0 8px 24px rgba(59, 130, 246, 0.15);
  border-color: rgb(59 130 246) !important;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.demo-btn {
  transition: all 0.2s ease;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.demo-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.demo-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* ── Notification toast ──────────────────────────────────────────────── */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  border-radius: 0.75rem;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-12px) scale(0.97);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 320px;
  font-size: 0.875rem;
  font-weight: 500;
  pointer-events: none;
}

.notification.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Form inputs ─────────────────────────────────────────────────────── */
.form-input {
  width: 100%;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 0.9rem;
}

.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input::placeholder {
  color: #6b7280;
}

select.form-input {
  cursor: pointer;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.form-error {
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 0.3rem;
}

/* ── Badge ───────────────────────────────────────────────────────────── */
.demo-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  background: #1f2937;
  color: #6b7280;
  border: 1px solid #374151;
  border-radius: 0.25rem;
  padding: 0.1rem 0.45rem;
  margin-left: 0.4rem;
  vertical-align: middle;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ── Feature cards ───────────────────────────────────────────────────── */
#features .bg-gray-800 {
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

#features .bg-gray-800::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

#features .bg-gray-800:hover::after {
  transform: translateX(100%);
}

#features .bg-gray-800:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* ── AI reply output box ─────────────────────────────────────────────── */
#csResult {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Gradient hero ───────────────────────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 50%, #7c3aed 100%);
}

/* ── Nav link hover ──────────────────────────────────────────────────── */
nav a {
  position: relative;
  transition: color 0.2s;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.25s;
}

nav a:hover::after {
  width: 100%;
}

/* ── Step cards (Review Boost explainer) ─────────────────────────────── */
.step-card {
  background: rgba(31, 41, 55, 0.5);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
}

.step-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(31, 41, 55, 0.8);
  transform: translateY(-2px);
}

/* ── Scrollbar ───────────────────────────────────────────────────────── */
.terminal-box::-webkit-scrollbar {
  width: 5px;
}

.terminal-box::-webkit-scrollbar-track {
  background: #0b1220;
}

.terminal-box::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

/* ── Mobile tweaks ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .terminal-box {
    font-size: 0.75rem;
    min-height: 160px;
    padding: 0.75rem;
  }

  .notification {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

/* ── Typing cursor animation ─────────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.cursor::after {
  content: '█';
  font-size: 0.75em;
  animation: blink 1s step-end infinite;
  color: #22c55e;
}
