/* Demo page styles */

/* Demo wrap */
.demo-wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* Intro */
.demo-intro { padding: 5rem 0 4rem; text-align: center; }
.demo-badge { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: rgba(198,255,0,0.1); border: 1px solid rgba(198,255,0,0.25); padding: 0.3rem 0.8rem; border-radius: 2rem; margin-bottom: 2rem; }
.demo-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 1.5rem; }
.demo-title .accent { color: var(--accent); }
.demo-sub { font-size: 1rem; color: var(--muted); line-height: 1.7; max-width: 620px; margin: 0 auto 2.5rem; }
.demo-meta { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.demo-meta-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--fg); }
.demo-meta-item svg { color: var(--accent); flex-shrink: 0; }

/* Feature grid */
.demo-features { padding: 4rem 0; border-top: 1px solid var(--border); }
.demo-section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.8rem); letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.demo-section-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 2.5rem; }
.demo-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); margin-top: 2rem; }
.demo-feature-card { background: var(--bg); padding: 1.75rem; }
.demo-feature-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--accent); background: rgba(198,255,0,0.07); border-radius: 8px; margin-bottom: 1rem; }
.demo-feature-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.5rem; }
.demo-feature-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* Chat section */
.demo-chat-section { padding: 4rem 0; border-top: 1px solid var(--border); }
.demo-chat-section .demo-section-title { margin-bottom: 0.75rem; }

/* Chat widget */
.demo-chat-widget { width: 100%; max-width: 420px; margin: 2rem auto 3rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.demo-chat-header { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; background: #1A1A24; border-bottom: 1px solid var(--border); }
.demo-chat-avatar { width: 36px; height: 36px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #0A0A0E; flex-shrink: 0; }
.demo-chat-name { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.demo-chat-status { font-size: 0.72rem; color: var(--accent); margin-top: 2px; }
.demo-chat-minimize { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; padding: 0.25rem; display: flex; align-items: center; }
.demo-chat-minimize:hover { color: var(--fg); }

.demo-chat-body { height: 340px; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.85rem; }
.demo-chat-body::-webkit-scrollbar { width: 4px; }
.demo-chat-body::-webkit-scrollbar-track { background: transparent; }
.demo-chat-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.demo-chat-msg { padding: 0.65rem 1rem; border-radius: 12px; font-size: 0.85rem; line-height: 1.55; max-width: 88%; }
.demo-chat-bot { background: #1E1E2A; color: var(--fg); align-self: flex-start; border-bottom-left-radius: 4px; }
.demo-chat-user { background: var(--accent); color: #0A0A0E; align-self: flex-end; font-weight: 500; border-bottom-right-radius: 4px; }
.demo-chat-typing { background: #1E1E2A; align-self: flex-start; padding: 0.65rem 1rem; border-radius: 12px; border-bottom-left-radius: 4px; }
.typing-dots { display: flex; gap: 4px; align-items: center; height: 18px; }
.typing-dots span { width: 6px; height: 6px; background: var(--muted); border-radius: 50%; animation: typing 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }

.demo-chat-input-area { border-top: 1px solid var(--border); padding: 0.75rem; }
.demo-chat-suggestions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.demo-suggestion-btn { font-family: var(--font-mono); font-size: 0.72rem; padding: 0.3rem 0.7rem; background: rgba(198,255,0,0.07); border: 1px solid rgba(198,255,0,0.2); color: var(--fg); border-radius: 20px; cursor: pointer; transition: background 0.15s, border-color 0.15s; white-space: nowrap; }
.demo-suggestion-btn:hover { background: rgba(198,255,0,0.15); border-color: rgba(198,255,0,0.4); }
.demo-chat-input-row { display: flex; gap: 0.5rem; align-items: center; }
.demo-chat-input { flex: 1; background: var(--bg); border: 1px solid var(--border); color: var(--fg); font-family: var(--font-mono); font-size: 0.85rem; padding: 0.65rem 0.9rem; border-radius: 8px; outline: none; transition: border-color 0.15s; }
.demo-chat-input:focus { border-color: rgba(198,255,0,0.4); }
.demo-chat-input::placeholder { color: var(--muted); }
.demo-chat-send { width: 38px; height: 38px; background: var(--accent); color: #0A0A0E; border: none; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s, transform 0.1s; }
.demo-chat-send:hover { background: #d4ff33; transform: scale(1.05); }
.demo-chat-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* Book form */
.demo-book-direct { max-width: 560px; margin: 3rem auto 0; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem; }
.demo-book-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.demo-book-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 2rem; }
.demo-book-form { display: flex; flex-direction: column; gap: 1rem; }
.demo-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.demo-form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.demo-form-group label { font-size: 0.78rem; font-weight: 500; color: var(--fg); letter-spacing: 0.02em; }
.demo-form-optional { color: var(--muted); font-weight: 400; }
.demo-form-group input,
.demo-form-group select,
.demo-form-group textarea { background: var(--bg); border: 1px solid var(--border); color: var(--fg); font-family: var(--font-mono); font-size: 0.85rem; padding: 0.65rem 0.85rem; border-radius: 8px; outline: none; transition: border-color 0.15s; width: 100%; }
.demo-form-group input:focus,
.demo-form-group select:focus,
.demo-form-group textarea:focus { border-color: rgba(198,255,0,0.4); }
.demo-form-group input::placeholder,
.demo-form-group textarea::placeholder { color: var(--muted); }
.demo-form-group select option { background: var(--bg2); }
.demo-form-group textarea { resize: vertical; min-height: 80px; }
.demo-book-submit { background: var(--accent); color: #0A0A0E; font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500; padding: 0.85rem 1.5rem; border: none; border-radius: 8px; cursor: pointer; margin-top: 0.5rem; transition: background 0.15s, transform 0.1s; }
.demo-book-submit:hover { background: #d4ff33; transform: translateY(-1px); }
.demo-book-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.demo-book-note { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 0.25rem; }

/* Booking success */
.demo-book-success { text-align: center; padding: 2.5rem 1rem; }
.demo-book-success h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin: 1rem 0 0.5rem; }
.demo-book-success p { color: var(--muted); font-size: 0.9rem; }

/* CTA section */
.demo-cta { padding: 5rem 0 6rem; border-top: 1px solid var(--border); text-align: center; }
.demo-cta-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
.demo-cta-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.demo-cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn-demo-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.75rem; background: var(--accent); color: #0A0A0E; font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500; text-decoration: none; border-radius: 8px; border: none; cursor: pointer; transition: background 0.15s, transform 0.1s; }
.btn-demo-primary:hover { background: #d4ff33; transform: translateY(-1px); }
.btn-demo-secondary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.75rem; background: transparent; color: var(--fg); font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500; text-decoration: none; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.btn-demo-secondary:hover { border-color: var(--accent); background: rgba(198,255,0,0.05); }
.btn-demo-secondary.copied { color: var(--accent); border-color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .demo-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .demo-wrap { padding: 0 1.25rem; }
  .demo-intro { padding: 3rem 0 2.5rem; }
  .demo-meta { gap: 1rem; }
  .demo-feature-grid { grid-template-columns: 1fr; }
  .demo-form-row { grid-template-columns: 1fr; }
  .demo-book-direct { padding: 1.5rem; }
}