/* ========== MULTI-STEP HORIZONTAL PROGRESS BAR STYLES ========== */

/* Progress Bar Section Container */
.progress-bar-section {
    background: rgba(15, 23, 42, 0.3);
    padding: 50px 0;
    margin: 40px 0;
    border-top: 1px solid rgba(100, 116, 139, 0.1);
    border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

.progress-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    background: var(--water-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Progress Container */
.horizontal-progress-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Multi-Steps Container */
.multi-steps-container {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 40px;
}

/* Individual Step Container */
.step-container {
    flex: 1;
    min-width: 0;
}

/* Step Connector Line */
.step-connector {
    width: 40px;
    height: 4px;
    background: rgba(100, 116, 139, 0.3);
    align-self: center;
    transition: background 0.5s ease;
    flex-shrink: 0;
}

.step-connector.completed {
    background: linear-gradient(90deg, #22c55e, #16a34a);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

/* Collapsed Step Styles */
.collapsed-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.4);
    border: 2px solid rgba(100, 116, 139, 0.2);
    transition: all 0.3s ease;
    min-height: 120px;
    justify-content: center;
}

.collapsed-step.completed {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
}

.collapsed-step.future {
    opacity: 0.5;
    background: rgba(15, 23, 42, 0.2);
    border-color: rgba(100, 116, 139, 0.15);
}

.collapsed-step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    border: 3px solid;
    transition: all 0.3s ease;
}

.collapsed-step.completed .collapsed-step-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #16a34a;
    color: white;
}

.collapsed-step.future .collapsed-step-icon {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.3);
    color: rgba(148, 163, 184, 0.5);
}

.collapsed-step-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: rgba(226, 232, 240, 0.9);
}

.collapsed-step.future .collapsed-step-label {
    color: rgba(148, 163, 184, 0.5);
}

/* Expanded Step Styles */
.expanded-step {
    padding: 25px 20px;
    border-radius: 16px;
    background: rgba(78, 205, 196, 0.08);
    border: 2px solid rgba(78, 205, 196, 0.3);
    box-shadow: 0 4px 20px rgba(78, 205, 196, 0.15);
    animation: expandIn 0.4s ease;
}

@keyframes expandIn {
    from {
        opacity: 0;
        transform: scaleY(0.8);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

.expanded-step-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--water-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Step Progress Wrapper */
.step-progress-wrapper {
    position: relative;
    width: 100%;
    height: 80px;
}

/* Step Progress Background */
.step-progress-bg {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(100, 116, 139, 0.2);
    border-radius: 10px;
    transform: translateY(-50%);
}

/* Step Progress Fill */
.step-progress-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 8px;
    background: var(--water-gradient);
    border-radius: 10px;
    transform: translateY(-50%);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.4);
    z-index: 1;
}

/* Step Milestones Container */
.step-milestones-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

/* Individual Milestone in Step */
.step-milestone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

/* Step Milestone Bubble */
.step-milestone-bubble {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    border: 3px solid;
    background: var(--bg-primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.step-milestone.reached .step-milestone-bubble {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #16a34a;
    color: white;
    animation: milestoneComplete 0.5s ease;
}

.step-milestone.current .step-milestone-bubble {
    background: var(--bg-primary);
    border-color: rgba(78, 205, 196, 0.8);
    color: rgba(78, 205, 196, 1);
    animation: pulseCurrent 2s ease-in-out infinite;
}

@keyframes milestoneComplete {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulseCurrent {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(78, 205, 196, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(78, 205, 196, 0);
    }
}

.step-milestone .checkmark {
    font-size: 1.2rem;
    line-height: 1;
}

.step-milestone .amount {
    font-size: 0.75rem;
}

/* Step Milestone Label */
.step-milestone-label {
    position: absolute;
    top: 50px;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.8);
    pointer-events: none;
}

.step-milestone.reached .step-milestone-label {
    color: rgba(34, 197, 94, 0.9);
}

.step-milestone.current .step-milestone-label {
    color: rgba(78, 205, 196, 1);
}

/* Progress Stats */
.progress-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 20px;
}

.progress-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
}

