/* ==========================================================================
   Nomad but Digital — Interactive CSS Laptop Visual (About Section)
   Pure CSS device frame + clean #FFFEFE simulated search UI
   ========================================================================== */

.nbd-laptop-scene {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 18px;
}

.nbd-laptop {
  position: relative;
  width: 100%;
}

/* Lid & Thin Bezel */
.nbd-laptop__lid {
  position: relative;
  background: #1A1B17;
  border-radius: 18px 18px 6px 6px;
  padding: 16px 12px 12px;
  box-shadow: 0 24px 54px rgba(26, 27, 23, 0.16);
  border: 1.5px solid rgba(255, 254, 254, 0.12);
}

.nbd-laptop__camera {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 254, 254, 0.28);
}

/* Screen */
.nbd-laptop__screen {
  background: #FFFEFE;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(26, 27, 23, 0.1);
}

/* Mini Browser Bar */
.nbd-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f5f7f8;
  border-bottom: 1px solid rgba(26, 27, 23, 0.08);
}
.nbd-browser-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nbd-browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.nbd-browser-dots span:nth-child(1) { background: #FF0587; }
.nbd-browser-dots span:nth-child(2) { background: #FFBB02; }
.nbd-browser-dots span:nth-child(3) { background: #9DE8FF; }

  .nbd-browser-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFEFE;
  border: 1px solid rgba(26, 27, 23, 0.09);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(26, 27, 23, 0.68);
}
.nbd-browser-url span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nbd-browser-url svg {
  width: 11px;
  height: 11px;
  color: #16a34a;
  flex-shrink: 0;
}

/* Screen Body */
.nbd-screen-body {
  padding: 16px 18px 18px;
  background: #FFFEFE;
}

.nbd-search-top {
  margin-bottom: 14px;
}

.nbd-search-brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: flex;
  gap: 1px;
}
.nbd-sb-1 { color: #1A1B17; }
.nbd-sb-2 { color: #FF0587; }
.nbd-sb-3 { color: #FFBB02; }
.nbd-sb-4 { color: #1A1B17; }
.nbd-sb-5 { color: #9DE8FF; text-shadow: 0 0 1px rgba(26, 27, 23, 0.25); }
.nbd-sb-6 { color: #FF0587; }

.nbd-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFEFE;
  border: 1.5px solid rgba(26, 27, 23, 0.14);
  border-radius: 999px;
  padding: 7px 7px 7px 12px;
  box-shadow: 0 4px 14px rgba(26, 27, 23, 0.05);
}
.nbd-search-box__icon {
  width: 14px;
  height: 14px;
  color: rgba(26, 27, 23, 0.5);
  flex-shrink: 0;
}
.nbd-search-box__query {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1A1B17;
  white-space: nowrap;
  overflow: hidden;
}
.nbd-search-box__cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: #FF0587;
  margin-left: -4px;
  animation: nbd-blink 0.8s steps(2, start) infinite;
}
.nbd-search-box__cursor.is-done {
  opacity: 0;
  animation: none;
}
.nbd-search-box__btn {
  margin-left: auto;
  background: #1A1B17;
  color: #FFFEFE;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  flex-shrink: 0;
}

.nbd-search-progress {
  height: 2px;
  width: 100%;
  background: rgba(26, 27, 23, 0.06);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
  opacity: 0;
}
.nbd-search-progress span {
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, #9DE8FF, #FF0587, #FFBB02);
  border-radius: 2px;
}

/* Search Result Card */
.nbd-search-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nbd-serp-card {
  background: #FFFEFE;
  border: 1px solid rgba(26, 27, 23, 0.09);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(26, 27, 23, 0.04);
}

.nbd-serp-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.nbd-serp-site {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.nbd-serp-favicon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #FF0587;
  color: #FFFEFE;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nbd-serp-site__name {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  color: #1A1B17;
  line-height: 1.2;
}
.nbd-serp-site__url {
  display: block;
  font-size: 0.65rem;
  color: rgba(26, 27, 23, 0.56);
  line-height: 1.2;
}

.nbd-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFBB02;
  color: #1A1B17;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.nbd-rank-pill__label {
  font-weight: 600;
  opacity: 0.85;
}

.nbd-serp-card__title {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #1A1B17;
  line-height: 1.3;
}

.nbd-serp-card__desc {
  margin: 0 0 9px;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(26, 27, 23, 0.72);
}

.nbd-serp-sitelinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nbd-serp-sitelinks span {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(157, 232, 255, 0.28);
  color: #1A1B17;
}

/* Growth Visual Card */
.nbd-growth-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 12px;
  background: rgba(157, 232, 255, 0.14);
  border: 1px solid rgba(26, 27, 23, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
}
.nbd-growth-card__metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nbd-growth-stat__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(26, 27, 23, 0.62);
}
.nbd-growth-stat__val {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #16a34a;
  line-height: 1.15;
}
.nbd-growth-stat__badge {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 800;
  background: #FFFEFE;
  color: #1A1B17;
  border: 1px solid rgba(26, 27, 23, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}
.nbd-growth-chart {
  height: 56px;
  width: 100%;
}
.nbd-growth-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Laptop Metallic Base */
.nbd-laptop__base {
  position: relative;
  height: 16px;
  width: 108%;
  margin-left: -4%;
  background: linear-gradient(180deg, #d7dbde 0%, #aeb4b9 65%, #8c9298 100%);
  border-radius: 2px 2px 14px 14px;
  box-shadow: 0 12px 24px rgba(26, 27, 23, 0.14);
}
.nbd-laptop__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 5px;
  background: #7f858b;
  border-radius: 0 0 6px 6px;
}

/* Position pink badge neatly over bottom-left of laptop */
.nbd-laptop-scene .nbd-about__badge {
  bottom: 2px;
  left: 14px;
  z-index: 4;
}

@keyframes nbd-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   RESPONSIVE ADAPTATION
   ========================================================================== */
@media (max-width: 960px) {
  .nbd-laptop-scene {
    width: 100%;
    max-width: min(560px, 100%);
  }
  .nbd-laptop__base {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .nbd-laptop-scene {
    width: 100%;
    max-width: 100%;
    padding-bottom: 22px;
  }
  .nbd-laptop__lid {
    padding: 12px 8px 8px;
    border-radius: 14px 14px 4px 4px;
  }
  .nbd-screen-body {
    padding: 10px;
  }
  .nbd-serp-card {
    padding: 10px;
  }
  .nbd-serp-card__top {
    flex-wrap: wrap;
    gap: 6px;
  }
  .nbd-search-box__btn {
    display: none;
  }
  .nbd-search-box__query {
    min-width: 0;
    flex: 1;
    text-overflow: ellipsis;
  }
  .nbd-growth-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .nbd-growth-card__metrics {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .nbd-serp-sitelinks span:nth-child(4) {
    display: none;
  }
  .nbd-laptop__base {
    width: 100%;
    margin-left: 0;
    height: 12px;
  }
  .nbd-laptop-scene .nbd-about__badge {
    bottom: 0;
    left: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nbd-search-box__cursor {
    display: none;
  }
}
