/* ========================================
   Pledges List Layout
   Details left, Button right (2-column)
   Uses CSS variables from campaign.css
   ======================================== */

.cf-pledges-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

body .cf-pledge-list-item {
    border: 2px solid #87a0a5;
    background: #fff;
    /* border: 1px solid var(--cf-border); */
    border-radius: 8px;
    padding: 2rem;
    display: flex
;
    flex-direction: column;
    transition: all 0.3s ease;
}

.cf-pledge-list-item:hover {
    border-color: var(--cf-primary);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.1);
}

.cf-pledge-list-item--sold-out {
    opacity: 0.6;
    background: var(--cf-bg-light);
}

/* Details Wrapper - Left Column Content */
.cf-pledge-list-item__details-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

/* Left Column - Amount & Badge */
.cf-pledge-list-item__left {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    gap: 0.75rem;
    min-width: 120px;
    /* text-align: center; */
}

.cf-pledge-list-item__amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cf-primary);
    line-height: 1;
}

.cf-pledge-list-item__badge {
    background: var(--cf-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Center Column - Content */
.cf-pledge-list-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cf-pledge-list-item__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--cf-text-dark);
}

.cf-pledge-list-item__description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--cf-text-light);
}

.cf-pledge-list-item__description p {
    margin: 0;
    padding: 0;
}

.cf-pledge-list-item__description p + p {
    margin-top: 0.5rem;
}

.cf-pledge-list-item__details {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--cf-text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cf-pledge-list-item__details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.cf-reward-icon {
    color: var(--cf-primary);
    font-weight: bold;
    flex-shrink: 0;
}

.cf-pledge-list-item__availability {
    margin: 0;
    padding: 0.75rem 1rem;
    background: #e8f5e9;
    border-left: 3px solid var(--cf-primary);
    border-radius: 4px;
    display: inline-block;
}

.cf-availability__text {
    font-size: 0.85rem;
    color: #1b5e20;
    font-weight: 500;
}

.cf-availability__sold-out {
    color: var(--cf-danger);
    background: #ffebee;
    border-left-color: var(--cf-danger);
}

/* Right Column - Button */
.cf-pledge-list-item__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.cf-pledge-list-item__center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-pledge-list-item__btn {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-size: 1.1rem !important;
    text-transform: uppercase;
    margin-top: 14px;
}

/* ========================================
   Responsive - Tablet (768px and below)
   ======================================== */

@media (max-width: 768px) {
    
    .cf-pledge-list-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .cf-pledge-list-item__left {
        grid-column: 1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-width: auto;
        text-align: left;
        gap: 1rem;
    }

    .cf-pledge-list-item__amount {
        font-size: 1.75rem;
    }

    .cf-pledge-list-item__content {
        grid-column: 1;
        order: 3;
    }

    .cf-pledge-list-item__right {
        grid-column: 1;
        order: 4;
        width: 100%;
        justify-content: center;
    }

    .cf-pledge-list-item__btn {
        width: 100%;
    }

}

/* ========================================
   Responsive - Mobile (480px and below)
   ======================================== */

@media (max-width: 480px) {

    .cf-pledge-list-item {
        padding: 1rem;
        gap: 1rem;
    }

    .cf-pledge-list-item__left {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        justify-content: flex-start;
    }

    .cf-pledge-list-item__amount {
        font-size: 1.5rem;
    }

    .cf-pledge-list-item__badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.75rem;
    }

    .cf-pledge-list-item__title {
        font-size: 1.1rem;
    }

    .cf-pledge-list-item__description {
        font-size: 0.9rem;
    }

    .cf-pledge-list-item__details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cf-pledge-list-item__right {
        width: 100%;
    }

    .cf-pledge-list-item__btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

}