﻿/**
 * Scroll to Top Button - Premium Design (Obsidian & Champagne)
 * =============================================================
 */

.scroll-top-btn {
    position: fixed;
    bottom: var(--space-8);
    left: var(--space-8);
    /* Left side as requested */
    z-index: var(--z-sticky);

    width: 48px;
    height: 48px;

    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-premium);

    color: var(--color-primary);
    font-size: 1.2rem;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: none;
    color: var(--color-bg-primary);
    box-shadow: var(--shadow-glow-primary);
    transform: translateY(-5px);
    border-color: transparent;
}

/* Icon styling (assuming we use an HTML entity or SVG) */
.scroll-top-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Responsive Position */
@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: var(--space-20);
        /* Moved up to avoid covering content/footer/consent on mobile if needed */
        left: var(--space-4);
        width: 40px;
        height: 40px;
    }
}