/* =====================================================================
   Telegram + LinkedIn: spinning hero icon, plain footer icons
   Script: js/social-fx.js. Without JS every link still works and the icons stay still.
   ===================================================================== */

/* ---------- Homepage: spinning Telegram icon ---------- */
.dsh-hero-art { position: relative; }
a.dstg {
    --dstg-size: clamp(92px, 11vw, 140px);
    position: absolute;
    right: 3%;
    bottom: -4%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
a.dstg:hover, a.dstg:focus { text-decoration: none; }
a.dstg:focus-visible { outline: 2px solid var(--dsh-amber-deep, #c97f0c); outline-offset: 8px; border-radius: 16px; }
.dstg-stage {
    position: relative;
    display: block;
    width: var(--dstg-size);
    height: var(--dstg-size);
    perspective: 700px;
}
.dstg-glow {
    position: absolute;
    inset: -28%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 163, 30, .42), rgba(242, 163, 30, 0) 66%);
    pointer-events: none;
    transition: transform .3s ease;
}
a.dstg:hover .dstg-glow { transform: scale(1.14); }
.dstg-sparks {
    position: absolute;
    left: -60%;
    top: -60%;
    width: 220%;
    height: 220%;
    pointer-events: none;
}
.dstg-spinner {
    position: absolute;
    inset: 0;
    display: block;
    transform-style: preserve-3d;
    will-change: transform;
}
.dstg-layer {
    position: absolute;
    inset: 0;
    display: block;
    background: url("../img/telegram-spin.webp") center / contain no-repeat;
}
.dstg-front { filter: drop-shadow(0 4px 12px rgba(201, 127, 12, .4)); }
.dstg-shine {
    position: absolute;
    inset: 6%;
    display: block;
    border-radius: 22%;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 250, 220, .55) 50%, transparent 65%);
    background-size: 300% 100%;
    mix-blend-mode: overlay;
}
.dstg-label {
    font-family: var(--dsh-font-mono, "IBM Plex Mono", ui-monospace, monospace);
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--dsh-amber-deep, #c97f0c);
    background: rgba(255, 255, 255, .85);
    border: 1px solid var(--dsh-line, #ece2d3);
    border-radius: 9999px;
    padding: 6px 11px;
    transition: color .15s ease, border-color .15s ease;
}
a.dstg:hover .dstg-label { color: #241f1a; border-color: var(--dsh-amber, #f2a31e); }
/* Hidden until the float-in starts (the script adds .dstg-wait) */
a.dstg.dstg-wait { opacity: 0; }
@media (max-width: 991px) { a.dstg { bottom: 0; } }

/* ---------- Footer: plain icons side by side ---------- */
#footer.dsf .dsf-socials { order: 1; display: flex; gap: 10px; }
@media (min-width: 768px) { #footer.dsf .dsf-socials { order: 2; } }
