/* ================================================================
   QUOTES — Extracted from webflow_quotes_embed.html
   mgm Vietnam 10-Year Anniversary Website
================================================================ */

/* ── Section container ── */
.qt-section {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; padding: 6rem 0 5rem; box-sizing: border-box;
}
.qt-heading {
  font-family: 'Redriver', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 700;
  color: rgba(255,255,255,0.9); text-align: center;
  margin: 0 0 0.5rem; letter-spacing: -0.02em;
}
.qt-subheading {
  font-size: 0.95rem; color: rgba(255,255,255,0.4);
  text-align: center; margin: 0 0 3rem;
}

/* ── Marquee wrapper ── */
.qt-marquee-wrap { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; }
.qt-mask {
  position: relative; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.qt-track {
  display: flex; gap: 1.5rem; width: max-content;
  padding: 1.5rem 0 2rem; will-change: transform; transform: translateX(0);
}

/* ── Quote card ── */
.qt-card {
  flex-shrink: 0; width: 22rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.2rem; padding: 1.8rem; position: relative;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: background 0.3s, border-color 0.3s; box-sizing: border-box;
}
.qt-card:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.25); }
.qt-mark { font-size: 3.5rem; line-height: 0.6; color: rgba(255,255,255,0.12); font-family: Georgia, serif; pointer-events: none; user-select: none; }
.qt-text { font-size: 0.95rem; line-height: 1.75; color: rgba(255,255,255,0.82); flex: 1; font-style: italic; margin: 0; word-wrap: break-word; }
.qt-author { display: flex; align-items: center; gap: 0.75rem; }
.qt-avatar {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.qt-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.qt-name { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.9); }

/* ── Reaction Bar ── */
.qt-reactions { display: flex; gap: 0.5rem; margin-top: auto; justify-content: flex-end; }
.qt-react-btn {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2rem; padding: 0.35rem 0.65rem;
  display: flex; align-items: center; gap: 0.4rem;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.1s;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.qt-react-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.qt-react-btn.active { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); }
.qt-react-btn:active { transform: scale(0.92); }
.qt-react-icon { width: 0.95rem; height: 0.95rem; opacity: 0.6; transition: opacity 0.2s; }
.qt-react-btn:hover .qt-react-icon, .qt-react-btn.active .qt-react-icon { opacity: 1; }
.qt-react-count { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.5); min-width: 0.6rem; text-align: center; transition: color 0.2s; }
.qt-react-btn:hover .qt-react-count, .qt-react-btn.active .qt-react-count { color: rgba(255,255,255,0.95); }

/* ── Arrow nav zones ── */
.qt-nav-zone {
  position: absolute; top: 0; bottom: 0; width: 12%; min-width: 60px; z-index: 20;
  display: flex; align-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.qt-nav-zone-prev { left: 0; justify-content: flex-start; }
.qt-nav-zone-next { right: 0; justify-content: flex-end; }
.qt-nav {
  background: rgba(15,15,15,0.75); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%; width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem; line-height: 1; user-select: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: scale(0.95);
  transition: opacity 0.3s, background 0.25s, border-color 0.25s, transform 0.25s;
}
.qt-nav-zone-prev .qt-nav { margin-left: 0.25rem; }
.qt-nav-zone-next .qt-nav { margin-right: 0.25rem; }
.qt-nav-zone:hover .qt-nav { opacity: 1; transform: scale(1); }
.qt-nav-zone:hover .qt-nav:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.6); transform: scale(1.1); }

/* ── Share button ── */
.qt-bottom { margin-top: 3rem; text-align: center; }
.qt-share-btn {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 1rem; font-weight: 500;
  padding: 0.9rem 2.5rem; border-radius: 3rem; cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(8px); letter-spacing: 0.02em; font-family: inherit;
}
.qt-share-btn:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.6); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.35); }

/* ── Form Modal ── */
.qt-modal {
  visibility: hidden; opacity: 0; pointer-events: none;
  position: fixed; z-index: 999999; top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s, visibility 0.3s;
}
.qt-modal.show { visibility: visible; opacity: 1; pointer-events: auto; }
.qt-modal-box {
  background: rgba(15,15,15,0.97); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.5rem; padding: 2.5rem; width: 90vw; max-width: 32rem;
  position: relative; box-sizing: border-box;
  transform: translateY(24px); opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}
