/*
 * WS Hero — scoped scroll-pinned hero with phone mockup + flying-G animation.
 * All selectors are namespaced under .wshh to prevent theme collisions.
 */

.wshh {
  --wshh-bg-primary:   #0f0f10;
  --wshh-bg-secondary: #1a1a1c;
  --wshh-text-primary: #ffffff;
  --wshh-text-secondary: #9a9a9d;
  --wshh-border: #3a3a3d;
  --wshh-radius-lg: 16px;

  position: relative;
  width: 100%;
  /* Height defines the scroll range that drives the animation.
     Each 100vh of height = roughly one "screen" of scroll progress. */
  height: 380vh;
  background: var(--wshh-bg-primary);
  color: var(--wshh-text-primary);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wshh .wshh-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--wshh-bg-secondary);
}

.wshh .wshh-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Phone shell ------------------------------------------------------------ */
.wshh .wshh-phone-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  will-change: transform;
}

.wshh .wshh-phone {
  position: relative;
  width: 240px;
  height: 490px;
  background: linear-gradient(135deg, #1a1a1c 0%, #2b2b2e 48%, #0a0a0b 100%);
  border-radius: 44px;
  padding: 7px;
  box-sizing: border-box;
  box-shadow:
    0 0 0 1.5px #3a3a3d inset,
    0 0 0 2.5px #0a0a0b,
    0 20px 50px rgba(0,0,0,0.35),
    0 8px 20px rgba(0,0,0,0.25);
}
.wshh .wshh-phone::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 30%, transparent 70%, rgba(255,255,255,0.04));
  pointer-events: none;
  z-index: 1;
}

.wshh .wshh-phone-btn {
  position: absolute;
  background: linear-gradient(90deg, #1a1a1c 0%, #3a3a3d 50%, #1a1a1c 100%);
  border-radius: 1px;
  z-index: 0;
}
.wshh .wshh-btn-mute      { left: -2px; top: 80px;  width: 3px; height: 28px; }
.wshh .wshh-btn-vol-up    { left: -2px; top: 120px; width: 3px; height: 44px; }
.wshh .wshh-btn-vol-down  { left: -2px; top: 176px; width: 3px; height: 44px; }
.wshh .wshh-btn-power     { right: -2px; top: 130px; width: 3px; height: 68px; }

.wshh .wshh-phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.wshh .wshh-dynamic-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 22px;
  background: #000;
  border-radius: 12px;
  z-index: 10;
}
.wshh .wshh-dynamic-island::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2a3a4a 0%, #0a0f14 70%);
}
.wshh .wshh-dynamic-island::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a1a1e 0%, #050508 70%);
}

.wshh .wshh-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #000;
  background: #fff;
  position: relative;
  z-index: 3;
}
.wshh .wshh-status-time { padding-left: 4px; }
.wshh .wshh-status-right { display: flex; align-items: center; gap: 5px; padding-right: 4px; }

/* SERP content ----------------------------------------------------------- */
.wshh .wshh-serp-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 8px;
  border-bottom: 0.5px solid #e5e5e5;
  background: #fff;
  position: relative;
  z-index: 2;
}
.wshh .wshh-serp-logo {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  line-height: 1;
}
.wshh .wshh-serp-logo .r { color: #ea4335; }
.wshh .wshh-serp-logo .y { color: #fbbc05; }
.wshh .wshh-serp-logo .g { color: #34a853; }
.wshh .wshh-serp-logo .b { color: #4285f4; }

.wshh .wshh-serp-input {
  flex: 1;
  height: 22px;
  border: 0.5px solid #dfe1e5;
  border-radius: 11px;
  padding: 0 10px;
  font-size: 9.5px;
  color: #202124;
  display: flex;
  align-items: center;
}

.wshh .wshh-serp-tabs {
  display: flex;
  gap: 12px;
  padding: 8px 12px 6px;
  border-bottom: 0.5px solid #e5e5e5;
  font-size: 9px;
  color: #5f6368;
  background: #fff;
}
.wshh .wshh-serp-tabs span.active {
  color: #1a73e8;
  border-bottom: 2px solid #1a73e8;
  padding-bottom: 4px;
}

.wshh .wshh-serp-scroll-wrap {
  position: absolute;
  top: 108px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
.wshh .wshh-serp-track {
  padding: 6px 12px 14px;
  transition: transform 0.05s linear;
}

.wshh .wshh-serp-item {
  padding: 9px 0;
  border-bottom: 0.5px solid #f0f0f0;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.wshh .wshh-serp-item:hover { background-color: rgba(26, 115, 232, 0.04); }
.wshh .wshh-serp-item:hover .wshh-serp-title { text-decoration: underline; }

.wshh .wshh-serp-url {
  font-size: 9px;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 4px;
}
.wshh .wshh-serp-url .wshh-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.wshh .wshh-serp-url .wshh-dot.wshh-dot-ws {
  background-color: #000;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  font-size: 0;
  color: transparent;
  /* background-image injected inline via the shortcode so the URL
     resolves against the plugin's own assets directory */
}
.wshh .wshh-serp-title {
  font-size: 11px;
  color: #1a0dab;
  margin: 2px 0 3px;
  font-weight: 400;
  line-height: 1.3;
}
.wshh .wshh-serp-desc {
  font-size: 9px;
  color: #4d5156;
  line-height: 1.4;
}

/* Stat cards ------------------------------------------------------------- */
.wshh .wshh-stat-card {
  position: absolute;
  background: #1a1a1c;
  border-radius: 12px;
  padding: 14px 16px;
  z-index: 2;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  will-change: transform, opacity;
  min-width: 130px;
}
.wshh .wshh-stat-card .wshh-stat-label {
  font-size: 11px;
  color: #9a9a9d;
  margin: 0 0 18px;
  font-weight: 400;
}
.wshh .wshh-stat-card .wshh-stat-value {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  margin: 0;
  text-align: right;
}

/* Flying G --------------------------------------------------------------- */
.wshh .wshh-flying-g {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  pointer-events: none;
  will-change: transform, opacity;
  transform-origin: center center;
}
.wshh .wshh-flying-g .wshh-mono,
.wshh .wshh-flying-g .wshh-full {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wshh .wshh-flying-g .wshh-mono-letter {
  font-weight: 500;
  color: #4285f4;
  line-height: 1;
}
.wshh .wshh-flying-g svg { width: 100%; height: 100%; }

/* Partners landing target (invisible — existing site section takes over) */
.wshh .wshh-partners-section {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 8%;
  will-change: opacity;
  pointer-events: none;
}
.wshh .wshh-partners-left { max-width: 40%; padding-right: 6%; }
.wshh .wshh-partners-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.wshh .wshh-partners-slot {
  width: 90px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
}
.wshh .wshh-partners-slot-placeholder { width: 80px; height: 80px; }

/* Mobile — hero shrinks gracefully; animation still runs but at smaller scale.
   The JS reads viewport height so timings stay intact. */
@media (max-width: 768px) {
  .wshh { height: 320vh; }
  .wshh .wshh-phone { width: 200px; height: 408px; }
}
