/**
 * Najibul Video - Learn-and-Earn Dopamine UI
 * Golden Earning Ring & Confetti Milestone Toast
 */

/* Earning Progress Ring overlay on video container */
.nv-earning-ring {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    z-index: 50;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nv-earning-ring:hover {
    transform: scale(1.12);
}

.nv-ring-svg {
    width: 48px;
    height: 48px;
    transform: rotate(-90deg);
}

.nv-ring-track {
    stroke: rgba(255, 255, 255, 0.15);
}

.nv-ring-progress {
    stroke: var(--nv-accent-gold, #f59e0b);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.4s ease;
    filter: drop-shadow(0 0 6px var(--nv-accent-gold-glow, rgba(245, 158, 11, 0.6)));
}

.nv-ring-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.nv-coin-icon {
    font-size: 11px;
    line-height: 1;
}

.nv-earning-val {
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nv-ring-tooltip {
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--nv-border-glow, rgba(245, 158, 11, 0.4));
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.nv-earning-ring:hover .nv-ring-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
}

/* Milestone Toast Alert */
.nv-milestone-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 27, 75, 0.95) 100%);
    border: 1.5px solid #f59e0b;
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.35), 0 4px 12px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    padding: 14px 20px;
    z-index: 100000;
    color: #ffffff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 380px;
}

.nv-milestone-toast.nv-toast-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nv-toast-icon {
    font-size: 28px;
    animation: nv-bounce 1s infinite alternate;
}

.nv-toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.nv-toast-desc {
    font-size: 12px;
    color: #e2e8f0;
    line-height: 1.4;
}

@keyframes nv-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}
