/**
 * UKF Donations — Public Campaign
 *
 * CM-007: Public campaign presentation layer.
 *
 * Campaign-specific styles are intentionally isolated from the
 * donation form and other frontend components.
 */
 /* ==========================================================
   Campaign Base
   ========================================================== */

.ukf-campaign {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #1f2937;
}

.ukf-campaign *,
.ukf-campaign *::before,
.ukf-campaign *::after {
    box-sizing: border-box;
}


/* ==========================================================
   Campaign Hero
   ========================================================== */

.ukf-campaign-hero {
    position: relative;
    width: 100%;
    min-height: 560px;
    display: flex;
    align-items: stretch;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
}

.ukf-campaign-hero.no-image {
    background: #202020;
}

.ukf-campaign-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.62) 45%,
            rgba(0, 0, 0, 0.20) 100%
        );
}

.ukf-campaign-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 48px));
    min-height: 560px;
    margin: 0 auto;
    padding: 40px 0 72px;
    display: flex;
    flex-direction: column;
}


/* ==========================================================
   Breadcrumb
   ========================================================== */

.ukf-campaign-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: auto;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.ukf-campaign-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.ukf-campaign-breadcrumb a:hover,
.ukf-campaign-breadcrumb a:focus {
    text-decoration: underline;
}

.ukf-campaign-breadcrumb span {
    color: rgba(255, 255, 255, 0.72);
}


/* ==========================================================
   Hero Content
   ========================================================== */

.ukf-campaign-hero-content {
    width: 100%;
    max-width: 760px;
    margin-top: 80px;
}

.ukf-campaign-state {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: #fedf03;
    color: #171717;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ukf-campaign-state-paused,
.ukf-campaign-state-ended,
.ukf-campaign-state-archived,
.ukf-campaign-state-unknown {
    background: rgba(255, 255, 255, 0.92);
    color: #333333;
}

.ukf-campaign-state-scheduled {
    background: #ffffff;
    color: #333333;
}

.ukf-campaign-title {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.ukf-campaign-short-description {
    max-width: 680px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 19px;
    line-height: 1.65;
}

.ukf-campaign-short-description p {
    margin: 0;
}

.ukf-campaign-primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 30px;
    padding: 14px 28px;
    border-radius: 6px;
    background: #fedf03;
    color: #171717;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.ukf-campaign-primary-cta:hover,
.ukf-campaign-primary-cta:focus {
    background: #ffa415;
    color: #171717;
    text-decoration: none;
    transform: translateY(-2px);
}

.ukf-campaign-primary-cta:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* ==========================================================
   Fundraising Progress
   ========================================================== */

.ukf-campaign-fundraising {
    position: relative;
    z-index: 3;
    width: min(1120px, calc(100% - 48px));
    margin: -48px auto 0;
}

.ukf-campaign-fundraising-card {
    padding: 34px 40px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
}

.ukf-campaign-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.ukf-campaign-stat {
    min-width: 0;
    padding: 4px 28px;
    border-left: 1px solid #e8e8e8;
}

.ukf-campaign-stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.ukf-campaign-stat:last-child {
    padding-right: 0;
}

.ukf-campaign-stat-value,
.ukf-campaign-stat-label {
    display: block;
}

.ukf-campaign-stat-value {
    color: #202020;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.2;
}

.ukf-campaign-stat-raised .ukf-campaign-stat-value {
    color: #202020;
}

.ukf-campaign-stat-label {
    margin-top: 7px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ukf-campaign-progress-wrap {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid #eeeeee;
}

.ukf-campaign-progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.4;
}

.ukf-campaign-progress-heading strong {
    color: #202020;
    font-size: 15px;
}

.ukf-campaign-progress-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #eeeeee;
    overflow: hidden;
}

.ukf-campaign-progress-bar {
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: #fedf03;
}

/* ==========================================================
   Campaign Content
   ========================================================== */

.ukf-campaign-content {
    padding: 88px 24px 96px;
    background: #ffffff;
}

.ukf-campaign-content-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 72px;
    align-items: start;
}

