/* ================================
   CAMPAIGN WIDGET - Shared Styles
   Used on both homepage and donate page
   ================================ */

.campaign-widget {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.campaign-widget-title {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.campaign-widget-description {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.campaign-image-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.campaign-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: cover;
}

/* Stats Grid - Description on top */
.campaign-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    text-align: center;
}

/* Label on top */
.stat-label {
    font-size: 0.875rem;
    color: #6C757D;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Value below */
.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Progress Bar - Clean and simple */
.progress-wrapper {
    margin-bottom: 1.5rem;
}

.progress-bar-container {
    width: 100%;
    height: 24px;
    background: #E9ECEF; /* Gray empty bar */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-color); /* Red fill */
    border-radius: 12px;
    transition: width 0.5s ease;
    position: relative;
}

/* Shimmer animation on fill */
.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

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

/* Progress labels - Just $ sign, no decimals, no US */
.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6C757D;
    font-weight: 600;
}

.progress-labels span {
    font-family: var(--font-primary);
}

/* Donate Button */
.btn-donate-campaign {
    width: 100%;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1rem;
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-donate-campaign:hover {
    background: #A02020;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
    color: white;
}

.offline-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6C757D;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .campaign-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .campaign-widget-title {
        font-size: 1.5rem;
    }

    .btn-donate-campaign {
        font-size: 1.125rem;
    }
}

/* ================================
   HOMEPAGE SPECIFIC
   ================================ */

.first-option .campaign-widget {
    /* Any homepage-specific styles */
}

/* ================================
   DONATE PAGE SPECIFIC
   ================================ */

.donation-container .campaign-widget {
    max-width: 600px;
    margin: 0 auto 2rem;
}