/* =============================================================================
 * Avalonia Polish v1.0 — scroll-top, badges, section polish
 * (cookie banner má vlastný self-contained cookie-consent.js)
 * ========================================================================== */

/* -------------------------------------------------------------------------- */
/*  SCROLL-TO-TOP BUTTON — gaming style                                       */
/* -------------------------------------------------------------------------- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg,
        var(--secondary-color, #7c3aed),
        var(--tertiary-color, #a855f7));
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 30px rgba(var(--secondary-color-rgb, 124, 58, 237), 0.5),
        0 0 0 0 rgba(var(--tertiary-color-rgb, 168, 85, 247), 0.6);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: opacity 0.4s ease,
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
    z-index: 9997;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: scrollTopPulse 2.5s ease-in-out infinite;
}

@keyframes scrollTopPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(var(--secondary-color-rgb, 124, 58, 237), 0.5),
                          0 0 0 0    rgba(var(--tertiary-color-rgb, 168, 85, 247), 0.6); }
    50%      { box-shadow: 0 10px 30px rgba(var(--secondary-color-rgb, 124, 58, 237), 0.5),
                          0 0 0 12px rgba(var(--tertiary-color-rgb, 168, 85, 247), 0); }
}

.scroll-top-btn:hover {
    transform: translateY(-4px) scale(1.1);
    animation: none;
    box-shadow:
        0 15px 40px rgba(var(--secondary-color-rgb, 124, 58, 237), 0.7),
        0 0 30px rgba(var(--tertiary-color-rgb, 168, 85, 247), 0.5);
}

.scroll-top-btn:active {
    transform: translateY(0) scale(0.95);
}

/* Progress ring around scroll-top */
.scroll-top-progress {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        var(--tertiary-color, #a855f7) var(--progress, 0%),
        transparent var(--progress, 0%));
    opacity: 0.7;
    z-index: -1;
    mask: radial-gradient(circle, transparent 56%, black 58%);
    -webkit-mask: radial-gradient(circle, transparent 56%, black 58%);
}

@media (prefers-reduced-motion: reduce) {
    #avalonia-cookie-banner {
        animation: none !important;
        transform: translateX(-50%) translateY(0) !important;
    }
    #avalonia-cookie-banner::before { animation: none !important; }
    .scroll-top-btn.visible { animation: none !important; }
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
    }
}

/* -------------------------------------------------------------------------- */
/*  HERO SUBTITLE BADGE — pulsing border                                      */
/* -------------------------------------------------------------------------- */
.hero-subtitle {
    padding: 6px 16px;
    border: 1px solid rgba(var(--tertiary-color-rgb, 168, 85, 247), 0.3);
    border-radius: 999px;
    background: rgba(var(--secondary-color-rgb, 124, 58, 237), 0.08);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 20px rgba(var(--tertiary-color-rgb, 168, 85, 247), 0.15);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-subtitle:hover {
    border-color: rgba(var(--tertiary-color-rgb, 168, 85, 247), 0.6);
    box-shadow: 0 0 30px rgba(var(--tertiary-color-rgb, 168, 85, 247), 0.3);
}

/* -------------------------------------------------------------------------- */
/*  SECTION SUBTITLE — badge look                                             */
/* -------------------------------------------------------------------------- */
.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(var(--secondary-color-rgb, 124, 58, 237), 0.12);
    border: 1px solid rgba(var(--tertiary-color-rgb, 168, 85, 247), 0.25);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--tertiary-color, #a855f7);
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.section-subtitle:hover { transform: translateY(-2px); }

.section-subtitle i {
    font-size: 11px;
    color: var(--tertiary-color, #a855f7);
}
