/* =========================================================
   WX DIGITALS - EXTENSION STYLES (Çok Optimize, Modern & Responsive) 
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 1. Görüntüleme Bildirimi */
.wx-view-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(240, 240, 240, 0.6);
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.wx-view-badge.show {
    opacity: 1;
    transform: translateY(0);
}
.wx-eye-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wx-eye-icon span {
    font-size: 14px;
    z-index: 2;
}
.wx-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #d32f2f;
    border-radius: 50%;
    opacity: 0.3;
    animation: wxPulse 2s infinite;
    z-index: 1;
}

@keyframes wxPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* 2. Aciliyet Barı (Urgency Bar) */
.wx-urgency-container {
    font-family: 'Inter', sans-serif;
}
.wx-urgency-text {
    font-size: 13px;
    font-weight: 500;
    color: #d32f2f;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.wx-urgency-text strong {
    font-weight: 700;
}
.wx-progress-bg {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}
.wx-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff5252, #d32f2f);
    border-radius: 10px;
    width: 0%; /* JS ile dolacak */
    transition: width 1s ease-out;
}

/* 3. Mutlu Müşteri Sayacı (Trust Badge) */
.wx-trust-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    clear: both;
}
.wx-avatars {
    display: flex;
}
.wx-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #ddd;
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}
.wx-avatar:first-child { margin-left: 0; }
.wx-trust-text {
    font-size: 13px;
    color: #444;
}
.wx-stars {
    color: #f5b301;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 2px;
}
.wx-dynamic-count {
    font-weight: 700;
    color: #111;
    transition: color 0.3s;
}
.wx-count-update {
    color: #2e7d32; /* Artış anında yeşil parlama */
}

/* 4. Canlı Satış Popup (Live Sales) */
.wx-sales-popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 320px;
    z-index: 999999;
    font-family: 'Inter', sans-serif;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wx-sales-popup.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.wx-close-popup {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 20px;
    padding: 8px 12px;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}
.wx-close-popup:hover {
    color: #333;
}
.wx-popup-img {
    width: 50px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 6px;
    object-fit: cover;
}
.wx-popup-content {
    flex: 1;
}
.wx-popup-title {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin-bottom: 3px;
}
.wx-popup-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}
.wx-popup-time {
    font-size: 10px;
    color: #aaa;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.wx-check-icon {
    color: #2e7d32;
    font-size: 12px;
}


@media (max-width: 768px) {
    .wx-sales-popup {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(150px);
        width: 90%;
        max-width: 350px;
    }
    .wx-sales-popup.show {
        transform: translateX(-50%) translateY(0);
    }
}