.qt-modal.show .qt-modal-box { transform: translateY(0); opacity: 1; }
.qt-modal-close { position: absolute; right: 1.2rem; top: 1rem; color: rgba(255,255,255,0.4); font-size: 1.8rem; cursor: pointer; transition: color 0.2s; line-height: 1; font-weight: 300; user-select: none; }
.qt-modal-close:hover { color: #fff; }
.qt-modal-box h2 { font-size: 1.45rem; font-weight: 700; color: #fff; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.qt-modal-desc { font-size: 0.88rem; color: rgba(255,255,255,0.45); margin: 0 0 1.8rem; line-height: 1.55; }

/* ── Form fields ── */
.qt-field { margin-bottom: 1.2rem; }
.qt-field label { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 0.45rem; letter-spacing: 0.03em; text-transform: uppercase; }
.qt-field input, .qt-field textarea { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; padding: 0.85rem 1rem; color: #fff; font-size: 0.95rem; font-family: inherit; resize: none; transition: border-color 0.2s, background 0.2s; box-sizing: border-box; outline: none; }
.qt-field input::placeholder, .qt-field textarea::placeholder { color: rgba(255,255,255,0.2); }
.qt-field input:focus, .qt-field textarea:focus { border-color: rgba(255,255,255,0.38); background: rgba(255,255,255,0.09); }
.qt-char-count { font-size: 0.75rem; color: rgba(255,255,255,0.3); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ── Autocomplete ── */
.qt-autocomplete { position: absolute; top: 100%; left: 0; width: 100%; background: rgba(25,25,25,0.95); border: 1px solid rgba(255,255,255,0.15); border-radius: 0.75rem; margin-top: 0.4rem; max-height: 220px; overflow-y: auto; z-index: 100; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); display: none; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.qt-autocomplete.show { display: block; }
.qt-auto-item { padding: 0.6rem 0.8rem; display: flex; align-items: center; gap: 0.8rem; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.2s; }
.qt-auto-item:last-child { border-bottom: none; }
.qt-auto-item:hover { background: rgba(255,255,255,0.1); }
.qt-auto-img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; background: #333; flex-shrink: 0; }
.qt-auto-name { font-size: 0.95rem; color: #f0f0f0; }

/* ── Auth Section ── */
.qt-auth-pick { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 0.75rem; padding: 1rem; max-width: 300px; margin: 0.8rem 0 1.2rem; box-shadow: 0 8px 32px rgba(0,0,0,0.3); backdrop-filter: blur(8px); display: none; }
.qt-auth-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.qt-auth-msg { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 0.8rem; line-height: 1.4; }
.qt-auth-msg.error { color: #ff6b6b; }
.qt-auth-cancel { background: none; border: none; color: rgba(255,255,255,0.3); font-size: 0.75rem; cursor: pointer; margin-top: 0.8rem; width: 100%; text-align: center; padding: 0.3rem 0; transition: color 0.2s; }
.qt-auth-cancel:hover { color: rgba(255,255,255,0.6); }
.qt-auth-avatar { width: 1.8rem; height: 1.8rem; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; }
.qt-auth-name { color: rgba(255,255,255,.85); font-weight: 600; font-size: 0.9rem; }
.qt-auth-input { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 0.6rem; padding: 0.6rem 0.9rem; color: #fff; font-size: 0.9rem; font-family: inherit; outline: none; box-sizing: border-box; transition: border-color 0.2s; margin-bottom: 0.6rem; }
.qt-auth-input:focus { border-color: rgba(255,255,255,0.35); }

/* ── Feedback & Submit ── */
.qt-feedback { font-size: 0.85rem; min-height: 1.2rem; margin-bottom: 1rem; text-align: center; line-height: 1.5; }
.qt-feedback.qt-error { color: #ff6b6b; }
.qt-feedback.qt-success { color: #69db7c; }
.qt-submit-btn { width: 100%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.28); color: #fff; font-size: 1rem; font-weight: 600; padding: 0.9rem; border-radius: 0.75rem; cursor: pointer; transition: background 0.2s, border-color 0.2s; font-family: inherit; letter-spacing: 0.02em; }
.qt-submit-btn:hover:not(:disabled) { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.6); }
.qt-submit-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Clear Name ── */
.qt-clear-name { position: absolute; right: 10px; top: 36px; width: 20px; height: 20px; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 16px; font-weight: 300; cursor: pointer; z-index: 105; transition: background 0.2s, color 0.2s, transform 0.1s; user-select: none; line-height: 1; padding-bottom: 2px; }
.qt-clear-name:hover { background: rgba(255,255,255,0.25); color: #fff; }
.qt-clear-name:active { transform: scale(0.9); }

/* ── Mobile ── */
@media (max-width: 768px) {
  .qt-card { width: 85vw; max-width: 320px; }
  .qt-modal-box { padding: 1.8rem; }
  .qt-nav { width: 2.5rem; height: 2.5rem; font-size: 1.1rem; }
  .qt-nav-zone-prev .qt-nav { margin-left: 0; }
  .qt-nav-zone-next .qt-nav { margin-right: 0; }
  .qt-marquee-wrap { width: 100%; max-width: calc(100vw - 3rem); }
}
