/* ── Figma Comment Pin ──────────────────────────────────── */
.figma-comment {
    position: absolute;
    top: 22%;
    right: 360px;
    z-index: 8;
    pointer-events: none;
    animation: fcFloat 9s ease-in-out infinite;
}
.fig-comment-pin {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
}
.fig-comment-av {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 2px;
    background: var(--pink);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(255,45,120,0.42);
}
.fig-comment-bubble {
    background: #fff;
    color: #1e1e1e;
    border-radius: 10px 10px 10px 2px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s ease;
    line-height: 1.4;
}
.figma-comment.show-bubble .fig-comment-bubble {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── Collaborative Cursor ───────────────────────────────── */
.fig-collab {
    position: absolute;
    pointer-events: none;
    z-index: 15;
    top: 38%;
    left: 40%;
    animation: collabDrift 16s ease-in-out infinite;
}
.fig-collab-arrow {
    display: block;
    width: 20px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.fig-collab-name {
    display: inline-block;
    background: #7b61ff;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 2px 8px 8px 8px;
    margin-top: 3px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* ── Component Badge (on selection frame) ───────────────── */
.figma-comp-badge {
    position: absolute;
    top: -26px;
    left: -1px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: #a259ff;
    letter-spacing: 0.06em;
    font-family: 'SF Mono', 'Fira Code', monospace;
    pointer-events: none;
    white-space: nowrap;
}

/* ── Zoom Indicator ─────────────────────────────────────── */
.figma-zoom {
    position: absolute;
    bottom: 76px;
    right: 28px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: rgba(255,255,255,0.50);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px;
    padding: 7px 14px;
    pointer-events: none;
    animation: fadeInUp 1s ease 1.6s both;
}
.figma-zoom-pct {
    color: rgba(255,255,255,0.88);
    font-weight: 700;
}

/* ── Skills Ticker Strip ────────────────────────────────── */
.ticker-wrap {
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 14px 0;
    background: #0d0d0d;
    position: relative;
}
.ticker-wrap::before,
.ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, #0d0d0d, transparent);
}
.ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, #0d0d0d, transparent);
}
.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 32s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.tk-item {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.32);
    white-space: nowrap;
    transition: color 0.2s;
    cursor: default;
}
.tk-item:hover { color: rgba(255,255,255,0.88); }
.tk-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pink);
    flex-shrink: 0;
}

/* ── Inspect row highlight (auto-cycle) ─────────────────── */
.inspect-row {
    transition: background 0.35s;
    border-radius: 5px;
    padding: 3px 6px;
    margin: 0 -6px;
}
.inspect-row.inspect-active {
    background: rgba(255,45,120,0.15);
}
.inspect-row.inspect-active .inspect-key {
    color: var(--pink);
}

/* ── Button ripple ──────────────────────────────────────── */
.btn-primary,
.btn-nav,
.btn-submit {
    position: relative;
    overflow: hidden;
}
.btn-ripple {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.38);
    transform: translate(-50%, -50%) scale(0);
    animation: rippleOut 0.65s ease-out forwards;
    pointer-events: none;
}

/* ── Color chip interactive states ─────────────────────── */
.color-chip {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.color-chip:hover   { transform: scale(1.18); }
.color-chip.chip-copied {
    box-shadow: 0 0 0 3px var(--pink);
    transform: scale(1.22);
}

/* ── Keyframes ──────────────────────────────────────────── */
@keyframes fcFloat {
    0%, 100% { transform: translate(0, 0); }
    35%  { transform: translate(5px, -10px); }
    70%  { transform: translate(-3px, 5px); }
}
@keyframes collabDrift {
    0%   { transform: translate(0, 0);         opacity: 1;   }
    18%  { transform: translate(130px, 50px);  opacity: 1;   }
    35%  { transform: translate(210px, -15px); opacity: 0.8; }
    50%  { transform: translate(90px, 120px);  opacity: 1;   }
    65%  { transform: translate(-30px, 70px);  opacity: 0.9; }
    82%  { transform: translate(50px, -20px);  opacity: 1;   }
    100% { transform: translate(0, 0);         opacity: 1;   }
}
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes rippleOut {
    to { transform: translate(-50%, -50%) scale(30); opacity: 0; }
}
