/* Woo Gift Progress – Frontend */

#wgp-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: all .3s ease;
}

#wgp-bar.wgp-unlocked {
    border-color: var(--wgp-color, #e74c3c);
    background: #fffdf0;
}

/* ── Image/nom du cadeau ── */
.wgp-gift-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.wgp-gift-img-link {
    display: block;
    flex-shrink: 0;
}

.wgp-gift-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #eee;
    transition: border-color .3s, transform .2s;
    display: block;
}

.wgp-gift-img-link:hover .wgp-gift-img {
    border-color: var(--wgp-color, #e74c3c);
    transform: scale(1.05);
}

.wgp-unlocked .wgp-gift-img {
    border-color: var(--wgp-color, #e74c3c);
}

.wgp-gift-icon {
    font-size: 36px;
    line-height: 1;
}

.wgp-gift-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wgp-gift-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.3;
}

.wgp-gift-name:hover {
    color: var(--wgp-color, #e74c3c);
    text-decoration: underline;
}

.wgp-gift-value {
    font-size: 12px;
    color: #666;
}

.wgp-gift-value strong {
    color: #333;
    font-weight: 700;
}

/* ── Barre ── */
.wgp-progress-wrap {
    flex: 1;
}

.wgp-progress-track {
    height: 12px;
    background: var(--wgp-bg, #f0f0f0);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.wgp-progress-fill {
    height: 100%;
    background: var(--wgp-color, #e74c3c);
    border-radius: 12px;
    transition: width .5s cubic-bezier(.4, 0, .2, 1);
    position: relative;
}

/* Effet brillant animé */
.wgp-progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    animation: wgp-shine 2s infinite;
}

@keyframes wgp-shine {
    0%   { left: -100%; }
    60%  { left: 100%; }
    100% { left: 100%; }
}

.wgp-message {
    margin: 0;
    font-size: 13.5px;
    color: var(--wgp-text, #333);
    line-height: 1.4;
}

.wgp-unlocked .wgp-message {
    font-weight: 600;
    color: var(--wgp-color, #e74c3c);
}

/* Petite animation confetti quand débloqué */
@keyframes wgp-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}

#wgp-bar.wgp-just-unlocked {
    animation: wgp-pop .4s ease;
}

/* Responsive */
@media (max-width: 480px) {
    #wgp-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .wgp-gift-info {
        flex-direction: row;
        min-width: auto;
    }
}
