/**
 * Fundraiser Dashboard -- Card-based Layout
 * Matches the Fundraising Dashboard Elementor mockup design
 */

/* Hide the page title on fundraiser dashboard pages.
   Covers Astra theme title, Elementor single template title, and entry-header. */
.ssb-fundraiser-page .entry-title,
.ssb-fundraiser-page .ast-archive-description,
.ssb-fundraiser-page header.entry-header,
.ssb-fundraiser-page .elementor-widget-theme-post-title {
    display: none !important;
}

/* ── Hero Section ── */

.ssb-dashboard__hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5em;
    margin-bottom: 1.5em;
}

.ssb-dashboard__hero-text h2 {
    font-size: 48px;
    font-weight: 400;
    color: #1e1e1e;
    margin: 0 0 0.3em 0;
    font-family: 'Crimson Text', 'Georgia', serif;
}

.ssb-dashboard__hero-text p {
    font-size: 16px;
    color: #747474;
    margin: 0;
    max-width: 560px;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.ssb-dashboard__hero-cta .ssb-button {
    white-space: nowrap;
    padding: 15px 20px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    border-radius: 0 !important;
}

/* ── Status Strip ── */

.ssb-dashboard__status {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1em;
    margin-bottom: 2.5em;
}

.ssb-dashboard__ngo-card,
.ssb-dashboard__bank-card {
    border: 1px solid #e3d2ef;
    border-radius: 16px;
    padding: 30px;
    background: #fff;
}

/* NGO Verification Card */
.ssb-dashboard__ngo-card {
    background: #ecfdf5;
    border-color: #c8e6c9;
}

.ssb-dashboard__ngo-card--pending {
    background: #fff8e1;
    border-color: #ffe082;
}

.ssb-dashboard__ngo-card--rejected {
    background: #fdf2f2;
    border-color: #f5c6cb;
}

.ssb-dashboard__ngo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.6em;
}

.ssb-dashboard__ngo-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #047857;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.ssb-dashboard__ngo-card--pending .ssb-dashboard__ngo-icon {
    background: #f57f17;
}

.ssb-dashboard__ngo-card--rejected .ssb-dashboard__ngo-icon {
    background: #c62828;
}

.ssb-dashboard__ngo-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #047857;
    font-family: 'Poppins', sans-serif;
}

.ssb-dashboard__ngo-card--pending .ssb-dashboard__ngo-title {
    color: #f57f17;
}

.ssb-dashboard__ngo-card--rejected .ssb-dashboard__ngo-title {
    color: #c62828;
}

.ssb-dashboard__ngo-detail {
    font-size: 16px;
    font-weight: 600;
    color: #064e3b;
    line-height: 1.5;
    margin-top: 0.5em;
}

.ssb-dashboard__ngo-date {
    font-size: 14px;
    font-weight: 400;
    color: rgba(4, 120, 87, 0.7);
    margin-top: 4px;
}

/* Bank Card */
.ssb-dashboard__bank-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
}

.ssb-dashboard__bank-info {
    display: flex;
    align-items: center;
    gap: 2em;
    flex: 1;
}

.ssb-dashboard__bank-label {
    font-size: 20px;
    font-weight: 500;
    color: #312d38;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.ssb-dashboard__bank-fields {
    display: flex;
    gap: 3em;
}

.ssb-dashboard__bank-field-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5f5966;
    margin-bottom: 4px;
}

.ssb-dashboard__bank-field-value {
    font-size: 24px;
    font-weight: 700;
    color: #312d38;
}

.ssb-dashboard__bank-field-value--success {
    font-size: 16px;
    font-weight: 600;
    color: #059669;
}

.ssb-dashboard__bank-field-value--pending {
    font-size: 16px;
    font-weight: 600;
    color: #f57f17;
}

.ssb-dashboard__bank-action .ssb-button {
    background: #e9dff3 !important;
    color: #714b8f !important;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 20px;
    border: none !important;
    border-radius: 0 !important;
}

.ssb-dashboard__bank-action .ssb-button:hover {
    background: #d4c2e3 !important;
}

/* ── Fundraiser Cards Section ── */

.ssb-dashboard__section-title {
    font-size: 40px !important;
    font-weight: 600 !important;
    color: #1e1e1e !important;
    margin: 0 0 0.1em 0 !important;
    font-family: 'Crimson Text', 'Georgia', serif !important;
}

.ssb-dashboard__section-sub {
    font-size: 16px;
    font-weight: 500;
    color: #714b8f;
    margin: 0 0 1.25em 0;
    font-family: 'Poppins', sans-serif;
}

