/* ==========================================================================
   Proto Preview — InVision-Caliber WordPress Design System
   Brand Identity: Bowden Works
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,500;0,600;0,700;0,800;1,500;1,600;1,700&family=Radio+Canada:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --primary: #b02b2b;
  --primary-hover: #872e21;
  --primary-light: #fbeeed;
  --dark-charcoal: #1A202C;
  --slate-body: #2D3748;
  --neutral-warm: #edf2f6;
}

.font-serif-heading {
  font-family: 'EB Garamond', Georgia, serif;
}

/* Device Viewport Simulation Frame */
.viewport-container {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.viewport-desktop {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.viewport-laptop {
  width: 1280px;
  max-width: 96%;
  height: 94%;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
}

.viewport-tablet {
  width: 768px;
  max-width: 90%;
  height: 92%;
  border-radius: 28px;
  border: 10px solid #1A202C;
}

.viewport-mobile {
  width: 390px;
  max-width: 90%;
  height: 88%;
  border-radius: 40px;
  border: 10px solid #1A202C;
}

/* Vector Comment Pins (Hotspots) */
.comment-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #b02b2b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 10.5px;
  box-shadow: 0 4px 12px rgba(176, 43, 43, 0.45);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
  border: 2px solid #ffffff;
  z-index: 40;
  user-select: none;
}

.comment-pin:hover {
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 6px 18px rgba(176, 43, 43, 0.6);
}

.comment-pin.resolved {
  background: #059669 !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.45) !important;
}

.comment-pin.active {
  box-shadow: 0 0 0 4px rgba(176, 43, 43, 0.35), 0 8px 20px rgba(176, 43, 43, 0.55);
  transform: translate(-50%, -50%) scale(1.22);
}

.comment-pin.resolved.active {
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.35), 0 8px 20px rgba(5, 150, 105, 0.55) !important;
}

.comment-pin.pin-holding {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.5), 0 10px 25px rgba(176, 43, 43, 0.6);
  background: #d97706 !important;
  transition: all 0.25s ease;
}

.comment-pin.pin-dragging {
  cursor: grabbing !important;
  transform: translate(-50%, -50%) scale(1.35);
  box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.4), 0 15px 30px rgba(0, 0, 0, 0.3);
  background: #b45309 !important;
  z-index: 60 !important;
}

.comment-pin.story-pin {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 0 2.5px rgba(245, 158, 11, 0.45), 0 4px 14px rgba(217, 119, 6, 0.5) !important;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: -0.2px;
}

.comment-pin.story-pin:hover {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.45), 0 4px 12px rgba(217, 119, 6, 0.4) !important;
}

.comment-pin.story-pin.active {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 0 5.5px rgba(245, 158, 11, 0.7), 0 6px 18px rgba(217, 119, 6, 0.4) !important;
  transform: translate(-50%, -50%) scale(1.15);
}

.comment-pin.story-pin.pin-highlighted {
  animation: pin-story-pulse 0.7s ease-out 2;
  z-index: 55 !important;
}

@keyframes pin-story-pulse {
  0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  50% { transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.comment-pin.pin-highlighted {
  animation: pin-spotlight-pulse 0.7s ease-out 2;
  z-index: 55 !important;
}

@keyframes pin-spotlight-pulse {
  0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(176, 43, 43, 0.6); }
  50% { transform: translate(-50%, -50%) scale(1.18); box-shadow: 0 0 0 8px rgba(176, 43, 43, 0); }
  100% { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 0 0 rgba(176, 43, 43, 0); }
}

/* Balloon Comment Popover Card */
.comment-balloon-card {
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.9);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Spotlight Story & Guided Walkthrough Engine */
:root {
  --spotlight-bg: rgba(15, 23, 42, 0.78);
}

.tour-spotlight-box {
  position: absolute;
  box-shadow: 0 0 0 9999px var(--spotlight-bg), 0 0 25px rgba(176, 43, 43, 0.5);
  border: 2px solid #b02b2b;
  border-radius: 12px;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 45;
}

.tour-balloon {
  position: absolute;
  z-index: 55;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}

.balloon-arrow {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #ffffff;
  transform: rotate(45deg);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.balloon-arrow.arrow-top {
  top: -7px;
  left: 50%;
  margin-left: -7px;
  border-bottom: none;
  border-right: none;
}

.balloon-arrow.arrow-bottom {
  bottom: -7px;
  left: 50%;
  margin-left: -7px;
  border-top: none;
  border-left: none;
}

.spotlight-cutout {
  position: absolute;
  box-shadow: 0 0 0 9999px rgba(26, 32, 44, 0.85);
  border: 2px solid #b02b2b;
  border-radius: 12px;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}

.spotlight-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 16px;
  border: 2px solid rgba(176, 43, 43, 0.4);
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 0.2; }
  100% { transform: scale(0.96); opacity: 0.8; }
}

/* WordPress Admin Specific Tweaks */
#wpcontent {
  padding-left: 0 !important;
}
.proto-preview-wp-wrap {
  margin: -10px 0 0 -20px;
}

/* Interactive Sitemap Architecture Tree Styles */
.sitemap-node-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sitemap-node-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(203, 213, 225, 0.8);
}

/* Sticky Overview Header & Delivery Progress Bar */
#overview-sticky-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: #ffffff;
}

