/* Virüs: kutunun içinde absolute — scroll/sticky ile doğal senkron */
.neon-beam {
  position: absolute !important;
  z-index: 200000;
  transition: none;
  pointer-events: none;
  transform: none !important;
}

/* Kartlar overflow:hidden ile neon köşeleri kırpar — virüs varken görünür kalsın */
.project-card:has(.neon-beam),
.blog-block-item:has(.neon-beam),
.hire-me-banner:has(.neon-beam),
.footer-brick:has(.neon-beam),
.pixel-box:has(.neon-beam),
.sidebar-hud__body:has(.neon-beam) {
  overflow: visible;
}

.blog-block-item:has(.neon-beam) .blog-block-item__media {
  overflow: visible;
}

/* Dokümanla birlikte kayar; JS viewport merkezi + scroll ile left/top yazar */
body {
  position: relative;
}

/* ── TACTICAL SCOPE ANTIVIRUS SCANNER (COMPACT & DISTINCT) ── */
.antivirus-scanner {
  position: absolute !important;
  width: 34px;
  height: 34px;
  pointer-events: none;
  z-index: 200001;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.antivirus-scanner.active { opacity: 1; }

/* The "Scope" Circle - Smaller and thicker border for distinction */
.antivirus-scanner .ring-outer {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(255, 0, 85, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.2);
}

/* Rotating Sweep Line - Faster and brighter */
.antivirus-scanner .ring-outer::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border: 2px solid transparent;
  border-top-color: #ff0055;
  border-radius: 50%;
  animation: rotate-cw 0.6s linear infinite;
  filter: drop-shadow(0 0 5px #ff0055);
}

/* Inner Pulsing Crosshair - Sharper */
.antivirus-scanner .ring-inner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: none;
  animation: scope-pulse 0.8s ease-in-out infinite;
}

.antivirus-scanner .ring-inner::before,
.antivirus-scanner .ring-inner::after {
  content: '';
  position: absolute;
  background: #ff0055;
  box-shadow: 0 0 4px #ff0055;
}

.antivirus-scanner .ring-inner::before {
  top: 50%; left: -2px; right: -2px;
  height: 1.5px;
  transform: translateY(-50%);
}
.antivirus-scanner .ring-inner::after {
  left: 50%; top: -2px; bottom: -2px;
  width: 1.5px;
  transform: translateX(-50%);
}

/* Central Sharp Point */
.antivirus-scanner .core {
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff0055, 0 0 15px #ff0055;
  z-index: 5;
}

/* Labels: Side HUD Style - More compact */
.antivirus-scanner .data-label {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 5.5px;
  color: #ff0055;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  font-weight: 700;
}

.antivirus-scanner .label-top {
  top: -10px;
  right: -24px;
  background: rgba(255, 0, 85, 0.15);
  padding: 0px 3px;
  border-right: 2px solid #ff0055;
  animation: label-flicker 2s infinite;
}

.antivirus-scanner .label-bottom {
  bottom: -10px;
  left: -24px;
  background: rgba(255, 0, 85, 0.15);
  padding: 0px 3px;
  border-left: 2px solid #ff0055;
  opacity: 0.9;
  position: relative;
}

/* Scanning Progress Bar Under Bottom Label */
.antivirus-scanner .label-bottom::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 1.5px;
  background: #ff0055;
  box-shadow: 0 0 4px #ff0055;
  animation: scan-progress 1.5s linear infinite;
}

@keyframes scan-progress {
  0% { width: 0%; opacity: 0.3; }
  50% { width: 100%; opacity: 1; }
  100% { width: 0%; opacity: 0.3; }
}

/* Neutralizing State: Red Alert */
.antivirus-scanner.neutralizing {
  animation: scope-alert 0.15s infinite;
}
.antivirus-scanner.neutralizing .ring-outer {
  border-color: #fff;
  background: rgba(255, 0, 85, 0.4);
  box-shadow: 0 0 20px #ff0055;
}

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

@keyframes scope-alert {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes label-flicker {
  0%, 10%, 100% { opacity: 1; }
  5% { opacity: 0.7; }
}

@keyframes rotate-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── SECURITY STATUS UI (MATCHING HEADER BUTTONS) ── */
.security-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: inherit;
  font-size: 0.55rem;
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
  height: auto;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.security-status.alert {
  color: #ff0055;
  border-color: #ff0055;
  background: rgba(255, 0, 85, 0.1);
  text-shadow: 0 0 5px #ff0055;
  animation: status-blink 1s infinite alternate;
}

.security-status .status-icon {
  font-size: 0.65rem;
}

.security-status .status-text {
  min-width: 0;
}

@keyframes status-blink { from { opacity: 1; } to { opacity: 0.6; } }

@media (max-width: 600px) {
  .security-status {
    flex-shrink: 1;
    min-width: 0;
    align-self: stretch;
    padding: 6px 8px;
    gap: 6px;
    font-size: 0.42rem;
    letter-spacing: 0.04em;
    max-width: min(112px, 32vw);
    box-sizing: border-box;
    justify-content: center;
  }
  .security-status .status-icon {
    font-size: 0.55rem;
    flex-shrink: 0;
  }
  .security-status .status-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Mobil: antivirus / neon öğeleri pozisyonları korunur; taşan kırpılır — yatay layout genişlemesi olmaz */
@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }
  @supports (overflow: clip) {
    html,
    body {
      overflow-x: clip;
    }
  }
}
