/**
 * Unlock Counter Styles for Hunt Feed
 * 
 * Shows progress of image unlocking through scoring
 */

/* ===========================
   UNLOCK COUNTER
   =========================== */
.hunt-feed .unlock-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: white;
    margin-left: auto;
    margin-right: 12px;
}

.hunt-feed .unlock-icon {
    font-size: 16px;
}

.hunt-feed .unlock-text {
    font-weight: 500;
}

.hunt-feed .unlock-text #unlock-count {
    color: #4CAF50;
    font-weight: 700;
}

.hunt-feed .unlock-text #total-count {
    color: rgba(255, 255, 255, 0.8);
}

.hunt-feed .unlock-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Guest user styling */
.hunt-feed.guest .unlock-counter {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
}

.hunt-feed.guest .unlock-hint {
    color: #FFC107;
    font-weight: 500;
}

/* ===========================
   MOBILE ADJUSTMENTS
   =========================== */
@media (max-width: 768px) {
    .hunt-feed .unlock-counter {
        position: absolute;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        z-index: 20;
    }
    
    .hunt-feed .unlock-hint {
        display: none; /* Hide hint on mobile to save space */
    }
    
    /* Mobile lock overlay adjustments */
    .hunt-feed .lock-overlay {
        padding: 20px;
    }
    
    .hunt-feed .lock-icon {
        font-size: 40px;
    }
    
    .hunt-feed .lock-message {
        font-size: 15px;
        padding: 0 16px;
        max-width: 80%;
    }
}

@media (max-width: 414px) {
    .hunt-feed .unlock-counter {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .hunt-feed .unlock-icon {
        font-size: 14px;
    }
}

/* ===========================
   LOCKED IMAGE STYLING
   =========================== */
.hunt-feed .image-wrapper.locked {
    position: relative;
    overflow: hidden;
}

.hunt-feed .image-wrapper.locked .original-image {
    filter: blur(10px);
    opacity: 0.6;
    transform: scale(1.1); /* Slight zoom to hide blur edges */
}

.hunt-feed .lock-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7);
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px;
    z-index: 5;
    transform: none !important; /* Override the conflicting transform */
    text-align: center !important;
}

.hunt-feed .lock-icon {
    font-size: 48px;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.9);
}

.hunt-feed .lock-message {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 0 20px;
    max-width: 250px;
    line-height: 1.4;
    font-weight: 500;
}

/* Guest lock message */
.hunt-feed.guest .lock-message {
    color: #FFC107;
    font-weight: 500;
}

/* ===========================
   ANIMATION
   =========================== */
.hunt-feed .unlock-counter {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Pulse animation when score unlocks new images */
.hunt-feed .unlock-counter.pulse {
    animation: pulse 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
}