/* Frontend Progress Bar Styles */
.dcf-progress-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dcf-campaign-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    line-height: 1.3;
}

.dcf-campaign-image {
    margin-bottom: 20px;
    text-align: center;
    overflow: hidden;
}

.dcf-image {
    width: 100%;
    max-width: 500px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0 auto;
}

.dcf-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.dcf-campaign-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.dcf-stat {
    text-align: center;
    padding: 10px;
}

.dcf-stat-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.dcf-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.dcf-progress-bar {
    position: relative;
    width: 100%;
    height: 30px;
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dcf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
    border-radius: 15px;
    position: relative;
    transition: width 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.dcf-progress-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.dcf-campaign-description {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    border-radius: 0 8px 8px 0;
}

.dcf-campaign-description p {
    margin: 0;
    color: #495057;
    line-height: 1.6;
    font-size: 16px;
}

.dcf-campaign-link {
    text-align: center;
    margin-top: 20px;
}

.dcf-donate-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.dcf-donate-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.dcf-donate-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.5);
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    letter-spacing: 1px;
}

.dcf-donate-button:hover::before {
    left: 100%;
}

.dcf-donate-button:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    transition: all 0.1s ease;
}

.dcf-donate-button:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3), 0 0 0 3px rgba(40, 167, 69, 0.2);
}

/* Animation for progress bar */
@keyframes progressAnimation {
    0% {
        width: 0%;
    }
    100% {
        width: var(--progress-width);
    }
}

.dcf-progress-fill.animate {
    animation: progressAnimation 1.5s ease-out;
}

/* Auto-refresh update animation */
.dcf-progress-container.dcf-updated {
    animation: updatePulse 1s ease-in-out;
    border-color: #28a745;
}

@keyframes updatePulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-color: #e1e5e9;
    }
    50% {
        box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
        border-color: #28a745;
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-color: #e1e5e9;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .dcf-progress-container {
        margin: 15px;
        padding: 20px;
    }
    
    .dcf-campaign-title {
        font-size: 20px;
    }
    
    .dcf-campaign-stats {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .dcf-stat-value {
        font-size: 18px;
    }
    
    .dcf-progress-bar {
        height: 25px;
    }
    
    .dcf-progress-text {
        font-size: 12px;
    }
    
    .dcf-donate-button {
        padding: 10px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .dcf-progress-container {
        margin: 10px;
        padding: 15px;
    }
    
    .dcf-campaign-title {
        font-size: 18px;
    }
    
    .dcf-campaign-stats {
        padding: 10px;
    }
    
    .dcf-stat-value {
        font-size: 16px;
    }
    
    .dcf-progress-bar {
        height: 20px;
    }
    
    .dcf-progress-text {
        font-size: 11px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dcf-progress-container {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .dcf-campaign-title {
        color: #f7fafc;
    }
    
    .dcf-campaign-stats {
        background: #4a5568;
    }
    
    .dcf-stat-value {
        color: #f7fafc;
    }
    
    .dcf-campaign-description {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .dcf-campaign-description p {
        color: #e2e8f0;
    }
}