.ukf-campaign-section-heading {
    margin-bottom: 32px;
}

.ukf-campaign-section-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #7a6500;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ukf-campaign-section-heading h2 {
    margin: 0;
    color: #202020;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ukf-campaign-story-content {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.8;
}

.ukf-campaign-story-content > *:first-child {
    margin-top: 0;
}

.ukf-campaign-story-content > *:last-child {
    margin-bottom: 0;
}

.ukf-campaign-story-content p {
    margin: 0 0 22px;
}

.ukf-campaign-story-content h2,
.ukf-campaign-story-content h3,
.ukf-campaign-story-content h4 {
    margin: 38px 0 16px;
    color: #202020;
    line-height: 1.3;
}

.ukf-campaign-story-content ul,
.ukf-campaign-story-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.ukf-campaign-story-content li {
    margin-bottom: 8px;
}


/* Campaign Information */

.ukf-campaign-details-card {
    padding: 30px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #f8f8f8;
}

.ukf-campaign-details-title {
    margin: 0 0 24px;
    color: #202020;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.ukf-campaign-details-list {
    margin: 0;
}

.ukf-campaign-detail {
    padding: 18px 0;
    border-top: 1px solid #e3e3e3;
}

.ukf-campaign-detail:first-child {
    padding-top: 0;
    border-top: 0;
}

.ukf-campaign-detail dt {
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ukf-campaign-detail dd {
    margin: 0;
    color: #202020;
    font-size: 15px;
    font-weight: 600;
}

.ukf-campaign-detail-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fedf03;
    color: #202020;
    font-size: 12px;
    font-weight: 700;
}

.ukf-campaign-detail-status-paused,
.ukf-campaign-detail-status-ended,
.ukf-campaign-detail-status-archived,
.ukf-campaign-detail-status-unknown {
    background: #e5e7eb;
}

.ukf-campaign-secondary-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 26px;
    padding: 13px 20px;
    border-radius: 6px;
    background: #e63e15;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.ukf-campaign-secondary-cta:hover,
.ukf-campaign-secondary-cta:focus {
    background: #ffc529;
    color: #1e1e1e !important;
    text-decoration: none;
    transform: translateY(-2px);
}

.ukf-campaign-secondary-cta:active {
    background: #ffc529;
    color: #1e1e1e !important;
    transform: translateY(0);
}

.ukf-campaign-secondary-cta:focus-visible {
    outline: 3px solid #ffc529;
    outline-offset: 3px;
}


/* ==========================================================
   Responsive Hero
   ========================================================== */

@media (max-width: 767px) {

    .ukf-campaign-hero {
        min-height: 500px;
    }

    .ukf-campaign-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.42) 0%,
                rgba(0, 0, 0, 0.78) 70%,
                rgba(0, 0, 0, 0.90) 100%
            );
    }

    .ukf-campaign-hero-inner {
        width: min(100% - 32px, 1200px);
        min-height: 500px;
        padding: 28px 0 44px;
    }

    .ukf-campaign-hero-content {
        margin-top: 60px;
    }

    .ukf-campaign-title {
        font-size: clamp(34px, 10vw, 48px);
    }

    .ukf-campaign-short-description {
        margin-top: 16px;
        font-size: 17px;
        line-height: 1.55;
    }

    .ukf-campaign-primary-cta {
        width: 100%;
        margin-top: 24px;
    }

        .ukf-campaign-fundraising {
        width: min(100% - 32px, 1120px);
        margin-top: -28px;
    }

    .ukf-campaign-fundraising-card {
        padding: 26px 22px;
        border-radius: 10px;
    }

    .ukf-campaign-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 0;
    }

    .ukf-campaign-stat {
        padding: 0 16px;
    }

    .ukf-campaign-stat:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .ukf-campaign-stat:nth-child(even) {
        padding-right: 0;
        border-left: 1px solid #e8e8e8;
    }

    .ukf-campaign-stat-value {
        font-size: 25px;
    }

    .ukf-campaign-progress-wrap {
        margin-top: 26px;
        padding-top: 22px;
    }

        .ukf-campaign-content {
        padding: 64px 16px 72px;
    }

    .ukf-campaign-content-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ukf-campaign-section-heading {
        margin-bottom: 24px;
    }

    .ukf-campaign-story-content {
        font-size: 16px;
        line-height: 1.75;
    }

    .ukf-campaign-details-card {
        padding: 24px 20px;
    }

}

    /* ==========================================================
   Campaign Support / Donation Section
   CM-007 Stage 3B
   ========================================================== */

