/**
 * GoFundMe Transaction Scroller Styles
 * Version: 2.0.0
 */

/* ====================================
   WIDGET CONTAINER
   ==================================== */

.gofundme-widget {
    width: 100%;
    margin-bottom: 20px;
}

/* ====================================
   PROGRESS BAR SECTION
   ==================================== */

.gofundme-progress-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.campaign-name {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.gofundme-progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7f41 0%, #fa5b0d 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.gofundme-progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.raised-amount {
    font-weight: 700;
    font-size: 18px;
    color: #fa5b0d;
}

.goal-amount {
    color: #666;
}

.gofundme-progress-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #fa5b0d;
    text-align: right;
}

/* ====================================
   TRANSACTION SCROLLER
   ==================================== */

.gofundme-scroller-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gofundme-scroller {
    animation: scroll-up 20s linear infinite;
    padding: 20px;
}

/* Scroll Speed Variations */
.gofundme-scroller.scroll-slow {
    animation-duration: 30s;
}

.gofundme-scroller.scroll-normal {
    animation-duration: 20s;
}

.gofundme-scroller.scroll-fast {
    animation-duration: 10s;
}

@keyframes scroll-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.gofundme-scroller:hover {
    animation-play-state: paused;
}

/* ====================================
   TRANSACTION ITEMS
   ==================================== */

.gofundme-transaction {
    background: white;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gofundme-transaction:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.donor-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.donation-amount {
    font-weight: 700;
    font-size: 18px;
    color: #fa5b0d;
}

.transaction-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.transaction-message {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    font-style: italic;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

/* ====================================
   ERROR & EMPTY STATES
   ==================================== */

.gofundme-error,
.gofundme-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 768px) {
    .gofundme-progress-section {
        padding: 15px;
    }
    
    .campaign-name {
        font-size: 18px;
    }
    
    .raised-amount {
        font-size: 16px;
    }
    
    .gofundme-progress-stats {
        font-size: 13px;
    }
    
    .gofundme-transaction {
        padding: 12px;
    }
    
    .donor-name {
        font-size: 14px;
    }
    
    .donation-amount {
        font-size: 16px;
    }
    
    .transaction-message {
        font-size: 13px;
    }
}