/* ── Scroll Progress / PWA Install Button ── */

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(30px); }
}

.scroll-progress {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 50px;
    height: 50px;
    z-index: 999999 !important;
    cursor: pointer;
    pointer-events: auto !important;
    visibility: hidden;
    opacity: 0;
}

.scroll-progress.show {
    visibility: visible;
    opacity: 1;
    animation: slideUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.scroll-progress.hide {
    animation: slideDown 0.4s ease forwards;
}

/* Green circle */
.scroll-progress-circle {
    position: relative;
    width: 100%;
    height: 100%;
    background: #799A2A;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(121, 154, 42, 0.45);
    border: none;
}

.scroll-progress-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
}

/* Ring background — subtle white */
.scroll-progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.25);
    stroke-width: 3;
}

/* Ring progress — white */
.scroll-progress-fill {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 169.65;
    stroke-dashoffset: 169.65;
    transition: stroke-dashoffset 0.1s ease;
}

/* White icon centered */
.scroll-progress-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    z-index: 1;
}

.scroll-progress:hover {
    transform: scale(1.08);
    transition: transform 0.2s ease;
}

/* Mobile */
@media (max-width: 768px) {
    .scroll-progress {
        width: 48px;
        height: 48px;
        bottom: 20px !important;
        right: 16px !important;
    }
    .scroll-progress-icon { font-size: 14px; }
    .scroll-progress-fill,
    .scroll-progress-bg   { stroke-width: 2.5; }
}

/* Dark mode */
[data-theme="dark"] .scroll-progress-circle {
    background: #5a7520;
    box-shadow: 0 4px 15px rgba(90, 117, 32, 0.5);
}