.ssb-dashboard__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
    margin-bottom: 2em;
}

/* Individual Card */
.ssb-dashboard__card {
    border: 1px solid #e8e0ee;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.ssb-dashboard__card:hover {
    box-shadow: 0 6px 24px rgba(35, 21, 46, 0.1);
    transform: translateY(-2px);
}

/* Card Image */
.ssb-dashboard__card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e3d9ee 0%, #f3ecf8 100%);
    overflow: hidden;
}

.ssb-dashboard__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ssb-dashboard__card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: #c8a6e2;
}

/* Status Badge on Card */
.ssb-dashboard__card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #e3d9ee;
    color: #714b8f;
}

.ssb-dashboard__card-badge--active {
    background: #e3d9ee;
    color: #714b8f;
}

.ssb-dashboard__card-badge--pending_approval {
    background: #fff3e0;
    color: #e65100;
}

.ssb-dashboard__card-badge--rejected {
    background: #fce4ec;
    color: #c62828;
}

.ssb-dashboard__card-badge--ended {
    background: #f0f0f0;
    color: #555;
}

.ssb-dashboard__card-badge--draft {
    background: #e3f2fd;
    color: #1565c0;
}

/* Card Body */
.ssb-dashboard__card-body {
    padding: 1.25em 1.5em 1.5em;
}

.ssb-dashboard__card-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #312d38 !important;
    margin: 0 0 0.2em 0 !important;
    line-height: 1.3 !important;
    font-family: 'Crimson Text', 'Georgia', serif !important;
}

.ssb-dashboard__card-dates {
    font-size: 16px;
    font-weight: 400;
    color: #7a7682;
    margin-bottom: 1em;
}

/* Card Stats */
.ssb-dashboard__card-stats {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.25em;
}

.ssb-dashboard__card-raised {
    font-size: 28px !important;
    font-weight: 600 !important;
    color: #714b8f !important;
    font-family: 'Crimson Text', sans-serif !important;
}

.ssb-dashboard__card-goal {
    font-size: 16px;
    font-weight: 400;
    color: #5f5966;
    margin-top: 2px;
}

.ssb-dashboard__card-pct {
    font-size: 16px;
    font-weight: 400;
    color: #714b8f;
}

/* Progress Bar */
.ssb-dashboard__card-progress {
    height: 6px;
    background: #eae4ef;
    border-radius: 3px;
    margin: 0.5em 0 1.25em 0;
    overflow: hidden;
}

.ssb-dashboard__card-progress-fill {
    height: 100%;
    background: #714b8f;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Card Divider */
.ssb-dashboard__card-divider {
    border: none;
    border-top: 1px solid #eae4ef;
    margin: 0 0 1em 0;
}

/* Card Actions */
.ssb-dashboard__card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ssb-dashboard__card-actions-left {
    display: flex;
    gap: 1em;
}

.ssb-dashboard__action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 500;
    color: #714b8f;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 2px 0;
    transition: color 0.15s ease;
    font-family: 'Poppins', sans-serif;
}

.ssb-dashboard__action:hover {
    color: #9f76be;
    text-decoration: none;
}

.ssb-dashboard__action--code {
    padding: 6px 16px;
    border: 1px solid #e3d2ef;
    border-radius: 8px;
    color: #714b8f;
    background: #fff;
}

.ssb-dashboard__action--code:hover {
    background: #faf7fc;
    border-color: #c8a6e2;
}

.ssb-dashboard__action-icon {
    font-size: 1em;
    line-height: 1;
}

/* ── Empty State ── */

.ssb-dashboard__empty {
    text-align: center;
    padding: 3em 2em;
    background: #faf7fc;
    border-radius: 12px;
    border: 2px dashed #e3d2ef;
}

.ssb-dashboard__empty-icon {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    color: #c8a6e2;
}

.ssb-dashboard__empty-text {
    font-size: 1em;
    color: #666;
    margin-bottom: 1em;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
    .ssb-dashboard__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ssb-dashboard__hero {
        flex-direction: column;
        gap: 1em;
    }

    .ssb-dashboard__status {
        grid-template-columns: 1fr;
    }

    .ssb-dashboard__bank-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .ssb-dashboard__bank-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75em;
    }

    .ssb-dashboard__cards {
        grid-template-columns: 1fr;
    }

    .ssb-dashboard__card-actions {
        flex-wrap: wrap;
        gap: 0.5em;
    }
}