.progress-stat-label {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--water-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .step-connector {
        width: 30px;
    }

    .expanded-step {
        padding: 20px 15px;
    }

    .step-milestone-bubble {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

@media (max-width: 968px) {
    .multi-steps-container {
        flex-direction: column;
        gap: 20px;
    }

    .step-connector {
        width: 4px;
        height: 30px;
        align-self: center;
    }

    .collapsed-step {
        min-height: 80px;
        padding: 15px 10px;
    }

    .collapsed-step-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .collapsed-step-label {
        font-size: 0.85rem;
    }

    .expanded-step {
        padding: 20px 15px;
    }

    .step-progress-wrapper {
        height: 70px;
    }

    .step-milestone-bubble {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
        border-width: 2px;
    }

    .step-milestone-label {
        font-size: 0.7rem;
        top: 42px;
    }

    .progress-stats {
        gap: 30px;
    }

    .progress-stat {
        min-width: 100px;
    }

    .progress-stat-label {
        font-size: 0.75rem;
    }

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

@media (max-width: 480px) {
    .progress-bar-section {
        padding: 30px 0;
    }

    .progress-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .multi-steps-container {
        gap: 15px;
    }

    .step-connector {
        height: 25px;
    }

    .collapsed-step {
        min-height: 70px;
        padding: 12px 8px;
    }

    .collapsed-step-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .collapsed-step-label {
        font-size: 0.75rem;
    }

    .expanded-step {
        padding: 15px 10px;
    }

    .expanded-step-title {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .step-progress-wrapper {
        height: 60px;
    }

    .step-milestone-bubble {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .step-milestone-label {
        font-size: 0.65rem;
        top: 38px;
    }

    .step-progress-fill,
    .step-progress-bg {
        height: 6px;
    }

    .progress-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .progress-stat {
        min-width: auto;
    }
}

/* ========== DONATION BANNERS STYLES ========== */

/* Top Donations Banner */
.top-donations-banner {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.08) 0%, 
        rgba(255, 193, 7, 0.05) 50%,
        rgba(255, 215, 0, 0.03) 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    padding: 16px 0;
    position: relative;
    overflow: hidden;
}

.top-donations-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.08) 50%, 
        transparent 100%);
    animation: shimmer 4s ease-in-out infinite;
}

/* Recent Donations Banner */
.recent-donations-banner {
    background: linear-gradient(135deg, 
        rgba(78, 205, 196, 0.08) 0%, 
        rgba(29, 209, 161, 0.05) 50%,
        rgba(78, 205, 196, 0.03) 100%);
    border-bottom: 1px solid rgba(78, 205, 196, 0.15);
    padding: 16px 0;
    position: relative;
    overflow: hidden;
}

.recent-donations-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(78, 205, 196, 0.08) 50%, 
        transparent 100%);
    animation: shimmer 4s ease-in-out infinite;
}

/* Banner Content Container */
.donation-banner-content {
    position: relative;
    z-index: 2;
    overflow: hidden;
    height: 50px;
}

/* Banner Title */
.donation-banner-title {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    opacity: 0.7;
}

.top-donations-banner .donation-banner-title {
    color: var(--gold);
}

.recent-donations-banner .donation-banner-title {
    color: var(--water);
}

/* Scroll Wrapper */
.donation-scroll-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: hidden;
}

/* Scroll Content */
.donation-scroll-content {
    display: flex;
    gap: 30px;
    animation: scroll-left linear infinite;
    will-change: transform;
}

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

/* Pause animation on hover */
.donation-banner-content:hover .donation-scroll-content {
    animation-play-state: paused;
}

/* Individual Donation Item */
.donation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(100, 116, 139, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.donation-item:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(100, 116, 139, 0.4);
    transform: translateY(-2px);
}

/* Donation Item Elements */
.donation-rank {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gold);
    min-width: 30px;
}

.donation-flag {
    font-size: 1.3rem;
}

.donation-amount {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.top-donations-banner .donation-amount {
    color: var(--gold);
}

.donation-action {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.donation-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .top-donations-banner,
    .recent-donations-banner {
        padding: 12px 0;
    }

    .donation-banner-content {
        height: 44px;
    }

    .donation-item {
        gap: 8px;
        padding: 6px 12px;
    }

    .donation-rank {
        font-size: 0.8rem;
        min-width: 25px;
    }

    .donation-flag {
        font-size: 1.1rem;
    }

    .donation-amount {
        font-size: 0.85rem;
    }

    .donation-action {
        font-size: 0.75rem;
    }

    .donation-date {
        font-size: 0.7rem;
    }

    .donation-banner-title {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .donation-item {
        gap: 6px;
        padding: 5px 10px;
    }

    .donation-date {
        display: none; /* Hide date on very small screens */
    }

    .donation-banner-content {
        height: 40px;
    }
}

/* Special styling for top donations (gold theme) */
.top-donations-banner .donation-item {
    border-color: rgba(255, 215, 0, 0.2);
}

.top-donations-banner .donation-item:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.1);
}

/* Special styling for recent donations (water theme) */
.recent-donations-banner .donation-item {
    border-color: rgba(78, 205, 196, 0.2);
}

.recent-donations-banner .donation-item:hover {
    border-color: rgba(78, 205, 196, 0.4);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.1);
}

/* ========== IMPACT TAG STYLES ========== */

.impact-tag {
    background: linear-gradient(135deg,
        rgba(78, 205, 196, 0.1) 0%,
        rgba(29, 209, 161, 0.05) 50%,
        rgba(78, 205, 196, 0.03) 100%);
    border-bottom: 1px solid rgba(78, 205, 196, 0.15);
    border-top: 1px solid rgba(78, 205, 196, 0.1);
    padding: 20px 0;
    text-align: center;
}

.impact-tag-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.95);
    text-shadow: 0 0 6px rgba(78, 205, 196, 0.15);
}

.impact-tag-text span {
    background: var(--water-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Responsive scaling */
@media (max-width: 768px) {
    .impact-tag-text {
        font-size: 1rem;
        line-height: 1.4;
        padding: 0 10px;
    }
}
