/* Precious Metals Ticker Styles */

.pmt-ticker-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pmt-ticker-title {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.pmt-ticker-container {
    position: relative;
    overflow: hidden;
    min-height: 50px;
}

.pmt-ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 10px 0;
}

/* Yükleniyor Durumu */
.pmt-ticker-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.pmt-ticker-loading span {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Ticker Item */
.pmt-ticker-item {
    display: inline-flex;
    align-items: center;
    margin: 0 20px;
    font-size: 15px;
    font-weight: 500;
    gap: 8px;
}

.pmt-metal-icon {
    font-size: 20px;
    margin-right: 5px;
}

.pmt-metal-name {
    font-weight: 600;
    margin-right: 10px;
    color: #FFD700;
}

.pmt-price-group {
    display: inline-flex;
    gap: 15px;
}

.pmt-price-item {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
}

.pmt-price-label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.pmt-price-value {
    font-weight: 700;
    font-size: 16px;
}

.pmt-price-buying .pmt-price-value {
    color: #4CAF50;
}

.pmt-price-selling .pmt-price-value {
    color: #FF5722;
}

.pmt-currency {
    font-size: 12px;
    opacity: 0.8;
    margin-left: 2px;
}

.pmt-separator {
    color: #FFD700;
    margin: 0 15px;
    font-size: 20px;
    opacity: 0.5;
}

/* Animasyonlar */

/* Scroll Animation (Akan Yazı) */
.pmt-ticker-wrapper[data-animation="scroll"] .pmt-ticker-content {
    animation: scroll-left linear infinite;
}

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

/* Dinamik hız ayarı için */
.pmt-ticker-wrapper[data-animation="scroll"][data-speed="10"] .pmt-ticker-content {
    animation-duration: 10s;
}

.pmt-ticker-wrapper[data-animation="scroll"][data-speed="15"] .pmt-ticker-content {
    animation-duration: 15s;
}

.pmt-ticker-wrapper[data-animation="scroll"][data-speed="20"] .pmt-ticker-content {
    animation-duration: 20s;
}

.pmt-ticker-wrapper[data-animation="scroll"][data-speed="30"] .pmt-ticker-content {
    animation-duration: 30s;
}

.pmt-ticker-wrapper[data-animation="scroll"][data-speed="40"] .pmt-ticker-content {
    animation-duration: 40s;
}

.pmt-ticker-wrapper[data-animation="scroll"][data-speed="50"] .pmt-ticker-content {
    animation-duration: 50s;
}

.pmt-ticker-wrapper[data-animation="scroll"][data-speed="60"] .pmt-ticker-content {
    animation-duration: 60s;
}

/* Hover'da durdur */
.pmt-ticker-wrapper[data-animation="scroll"]:hover .pmt-ticker-content {
    animation-play-state: paused;
}

/* Fade Animation */
.pmt-ticker-wrapper[data-animation="fade"] .pmt-ticker-item {
    animation: fade-in-out 8s ease-in-out infinite;
    opacity: 0;
}

.pmt-ticker-wrapper[data-animation="fade"] .pmt-ticker-item:nth-child(1) {
    animation-delay: 0s;
}

.pmt-ticker-wrapper[data-animation="fade"] .pmt-ticker-item:nth-child(2) {
    animation-delay: 2s;
}

.pmt-ticker-wrapper[data-animation="fade"] .pmt-ticker-item:nth-child(3) {
    animation-delay: 4s;
}

.pmt-ticker-wrapper[data-animation="fade"] .pmt-ticker-item:nth-child(4) {
    animation-delay: 6s;
}

@keyframes fade-in-out {
    0%, 100% {
        opacity: 0;
        transform: translateY(10px);
    }
    25%, 75% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Animation */
.pmt-ticker-wrapper[data-animation="slide"] .pmt-ticker-content {
    animation: slide-up 3s ease-in-out infinite;
}

@keyframes slide-up {
    0%, 100% {
        transform: translateY(0);
    }
    33% {
        transform: translateY(-100%);
    }
    66% {
        transform: translateY(-200%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pmt-ticker-item {
        margin: 0 15px;
        font-size: 13px;
    }
    
    .pmt-metal-name {
        font-size: 13px;
    }
    
    .pmt-price-value {
        font-size: 14px;
    }
    
    .pmt-ticker-title {
        font-size: 12px;
        padding: 6px 15px;
    }
    
    .pmt-separator {
        margin: 0 10px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pmt-ticker-item {
        margin: 0 10px;
        font-size: 12px;
        flex-direction: column;
        gap: 5px;
    }
    
    .pmt-price-group {
        gap: 10px;
    }
    
    .pmt-metal-icon {
        font-size: 16px;
    }
}

/* Güncelleme animasyonu */
.pmt-ticker-item.updating {
    animation: update-flash 0.5s ease-in-out;
}

@keyframes update-flash {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
        transform: scale(1.05);
    }
}

/* Artış/Azalış göstergeleri */
.pmt-price-change {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.pmt-price-change.up {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.pmt-price-change.down {
    color: #FF5722;
    background: rgba(255, 87, 34, 0.1);
}

.pmt-price-change::before {
    margin-right: 3px;
}

.pmt-price-change.up::before {
    content: "▲";
}

.pmt-price-change.down::before {
    content: "▼";
}

/* Dark Mode için alternatif tema */
.pmt-ticker-wrapper.pmt-theme-dark {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light Mode için alternatif tema */
.pmt-ticker-wrapper.pmt-theme-light {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #1a1a1a;
}

.pmt-ticker-wrapper.pmt-theme-light .pmt-metal-name {
    color: #FF6B35;
}

.pmt-ticker-wrapper.pmt-theme-light .pmt-ticker-title {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: #ffffff;
}

/* Gold Luxury tema */
.pmt-ticker-wrapper.pmt-theme-gold {
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
    border: 2px solid #FFD700;
}

.pmt-ticker-wrapper.pmt-theme-gold .pmt-ticker-title {
    background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
    color: #000000;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}
