/* Premium Dhikr Floating Banner Styles — Glassmorphic, Minimalist & Bottom-Right Pill */

body.has-vpn-alert {
    /* No scroll-locking! Allow scrolling freely */
}

.vpn-alert-overlay {
    position: fixed;
    bottom: calc(var(--safe-bottom) + var(--space-4));
    right: max(var(--space-4), var(--safe-right));
    left: auto; /* Positioned at bottom-right */
    transform: translateY(25px);
    width: max-content;
    max-width: min(320px, calc(100vw - 32px));
    z-index: 100000; /* Stays on top of content */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Let clicks pass through overlay container */
    transition: opacity var(--transition-slow), visibility var(--transition-slow), transform var(--transition-slow);
}

.vpn-alert-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Remove center translation */
}

/* Glassmorphism Dhikr Micro-Pill */
.vpn-alert-box {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius-xl);
    padding: var(--space-3);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(45, 212, 191, 0.08);
    position: relative;
    pointer-events: auto; /* Re-enable clicks on the banner */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.vpn-alert-dhikr-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

/* Divider between Dhikr and Promo */
.vpn-alert-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.15);
    margin: 0.15rem 0;
}

/* Promo Section */
.vpn-alert-promo-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    direction: rtl; /* Kurdish RTL */
}

.promo-text {
    font-size: 0.78rem;
    font-weight: 500;
    color: #cbd5e1;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.promo-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.promo-logo-link:hover {
    transform: scale(1.1);
}

.promo-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #1877F2;
    fill: currentColor;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(24, 119, 242, 0.3);
    transition: box-shadow var(--transition-base);
}

.promo-logo-link:hover .promo-logo {
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.6);
}

/* Spring entry animation */
.vpn-alert-overlay.is-visible .vpn-alert-box {
    transform: scale(1);
    opacity: 1;
    transition: 
        transform 0.52s cubic-bezier(0.34, 1.6, 0.64, 1), 
        opacity 0.35s var(--ease-out);
}

/* Islamic Star/Moon Icon Wrap */
.vpn-alert-icon-wrap {
    width: 24px;
    height: 24px;
    background: rgba(45, 212, 191, 0.12);
    border: 1.5px solid rgba(45, 212, 191, 0.35);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 0 8px rgba(45, 212, 191, 0.15);
}

/* Slow rotate dash outer ring */
.vpn-alert-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -3px;
    border: 1px dashed rgba(45, 212, 191, 0.25);
    border-radius: var(--radius-full);
    animation: dhikr-spin-dashed 28s linear infinite;
}

@keyframes dhikr-spin-dashed {
    to {
        transform: rotate(-360deg);
    }
}

.vpn-alert-icon svg {
    width: 11px;
    height: 11px;
    filter: drop-shadow(0 0 3px rgba(45, 212, 191, 0.5));
    display: block;
}

/* Content Area */
.vpn-alert-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Arabic Text Styling & Transition */
.dhikr-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ecfdf5;
    font-family: var(--font-heading);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    letter-spacing: 0.2px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .vpn-alert-overlay {
        bottom: calc(var(--safe-bottom) + var(--space-4));
        right: var(--space-4);
        left: auto;
        width: max-content;
        max-width: min(290px, calc(100vw - 24px));
    }
    
    .vpn-alert-box {
        padding: var(--space-2.5);
        gap: 0.35rem;
        border-radius: var(--radius-lg);
    }
    
    .dhikr-text {
        font-size: 0.74rem;
        letter-spacing: 0px;
    }
    
    .promo-text {
        font-size: 0.72rem;
        line-height: 1.35;
    }
    
    .promo-logo {
        width: 24px;
        height: 24px;
    }
    
    .vpn-alert-icon-wrap {
        width: 20px;
        height: 20px;
    }
    
    .vpn-alert-icon-wrap::before {
        inset: -2px;
    }
    
    .vpn-alert-icon svg {
        width: 9px;
        height: 9px;
    }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .vpn-alert-box {
        transform: none !important;
        transition: none !important;
    }
    .vpn-alert-icon-wrap::before {
        animation: none !important;
    }
    .vpn-alert-overlay {
        transition: none !important;
        transform: translateY(0) !important;
    }
    .dhikr-text {
        transition: none !important;
    }
}
