/* ═══════════════════════════════════════════
   FUNDR SINGLE CAMPAIGN PAGE
   ═══════════════════════════════════════════ */

.fc-single *, .fc-single *::before, .fc-single *::after {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}
.fc-single { background: #f8fafc; padding-bottom: 80px; }

/* Container */
.fc-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── Layout ── */
.fc-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding-top: 32px; }

/* ── Breadcrumb ── */
.fc-breadcrumb { font-size: 13px; color: #6b7280; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fc-breadcrumb a { color: #4f46e5; text-decoration: none; }
.fc-breadcrumb a:hover { text-decoration: underline; }
.fc-breadcrumb__current { color: #374151; font-weight: 500; }

/* ── Hero ── */
.fc-hero { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 32px 0 28px; }
.fc-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fc-hero__title { font-size: 32px; font-weight: 800; color: #111827; margin: 0 0 12px; line-height: 1.25; }
.fc-hero__summary { font-size: 17px; color: #4b5563; line-height: 1.6; margin: 0 0 20px; max-width: 700px; }
.fc-hero__creator { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fc-hero__creator-name { font-weight: 600; color: #111827; font-size: 15px; }
.fc-hero__trust { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #6b7280; font-weight: 500; }

/* ── Avatar ── */
.fc-avatar { border-radius: 50%; object-fit: cover; }
.fc-avatar--sm { width: 36px; height: 36px; }
.fc-avatar--lg { width: 64px; height: 64px; }

/* ── Badges ── */
.fc-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; line-height: 1; }
.fc-badge--sm { padding: 2px 8px; font-size: 11px; }
.fc-badge--muted { background: #f3f4f6; color: #6b7280; }
.fc-badge--success { background: #dcfce7; color: #166534; }
.fc-badge--danger { background: #fee2e2; color: #991b1b; }
.fc-badge--warning { background: #fef3c7; color: #92400e; }

/* ── Media ── */
.fc-media { border-radius: 16px; overflow: hidden; background: #111; margin-bottom: 24px; }
.fc-media__video { position: relative; padding-top: 56.25%; }
.fc-media__video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.fc-media__image { line-height: 0; }
.fc-media__img { width: 100%; height: auto; display: block; max-height: 480px; object-fit: cover; }

/* ── Mobile Progress ── */
.fc-mobile-progress { display: none; margin-bottom: 20px; }

/* ── Section Nav ── */
.fc-section-nav { display: flex; gap: 4px; border-bottom: 2px solid #e5e7eb; margin-bottom: 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fc-section-nav__btn { background: none; border: none; padding: 12px 20px; font-size: 14px; font-weight: 600; color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: all .2s; }
.fc-section-nav__btn:hover { color: #4f46e5; }
.fc-section-nav__btn.active { color: #4f46e5; border-bottom-color: #4f46e5; }

/* ── Sections ── */
.fc-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.fc-section__title { font-size: 20px; font-weight: 700; color: #111827; margin: 0 0 20px; display: flex; align-items: center; gap: 8px; }
.fc-section__count { font-size: 14px; font-weight: 500; color: #6b7280; background: #f3f4f6; padding: 2px 10px; border-radius: 12px; }
.fc-section__more { text-align: center; margin-top: 16px; }

/* ── Story ── */
.fc-story__body { font-size: 16px; line-height: 1.8; color: #374151; }
.fc-story__body h1, .fc-story__body h2, .fc-story__body h3 { color: #111827; margin: 24px 0 12px; }
.fc-story__body p { margin: 0 0 16px; }
.fc-story__body img { max-width: 100%; border-radius: 12px; margin: 16px 0; }
.fc-story__body ul, .fc-story__body ol { padding-left: 24px; margin: 0 0 16px; }
.fc-story__body li { margin-bottom: 8px; }
.fc-story__fade { position: relative; margin-top: -60px; padding-top: 60px; background: linear-gradient(transparent, #fff); }

/* ── Progress Bar ── */
.fc-progress-bar { background: #e5e7eb; border-radius: 100px; overflow: hidden; height: 8px; }
.fc-progress-bar--lg { height: 12px; }
.fc-progress-bar--sm { height: 6px; }
.fc-progress-bar__fill { height: 100%; background: linear-gradient(90deg, #4f46e5, #6366f1); border-radius: 100px; transition: width 1s ease; }
.fc-progress-bar__fill--animated { animation: fc-pulse 2s ease infinite; }
@keyframes fc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .85; } }

/* ── Budget ── */
.fc-budget-summary-bar { margin-bottom: 20px; }
.fc-budget-summary-bar__inner { display: flex; height: 12px; border-radius: 100px; overflow: hidden; background: #e5e7eb; }
.fc-budget-summary-bar__segment { transition: width .5s; }
.fc-budget-list { display: flex; flex-direction: column; gap: 12px; }
.fc-budget-item { display: flex; gap: 14px; padding: 16px; background: #f9fafb; border-radius: 12px; border: 1px solid #f3f4f6; transition: all .2s; }
.fc-budget-item:hover { border-color: #e5e7eb; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.fc-budget-item__color { width: 4px; border-radius: 4px; flex-shrink: 0; }
.fc-budget-item__info { flex: 1; min-width: 0; }
.fc-budget-item__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.fc-budget-item__title { font-size: 15px; font-weight: 600; color: #111827; margin: 0; }
.fc-budget-item__amount-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.fc-budget-item__amount { font-size: 15px; color: #111827; }
.fc-budget-item__pct { font-size: 12px; color: #6b7280; background: #f3f4f6; padding: 2px 8px; border-radius: 10px; }
.fc-budget-item__desc { font-size: 13px; color: #6b7280; margin: 4px 0 0; line-height: 1.5; }
.fc-budget-footer { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; font-size: 15px; color: #6b7280; }
.fc-budget-footer strong { font-size: 18px; color: #111827; }

/* ── Donors ── */
.fc-donors-list { display: flex; flex-direction: column; gap: 12px; }
.fc-donor-card { display: flex; gap: 14px; padding: 14px; border-radius: 12px; background: #f9fafb; border: 1px solid #f3f4f6; }
.fc-donor-card__avatar { width: 40px; height: 40px; border-radius: 50%; background: #e5e7eb; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.fc-donor-card__info { flex: 1; min-width: 0; }
.fc-donor-card__header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fc-donor-card__header strong { font-size: 14px; color: #111827; }
.fc-donor-card__amount { font-size: 14px; font-weight: 700; color: #4f46e5; }
.fc-donor-card__message { font-size: 13px; color: #6b7280; font-style: italic; margin: 6px 0 4px; line-height: 1.5; }
.fc-donor-card__time { font-size: 12px; color: #9ca3af; }

/* ── Updates ── */
.fc-updates-timeline { position: relative; padding-left: 24px; }
.fc-updates-timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: #e5e7eb; }
.fc-update-card { position: relative; margin-bottom: 20px; }
.fc-update-card__dot { position: absolute; left: -24px; top: 6px; width: 14px; height: 14px; background: #4f46e5; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px #e5e7eb; }
.fc-update-card__content { background: #f9fafb; border: 1px solid #f3f4f6; border-radius: 12px; padding: 16px; }
.fc-update-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.fc-update-card__header strong { font-size: 15px; color: #111827; }
.fc-update-card__header small { font-size: 12px; color: #9ca3af; }
.fc-update-card__body { font-size: 14px; color: #374151; line-height: 1.7; }

/* ── Creator Card ── */
.fc-creator-card { display: flex; gap: 18px; align-items: flex-start; }
.fc-creator-card__info { flex: 1; }
.fc-creator-card__name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fc-creator-card__name-row h3 { margin: 0; font-size: 18px; font-weight: 700; color: #111827; }
.fc-creator-card__bio { font-size: 14px; color: #6b7280; line-height: 1.6; margin: 0 0 8px; }
.fc-creator-card__stats { font-size: 13px; color: #6b7280; }

/* ── Trust Section ── */
.fc-trust-section { background: #f0fdf4; border-color: #bbf7d0; }
.fc-trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fc-trust-item { display: flex; gap: 14px; padding: 16px; background: #fff; border-radius: 12px; border: 1px solid #dcfce7; }
.fc-trust-item__icon { font-size: 24px; flex-shrink: 0; }
.fc-trust-item strong { font-size: 14px; color: #111827; display: block; margin-bottom: 4px; }
.fc-trust-item p { font-size: 13px; color: #6b7280; margin: 0; line-height: 1.5; }

/* ── Share ── */
.fc-share-section { text-align: center; }
.fc-share-section__text { color: #6b7280; font-size: 15px; margin: 0 0 20px; }
.fc-share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fc-share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid #e5e7eb; background: #fff; color: #374151; cursor: pointer; transition: all .2s; }
.fc-share-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.fc-share-btn--whatsapp:hover { background: #25D366; color: #fff; border-color: #25D366; }
.fc-share-btn--facebook:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.fc-share-btn--twitter:hover { background: #1DA1F2; color: #fff; border-color: #1DA1F2; }
.fc-share-btn--copy:hover { background: #4f46e5; color: #fff; border-color: #4f46e5; }

/* ── Sidebar ── */
.fc-sidebar__inner { position: sticky; top: 24px; }
.fc-donation-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.06); margin-bottom: 16px; }
.fc-donation-card__raised { margin-bottom: 12px; }
.fc-donation-card__raised strong { font-size: 28px; font-weight: 800; color: #111827; display: block; }
.fc-donation-card__raised span { font-size: 14px; color: #6b7280; }
.fc-donation-card__stats { display: flex; justify-content: space-between; margin-top: 16px; text-align: center; }
.fc-donation-card__stat strong { display: block; font-size: 16px; font-weight: 700; color: #111827; }
.fc-donation-card__stat span { font-size: 12px; color: #6b7280; }
.fc-donation-card__urgency { background: #fef3c7; color: #92400e; padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; text-align: center; margin: 16px 0; }
.fc-donation-card__ended { text-align: center; padding: 16px; background: #f3f4f6; border-radius: 12px; margin-top: 16px; }
.fc-donation-card__ended span { font-size: 28px; display: block; margin-bottom: 8px; }
.fc-donation-card__ended p { margin: 0; font-size: 14px; color: #6b7280; }
.fc-donation-card__share { display: flex; justify-content: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f3f4f6; }
.fc-share-icon { background: none; border: 1px solid #e5e7eb; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; text-decoration: none; transition: all .2s; }
.fc-share-icon:hover { background: #f3f4f6; transform: scale(1.1); }
.fc-donation-card__trust { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f3f4f6; font-size: 12px; color: #6b7280; }

/* Sidebar Creator Mini */
.fc-sidebar-creator { display: flex; gap: 12px; align-items: center; padding: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.fc-sidebar-creator strong { font-size: 14px; color: #111827; display: block; }
.fc-sidebar-creator small { font-size: 12px; color: #6b7280; }

/* ── Empty States ── */
.fc-empty { text-align: center; padding: 32px 20px; }
.fc-empty__icon { font-size: 40px; display: block; margin-bottom: 12px; }
.fc-empty h3 { font-size: 16px; color: #374151; margin: 0 0 6px; }
.fc-empty p { font-size: 14px; color: #6b7280; margin: 0; }

/* ── Buttons ── */
.fc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; text-decoration: none; transition: all .2s; line-height: 1.4; }
.fc-btn--success { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; box-shadow: 0 4px 14px rgba(22,163,74,.3); }
.fc-btn--success:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(22,163,74,.4); }
.fc-btn--outline { background: #fff; border: 1.5px solid #e5e7eb; color: #374151; }
.fc-btn--outline:hover { border-color: #4f46e5; color: #4f46e5; }
.fc-btn--block { display: flex; width: 100%; }
.fc-btn--lg { padding: 16px 28px; font-size: 17px; }
.fc-link { color: #4f46e5; text-decoration: none; font-weight: 600; font-size: 14px; }
.fc-link:hover { text-decoration: underline; }

/* ── Related ── */
.fc-related { padding: 48px 0; }
.fc-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.fc-related-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: all .2s; display: flex; flex-direction: column; }
.fc-related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.fc-related-card__thumb { height: 180px; overflow: hidden; background: #f3f4f6; }
.fc-related-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fc-related-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.fc-related-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.fc-related-card__body h3 { font-size: 15px; font-weight: 600; color: #111827; margin: 0; line-height: 1.4; }
.fc-related-card__stats { display: flex; justify-content: space-between; font-size: 13px; color: #6b7280; }

/* ── Progress Compact (mobile) ── */
.fc-progress-compact { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
.fc-progress-compact__amounts { margin-bottom: 10px; }
.fc-progress-compact__amounts strong { font-size: 22px; font-weight: 800; color: #111827; }
.fc-progress-compact__amounts span { font-size: 13px; color: #6b7280; }
.fc-progress-compact__stats { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: #6b7280; font-weight: 500; }

/* ── Mobile CTA ── */
.fc-mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #e5e7eb; padding: 12px 16px; z-index: 999; box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
.fc-mobile-cta { display: none; align-items: center; justify-content: space-between; gap: 12px; }
.fc-mobile-cta__info strong { font-size: 16px; color: #111827; display: block; }
.fc-mobile-cta__info span { font-size: 12px; color: #6b7280; }
.fc-mobile-cta__btn { padding: 12px 24px; white-space: nowrap; font-size: 15px; }

/* ── Toast ── */
.fc-toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 500; z-index: 9999; box-shadow: 0 8px 30px rgba(0,0,0,.2); animation: fc-toast-in .3s ease; }
@keyframes fc-toast-in { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ── Scroll Progress ── */
.fc-scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; background: transparent; }
.fc-scroll-progress__bar { height: 100%; background: linear-gradient(90deg, #4f46e5, #6366f1); width: 0; transition: width .1s; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .fc-layout { grid-template-columns: 1fr; gap: 0; }
    .fc-sidebar { display: none; }
    .fc-mobile-progress { display: block; }
    .fc-mobile-cta { display: flex !important; }
    .fc-single { padding-bottom: 100px; }
    .fc-hero__title { font-size: 24px; }
    .fc-hero__summary { font-size: 15px; }
    .fc-trust-grid { grid-template-columns: 1fr; }
    .fc-related__grid { grid-template-columns: 1fr; }
    .fc-section { padding: 20px; }
}

@media (max-width: 600px) {
    .fc-hero { padding: 20px 0 16px; }
    .fc-hero__title { font-size: 22px; }
    .fc-hero__trust { flex-direction: column; gap: 6px; }
    .fc-section-nav__btn { padding: 10px 14px; font-size: 13px; }
    .fc-budget-item__header { flex-direction: column; gap: 4px; }
    .fc-share-buttons { flex-direction: column; }
    .fc-share-btn { justify-content: center; }
    .fc-creator-card { flex-direction: column; text-align: center; align-items: center; }
    .fc-donor-card__header { flex-direction: column; align-items: flex-start; gap: 2px; }
}


@media (max-width: 600px) {
    .fc-creator-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .fc-creator-card__name-row {
        justify-content: center;
    }
    .fc-creator-card__stats {
        justify-content: center;
    }
}

.fc-creator-card__name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    justify-content: center;
}