/* Akava Back to Top - Frontend Styles */

/* Base button styles that don't change via settings */
.akava-btt {
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: 1;
    text-decoration: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.akava-btt::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.akava-btt::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: radial-gradient(circle,
        rgba(72, 105, 98, 0.4) 0%,
        transparent 70%
    );
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

.akava-btt:hover::before,
.akava-btt:hover::after {
    opacity: 1;
}

.akava-btt:active {
    transform: translateY(-4px) scale(1.02) !important;
    transition-duration: 0.1s;
}

.akava-btt:focus-visible {
    outline: none;
    box-shadow: 
        0 6px 24px rgba(72, 105, 98, 0.4),
        0 12px 48px rgba(0, 0, 0, 0.25),
        0 0 0 4px rgba(72, 105, 98, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Animations */
@keyframes akava-btt-slide-in {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8) rotate(15deg);
    }
    60% {
        transform: translateY(-5px) scale(1.05) rotate(-3deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
    }
}

@keyframes akava-btt-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* RTL Support */
[dir="rtl"] .akava-btt {
    /* Position will be handled via inline styles based on settings */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .akava-btt {
        border: 2px solid currentColor !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .akava-btt,
    .akava-btt *,
    .akava-btt::before,
    .akava-btt::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Print styles - hide button */
@media print {
    .akava-btt {
        display: none !important;
    }
}
