/* Global attention grabber for the theme selector */

.theme-attn-container { display: inline-block; }
.theme-attn-container .attn-target {
  position: relative;
}

/* Pulse ring when active */
.theme-attn-container.attn-active .attn-target {
  animation: attn-pulse 1.3s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(99, 179, 237, 0.65);
  border-color: rgba(99, 179, 237, 0.85) !important;
}
@keyframes attn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(99, 179, 237, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(99, 179, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 179, 237, 0); }
}

/* Callout bubble */
.attn-callout {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.attn-callout .attn-bubble {
  position: relative;
  background: linear-gradient(180deg, #0b2545, #0a1f38);
  color: #eaf3ff;
  border: 1px solid rgba(99, 179, 237, 0.5);
  border-radius: 10px;
  padding: .5rem .75rem .5rem 1rem;
  box-shadow: 0 10px 20px rgba(13, 51, 89, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
  min-width: 260px;
}
.attn-callout .attn-text { font-weight: 600; font-size: .9rem; }
.attn-callout .attn-close { position: absolute; right: .25rem; top: .25rem; filter: invert(1) grayscale(1); opacity: .7; }
.attn-callout .attn-close:hover { opacity: 1; }
.attn-callout .attn-arrow {
  width: 0; height: 0; margin: 0 auto; margin-top: 6px;
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-top: 8px solid rgba(99, 179, 237, 0.65);
  filter: drop-shadow(0 -2px 6px rgba(13,51,89,.35));
}

/* Shimmer attention when shown */
.theme-attn-container.attn-active .attn-callout { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(-2px); }
.theme-attn-container.attn-active .attn-bubble { animation: attn-shimmer 2.2s ease-in-out infinite; }
@keyframes attn-shimmer {
  0%, 100% { box-shadow: 0 10px 20px rgba(13, 51, 89, 0.35), inset 0 1px 0 rgba(255,255,255,0.1); }
  50% { box-shadow: 0 12px 24px rgba(13, 51, 89, 0.45), inset 0 1px 0 rgba(255,255,255,0.2); }
}

/* Keep readable in light headers too */
.navbar .theme-attn-container .attn-bubble { background: linear-gradient(180deg, #0b2545, #0a1f38); color: #eaf3ff; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .theme-attn-container.attn-active .attn-target { animation: none; }
  .theme-attn-container.attn-active .attn-bubble { animation: none; }
}

/* BIG arrows and obvious text */
/* Small pulsating text */
.theme-attn-container { position: relative; }
.theme-hint {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-left: 8px;
  font-size: .78rem;
  font-weight: 700;
  color: #ffea7a; /* readable on dark navs */
  opacity: 0;
  cursor: pointer;
  user-select: none;
  text-transform: lowercase;
  text-shadow: 0 0 6px rgba(255, 234, 122, .8);
  transition: opacity .25s ease;
  white-space: nowrap;
}
.theme-attn-container.attn-active .theme-hint { opacity: 1; animation: small-pulse 1.2s ease-in-out infinite; }
@keyframes small-pulse {
  0%   { transform: translateY(0);   filter: drop-shadow(0 0 0 rgba(255, 234, 122, 0)); }
  50%  { transform: translateY(-1px); filter: drop-shadow(0 0 6px rgba(255, 234, 122, .9)); }
  100% { transform: translateY(0);   filter: drop-shadow(0 0 0 rgba(255, 234, 122, 0)); }
}
@media (max-width: 576px) {
  .theme-hint { font-size: .72rem; }
}
