/* ==========================================================
   Болшевик ООД — споделени interaction стилове
   (custom cursor, magnetic buttons, link underline-fill,
   view-transitions). Включва се на всичките 7 страници.
   ========================================================== */

/* безшевен crossfade между страници (progressive enhancement,
   без ефект където не се поддържа — само Chromium) */
@view-transition {
  navigation: auto;
}

/* ---------- custom cursor ---------- */
html.has-fine-cursor{ cursor:none; }
html.has-fine-cursor a,
html.has-fine-cursor button,
html.has-fine-cursor [data-magnetic]{ cursor:none; }

.cursor-dot,
.cursor-ring{
  position:fixed;
  top:0; left:0;
  pointer-events:none;
  z-index:9998;
  border-radius:50%;
  transform:translate(-50%,-50%);
  will-change:transform;
}
.cursor-dot{
  width:6px; height:6px;
  background:var(--accent);
  transition:opacity .2s ease;
}
.cursor-ring{
  width:34px; height:34px;
  border:1px solid var(--accent);
  opacity:.7;
  transition:width .25s var(--ease), height .25s var(--ease), opacity .25s ease, border-color .25s ease;
}
.cursor-ring.is-hover{
  width:64px; height:64px;
  opacity:1;
  background:rgba(47,143,214,0.08);
}
.cursor-label{
  position:fixed;
  top:0; left:0;
  transform:translate(-50%,-50%);
  pointer-events:none;
  z-index:9998;
  font-family:'JetBrains Mono',monospace;
  font-size:.62rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--accent);
  opacity:0;
  transition:opacity .2s ease;
  white-space:nowrap;
}
.cursor-label.is-visible{opacity:1;}

/* ---------- magnetic elements ---------- */
[data-magnetic]{
  transition:transform .25s var(--ease);
  will-change:transform;
}

/* ---------- link underline-fill ---------- */
.u-fill{
  position:relative;
  background-image:linear-gradient(var(--accent), var(--accent));
  background-repeat:no-repeat;
  background-position:0 100%;
  background-size:0% 1px;
  transition:background-size .35s var(--ease);
  padding-bottom:1px;
}
.u-fill:hover{background-size:100% 1px;}

/* прилага се автоматично на изброените линкове чрез JS class-инжекция,
   за да не се пипа маркъпа на 7-те страници едно по едно */
.foot-grid a.u-fill,
.contact-item a.u-fill{
  padding-bottom:0;
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse){
  .cursor-dot, .cursor-ring, .cursor-label{ display:none !important; }
  html.has-fine-cursor{ cursor:auto; }
}
