/* Live Price Ticker Styles */

.lpt-ticker-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
}

.lpt-ticker-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.lpt-ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    padding: 0 20px;
    height: 100%;
}

/* Scrolling animation */
@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover */
.lpt-ticker-wrapper:hover .lpt-ticker-content {
    animation-play-state: paused;
}

.lpt-ticker-item {
    display: inline-flex;
    align-items: center;
    margin: 0 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    gap: 10px;
}

.lpt-icon {
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    animation: pulse 2s ease-in-out infinite;
}

.lpt-gold-icon {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.lpt-gold-world-icon {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.lpt-gold-gram-icon {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

.lpt-bitcoin-icon {
    filter: drop-shadow(0 0 8px rgba(247, 147, 26, 0.6));
}

.lpt-tether-icon {
    filter: drop-shadow(0 0 8px rgba(38, 166, 154, 0.6));
    font-weight: bold;
}

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

.lpt-label {
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lpt-price {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lpt-unit {
    font-size: 14px;
    font-weight: 500;
    margin-left: 4px;
}

.lpt-price.updated {
    animation: priceUpdate 0.5s ease;
}

@keyframes priceUpdate {
    0%, 100% {
        transform: scale(1);
        background: rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.05);
        background: rgba(76, 175, 80, 0.3);
    }
}

.lpt-change {
    font-size: 14px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lpt-change.positive {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.2);
}

.lpt-change.negative {
    color: #f44336;
    background: rgba(244, 67, 54, 0.2);
}

.lpt-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    margin: 0 20px;
}

.lpt-loading {
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .lpt-ticker-item {
        margin: 0 20px;
    }
    
    .lpt-label {
        font-size: 14px;
    }
    
    .lpt-price {
        font-size: 16px;
        padding: 3px 10px;
    }
    
    .lpt-change {
        font-size: 12px;
    }
    
    .lpt-icon {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .lpt-ticker-item {
        margin: 0 15px;
        gap: 6px;
    }
    
    .lpt-label {
        font-size: 12px;
    }
    
    .lpt-price {
        font-size: 14px;
        padding: 2px 8px;
    }
    
    .lpt-change {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .lpt-icon {
        font-size: 18px;
    }
}

/* Elementor compatibility */
.elementor-widget-container .lpt-ticker-wrapper {
    margin: 0;
}

/* RTL Support */
[dir="rtl"] .lpt-ticker-content {
    animation: scroll-right 30s linear infinite;
}

@keyframes scroll-right {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Additional visual effects */
.lpt-ticker-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to right, rgba(26, 26, 26, 1), transparent);
    z-index: 1;
    pointer-events: none;
}

.lpt-ticker-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to left, rgba(26, 26, 26, 1), transparent);
    z-index: 1;
    pointer-events: none;
}
