/* ==========================================================================
   hero-mockup.css — Mockup "khung browser + popup extension" dựng bằng CSS
   thuần cho hero section site-09. Tách riêng khỏi styles.css để giữ mỗi
   file dưới 800 dòng. Dùng chung biến màu/spacing khai báo ở :root trong
   styles.css (file này load sau styles.css nên kế thừa được biến).
   ========================================================================== */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.browser-mock {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop-lg);
  overflow: visible;
  animation: bounce-soft 5s ease-in-out infinite;
}

.browser-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 3px solid var(--ink);
  background: #fff5e8;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.browser-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}

.dot-red { background: var(--coral); }
.dot-yellow { background: var(--yellow); }
.dot-green { background: var(--mint); }

.browser-url {
  margin-left: 8px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--ink-soft);
}

.browser-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fake-line {
  height: 12px;
  border-radius: 999px;
  background: var(--border-soft);
}

.w-70 { width: 70%; }
.w-40 { width: 40%; }
.w-90 { width: 90%; }
.w-60 { width: 60%; }

.fake-card {
  height: 70px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--mint-soft), var(--yellow));
  border: 2px solid var(--ink);
}

.ext-popup {
  position: absolute;
  bottom: -34px;
  right: -26px;
  width: 200px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
  padding: 14px;
}

.ext-popup-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 13px;
  margin-bottom: 10px;
}

.ext-popup-emoji {
  font-size: 16px;
}

.ext-popup-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.ext-popup-row strong {
  color: var(--coral-dark);
}

.ext-popup-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--border-soft);
  overflow: hidden;
  margin-bottom: 8px;
}

.ext-popup-bar-fill {
  display: block;
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--yellow));
  border-radius: 999px;
}

.ext-popup-row-sm {
  font-size: 11px;
  align-items: center;
}

.ext-popup-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
}

@media (max-width: 640px) {
  .ext-popup {
    position: static;
    margin: 16px auto 0;
    width: 100%;
  }
}
