/* ===== PROFESSIONAL DONATION TICKER ===== */
/* ===== PREMIUM DONATION TICKER ===== */
/* ===== PROFESSIONAL MARQUEE ANIMATION ===== */
/* ===== PROFESSIONAL DONATION TICKER ===== */
/* ===== PROFESSIONAL DONATION TICKER ===== */

/* ===== SINGLE LINE DONATION TICKER ===== */
.donation-ticker-wrapper {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.donation-ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    padding: 0 1.25rem 0 1rem;
    background: linear-gradient(135deg, var(--accent, #ec4899) 0%, #a855f7 100%);
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    box-shadow: 4px 0 12px rgba(236, 72, 153, 0.3);
    border-radius: 16px 0 0 16px;
}

/* Track yang memuat teks 1 baris */
.donation-ticker-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding-left: 100%; /* Trik utama: Mendorong teks ke batas luar paling kanan */
    flex-shrink: 0; /* Mencegah flexbox merusak ukuran teks */
    animation: marquee 35s linear infinite;
    will-change: transform;
}

.donation-ticker-track:hover {
    animation-play-state: paused;
}

/* 🚨 PERBAIKAN: Masuk dari kanan (100%), keluar ke kiri (-100%) */
/* Animasi dari ujung kanan ke ujung kiri */
@keyframes marquee {
    0% {
        transform: translateX(0); /* Mulai dari posisi kanan (karena efek padding 100%) */
    }
    100% {
        transform: translateX(-100%); /* Bergerak sejauh 100% dari total panjang teks+padding */
    }
}

.donation-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem;
    font-size: 0.95rem;
    color: #ffffff;
}

.donation-ticker-item .t-name {
    font-weight: 700;
    color: var(--accent, #ec4899);
}

.donation-ticker-item .t-message {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

.donation-ticker-item .t-amount {
    font-weight: 700;
    color: #fbbf24;
}

.donation-ticker-item .t-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    line-height: 1;
}

/* ========================================== */
/* 🚨 TEMA TERANG (LIGHT THEME) */
/* ========================================== */
[data-theme="light"] .donation-ticker-wrapper,
[data-theme="rose"] .donation-ticker-wrapper,
[data-theme="sakura"] .donation-ticker-wrapper,
[data-theme="warm"] .donation-ticker-wrapper {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .donation-ticker-item,
[data-theme="rose"] .donation-ticker-item,
[data-theme="sakura"] .donation-ticker-item,
[data-theme="warm"] .donation-ticker-item {
    color: #1a1a1a;
}

[data-theme="light"] .donation-ticker-item .t-message,
[data-theme="rose"] .donation-ticker-item .t-message,
[data-theme="sakura"] .donation-ticker-item .t-message,
[data-theme="warm"] .donation-ticker-item .t-message {
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .donation-ticker-item .t-separator,
[data-theme="rose"] .donation-ticker-item .t-separator,
[data-theme="sakura"] .donation-ticker-item .t-separator,
[data-theme="warm"] .donation-ticker-item .t-separator {
    color: rgba(0, 0, 0, 0.2);
}

/* ========================================== */
/* 📱 RESPONSIVE */
/* ========================================== */
@media (max-width: 768px) {
    .donation-ticker-label span { display: none; }
    .donation-ticker-label { padding: 0 0.75rem; }
    .donation-ticker-track { 
        /* Hapus baris padding-left: 5rem; di sini */
        animation-duration: 25s; 
    }
    .donation-ticker-item { 
        font-size: 0.85rem; 
        padding: 0 1.5rem; 
    }
}
        
        /* Gradient Text untuk Recent Supporters */
/* 🚨 FIX: Gradient Text yang menyesuaikan dengan warna tema (--accent) */
.gradient-text-supporters {
    /* Dimulai dari warna tema (--accent), berakhir di ungu (#a855f7) untuk efek halus */
    background: linear-gradient(135deg, var(--accent, #ec4899) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
    
    /* Opsional: Animasi gradient bergerak halus */
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