.ukf-campaign-support {
    position: relative;
    padding: 96px 24px 112px;
    background: #f8f8f8;
    scroll-margin-top: 100px;
}

.ukf-campaign-support-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.ukf-campaign-support-header {
    max-width: 720px;
    margin: 0 auto 44px;
    text-align: center;
}

.ukf-campaign-support-header .ukf-campaign-section-eyebrow {
    margin-bottom: 12px;
}

.ukf-campaign-support-header h2 {
    margin: 0;
    color: #202020;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.ukf-campaign-support-header p {
    max-width: 640px;
    margin: 18px auto 0;
    color: #6b7280;
    font-size: 17px;
    line-height: 1.7;
}


/*
 * The donation form remains an independent frontend component.
 * These rules only control its placement inside a campaign.
 */

.ukf-campaign-support #ukf-donation-container {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
}

.ukf-campaign-support #ukf-donation-wrapper,
.ukf-campaign-support #ukf-donation-form {
    width: 100%;
    max-width: none;
}


/* Campaign unavailable state */

.ukf-campaign-support-message {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 32px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
}


/* ==========================================================
   Campaign Support Responsive
   ========================================================== */

@media (max-width: 767px) {

    .ukf-campaign-support {
        padding: 64px 16px 72px;
        scroll-margin-top: 80px;
    }

    .ukf-campaign-support-header {
        margin-bottom: 32px;
        text-align: left;
    }

    .ukf-campaign-support-header h2 {
        font-size: clamp(30px, 9vw, 38px);
    }

    .ukf-campaign-support-header p {
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.65;
    }

    .ukf-campaign-support-message {
        padding: 24px 20px;
        text-align: left;
    }

}


/* ==========================================================
   Campaign Updates / Public Timeline
   CE-001 Public Display
   ========================================================== */

.ukf-campaign-updates {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid #e5e7eb;
}

.ukf-campaign-updates-list {
    display: grid;
    gap: 28px;
    margin-top: 32px;
}

.ukf-campaign-update {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.ukf-campaign-update-media {
    overflow: hidden;
    background: #f8f8f8;
}

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

.ukf-campaign-update-body {
    padding: 24px 26px 28px;
}

.ukf-campaign-update-date {
    display: block;
    margin-bottom: 8px;
    color: #8a8a8a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ukf-campaign-update h3 {
    margin: 0;
    color: #202020;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.ukf-campaign-update-content {
    margin-top: 14px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.75;
}

.ukf-campaign-update-content p {
    margin: 0 0 14px;
}

.ukf-campaign-update-content p:last-child {
    margin-bottom: 0;
}

/* Campaign Updates Responsive */

@media (max-width: 767px) {

    .ukf-campaign-updates {
        margin-top: 44px;
        padding-top: 36px;
    }

    .ukf-campaign-updates-list {
        gap: 20px;
        margin-top: 24px;
    }

    .ukf-campaign-update-body {
        padding: 20px 20px 24px;
    }

    .ukf-campaign-update h3 {
        font-size: 21px;
    }

    .ukf-campaign-update-content {
        font-size: 15px;
        line-height: 1.7;
    }

}
