/* =====================================================
   LOGICDYNAMICS BRAND SIGNATURE
   Ported from PayCore.Console's index.html splash +
   floating sticker. Fixed brand colors/typography —
   deliberately NOT theme-token-driven, since this is a
   consistent signature mark meant to look identical
   across every app built on this template, regardless
   of that app's own color scheme.

   Two independent pieces:
   1. .ld-splash — full-screen boot animation, lives
      inside #app until Blazor.start() replaces it.
   2. .floating-brand-sticker — fixed pill on the right
      viewport edge, lives as a sibling of #app in
      index.html so it survives every Blazor render and
      every route change, "popping out" past the app's
      own window frame since it's viewport-fixed, not
      constrained by .window.
===================================================== */

/* ---------------------------------------------------
   SPLASH — full screen centered boot animation
--------------------------------------------------- */

.ld-splash {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: transparent;
}

.ld-loading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 0;
}

#ld-svg {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 0 18px rgba(12, 192, 223, 0.3));
    overflow: visible;
}

#circle-bg {
    transform-origin: 173.75px 173px;
    transform: scale(0.02);
    opacity: 0;
}

.ld-brand-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 32px;
    letter-spacing: 6px;
    display: flex;
    align-items: baseline;
    overflow: visible;
    min-height: 40px;
}

.ld-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(-18px);
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.ld-letter.logic { color: #ed1440; }
.ld-letter.dynamics { color: #0cc0df; }

#ld-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ed1440;
    box-shadow: 0 0 12px #ed1440;
    opacity: 0;
}

@keyframes ldDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.6; }
}

@keyframes splashFadeOut {
    from { opacity: 1; }
    to { opacity: 0; pointer-events: none; }
}

.ld-splash.fading-out {
    animation: splashFadeOut 0.5s ease forwards;
}

/* ---------------------------------------------------
   FLOATING SIGNATURE STICKER — fixed pill, right edge
--------------------------------------------------- */

.floating-brand-sticker {
    position: fixed;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    z-index: 1000;
    background: transparent;
    border: 2px solid #0cc0df;
    border-radius: 35px;
    padding: 18px 12px;
    width: 56px;
    height: 280px;
    box-shadow: 0 0 20px rgba(12,192,223,0.25), 0 10px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: stickerBreath 20s cubic-bezier(0.4,0,0.2,1) infinite;
}

.floating-brand-sticker:hover {
    transform: translateY(-50%) translateX(-10px) scale(1.08);
    box-shadow: 0 0 30px rgba(12,192,223,0.5), 0 15px 50px rgba(0,0,0,0.6);
    border-color: #4FC3F7;
}

@keyframes stickerBreath {
    0% { opacity: 0; transform: translateY(-50%) translateX(80px) scale(0.8); }
    4% { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
    75% { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
    80% { opacity: 0; transform: translateY(-50%) translateX(80px) scale(0.8); }
    100% { opacity: 0; transform: translateY(-50%) translateX(80px) scale(0.8); }
}

.sticker-svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    transform-origin: center center;
    animation: rockLogo 6s cubic-bezier(0.4,0,0.2,1) 1s infinite;
}

@keyframes rockLogo {
    0% { transform: rotate(0deg); }
    33.3% { transform: rotate(0deg); }
    43.3% { transform: rotate(-90deg); }
    76.6% { transform: rotate(-90deg); }
    86.6% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.sticker-divider {
    width: 28px;
    height: 1px;
    background: rgba(12,192,223,0.3);
    flex-shrink: 0;
}

.sticker-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 300;
    font-size: 19px;
    letter-spacing: 3px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

.sticker-logo .logic { color: #0cc0df; }
.sticker-logo .dynamics { color: #ed1440; }

.sticker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ed1440;
    box-shadow: 0 0 8px #ed1440;
    animation: dotPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

@media (max-width: 768px) {
    .floating-brand-sticker {
        right: 8px;
        width: 48px;
        height: 240px;
    }
    .sticker-logo { font-size: 15px; }
    .sticker-svg { width: 28px; height: 28px; }
}

@media (max-width: 480px) {
    .floating-brand-sticker { display: none; }
}
