/* ============================================================
   SCROLL PROGRESS RING (2026 Minimalist Design)
   ============================================================ */

.pg-scroll-progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 200ms linear;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px); /* Glassmorphism Effect */
    -webkit-backdrop-filter: blur(10px);
}

/* Active State (Jab user scroll kare) */
.pg-scroll-progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover Effect */
.pg-scroll-progress-wrap:hover {
    box-shadow: 0 8px 20px rgba(255, 51, 102, 0.2);
    transform: translateY(-3px);
}

/* The SVG Circle */
.pg-scroll-progress-wrap svg.pg-progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Start from top center */
}

.pg-scroll-progress-wrap svg.pg-progress-circle path {
    fill: none;
    stroke: var(--brand-pink, #ff3366); /* Brand Color */
    stroke-width: 4;
    box-sizing: border-box;
    transition: all 200ms linear;
    /* 308 is the circumference of the circle (2 * pi * r) */
    stroke-dasharray: 308; 
    stroke-dashoffset: 308; 
}

/* The Arrow Icon */
.pg-progress-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pg-progress-icon svg {
    width: 18px;
    height: 18px;
}

/* Arrow moves up slightly on hover */
.pg-scroll-progress-wrap:hover .pg-progress-icon {
    color: var(--brand-pink, #ff3366);
    transform: translate(-50%, -55%);
}

/* Mobile Adjustments (To avoid overlapping with sticky ads) */
@media (max-width: 768px) {
    .pg-scroll-progress-wrap {
        right: 20px;
        bottom: 80px; /* Lifted up for mobile sticky ad safety */
        height: 40px;
        width: 40px;
    }
    .pg-progress-icon svg {
        width: 16px;
        height: 16px;
    }
}