/* ==========================================================================
   MPZ Landing Page Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */

.mpz-about-section {
    padding: 20px 0 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.mpz-about-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mpz-about-logo img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #eee;
    padding: 2px;
}

.mpz-about-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.mpz-verified-icon {
    color: #1877F2;
    font-size: 0.9rem;
    margin-left: 4px;
}

.mpz-about-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.mpz-about-readmore {
    padding-bottom: 20px;
    text-align: center;
}

.mpz-about-readmore a {
    color: #ff6600;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
}

.mpz-about-readmore a:hover {
    color: #cc5200;
}

.mpz-about-full-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
}

/* Desktop about layout (hidden on mobile) */
.mpz-about-layout {
    display: none;
}

/* Mobile about layout (visible on mobile) */
.mpz-about-mobile {
    display: block;
}

/* --------------------------------------------------------------------------
   Statistics Section
   -------------------------------------------------------------------------- */

.mpz-statistics-section {
    padding: 20px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.mpz-stats-card {
    /* no border on mobile */
}

.mpz-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mpz-stat-item {
    flex: 1;
    text-align: center;
    padding: 0 8px;
}

.mpz-stat-item--wide {
    flex: 1.6;
}

.mpz-stat-divider {
    width: 1px;
    height: 48px;
    background-color: #ddd;
    flex-shrink: 0;
}

.mpz-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    white-space: nowrap;
}

.mpz-stat-label {
    font-size: 0.72rem;
    color: #777;
    margin-top: 4px;
    line-height: 1.3;
}

/* Social buttons - rounded rectangle pills */
.mpz-social-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 4px;
}

.mpz-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 80px;
    height: 36px;
    border-radius: 6px;
    padding: 0 16px;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.mpz-social-btn:hover {
    color: #fff;
    opacity: 0.85;
    transform: translateY(-2px);
    text-decoration: none;
}

/* About section social (hidden on mobile, shown on desktop) */
.mpz-about-social-desktop {
    display: none;
}

/* --------------------------------------------------------------------------
   Campaign List Section
   -------------------------------------------------------------------------- */

.section-mpz-campaigns {
    padding: 32px 0 48px;
    background-color: #f8f8f8;
}

.mpz-campaigns-heading {
    text-align: center;
    margin-bottom: 24px;
}

.mpz-campaigns-heading .section__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #444;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.mpz-campaigns-heading .section__subtitle {
    font-size: 0.95rem;
    color: #777;
    margin: 0;
}

/* Desktop heading text (hidden on mobile) */
.mpz-heading-desktop {
    display: none;
}

/* Mobile heading text (visible on mobile) */
.mpz-heading-mobile {
    display: block;
}

/* Campaign card - mobile horizontal layout */
.card-campaign--mpz {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background-color: #fff;
    margin-bottom: 12px;
}

.mpz-card-img-wrap {
    position: relative;
    height: 100%;
    min-height: 130px;
}

.mpz-card-img-wrap a {
    display: block;
    height: 100%;
}

.mpz-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.mpz-card-body {
    padding: 12px 14px;
}

.mpz-card-title-link {
    text-decoration: none;
}

.mpz-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mpz-card-title-link:hover .mpz-card-title {
    color: #69B749;
}

.mpz-card-kolaborator {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.mpz-card-kolaborator-name {
    font-size: 0.75rem;
    color: #777;
}

.mpz-card-progress {
    margin-bottom: 8px;
}

.mpz-card-progress .progress {
    height: 4px;
    background-color: #eee;
    border-radius: 2px;
}

.mpz-card-progress .progress-bar {
    background-color: #69B749;
    border-radius: 2px;
}

.mpz-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
}

.mpz-card-meta-item {
    display: flex;
    flex-direction: column;
}

.mpz-card-meta-item--right {
    text-align: right;
}

.mpz-card-meta-label {
    color: #aaa;
    margin-bottom: 1px;
}

.mpz-card-meta-value {
    font-weight: 700;
    color: #333;
}

/* Desktop vertical card (hidden on mobile) */
.mpz-card-desktop {
    display: none;
}

/* Mobile horizontal card (visible on mobile) */
.mpz-card-mobile {
    display: block;
}

/* Load More button */
.mpz-load-more-wrap {
    text-align: center;
    margin-top: 20px;
}

.mpz-load-more-btn {
    display: inline-block;
    padding: 10px 36px;
    background-color: #fff;
    color: #69B749;
    border: 2px solid #69B749;
    border-radius: 50rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
}

.mpz-load-more-btn:hover {
    background-color: #69B749;
    color: #fff;
    text-decoration: none;
}

.mpz-load-more-btn.htmx-request {
    opacity: 0.6;
    pointer-events: none;
}

/* Slider desktop only wrapper */
.mpz-slider-desktop {
    display: none;
}

/* ==========================================================================
   Desktop Responsive Styles (min-width: 992px)
   ========================================================================== */

@media (min-width: 992px) {

    /* ---------- Slider Section (desktop only) ---------- */
    .mpz-slider-desktop {
        display: block;
    }

    /* ---------- About Section ---------- */
    .mpz-about-section {
        padding: 40px 0 20px;
        border-bottom: none;
    }

    .mpz-about-mobile {
        display: none;
    }

    .mpz-about-layout {
        display: flex;
        gap: 30px;
        align-items: flex-start;
    }

    .mpz-about-sidebar {
        flex-shrink: 0;
        text-align: center;
        min-width: 120px;
    }

    .mpz-about-sidebar .mpz-about-logo img {
        width: 100px;
        height: 100px;
    }

    .mpz-about-sidebar .mpz-about-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: #333;
        margin-top: 8px;
    }

    .mpz-about-content-area {
        flex: 1;
    }

    .mpz-about-content-area .mpz-about-excerpt {
        font-size: 0.95rem;
        line-height: 1.8;
        color: #555;
        margin-bottom: 16px;
    }

    /* Social in about section on desktop */
    .mpz-about-social-desktop {
        display: flex !important;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 16px;
    }

    /* Hide social in statistics on desktop */
    .mpz-statistics-section .mpz-social-row {
        display: none;
    }

    /* ---------- Statistics Section ---------- */
    .mpz-statistics-section {
        padding: 30px 0;
        background-color: #fff;
        border-bottom: none;
    }

    .mpz-stats-card {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 30px 20px;
        max-width: 750px;
        margin: 0 auto;
    }

    .mpz-stats-row {
        margin-bottom: 0;
    }

    .mpz-stat-value {
        font-size: 2.2rem;
        font-weight: 800;
    }

    .mpz-stat-label {
        font-size: 0.9rem;
        margin-top: 6px;
    }

    .mpz-stat-divider {
        height: 64px;
    }

    /* ---------- Campaign Section ---------- */
    .section-mpz-campaigns {
        padding: 48px 0 60px;
    }

    .mpz-campaigns-heading {
        margin-bottom: 32px;
    }

    .mpz-campaigns-heading .section__title {
        font-size: 1.5rem;
    }

    .mpz-campaigns-heading .section__subtitle {
        font-size: 1rem;
    }

    .mpz-heading-desktop {
        display: block;
    }

    .mpz-heading-mobile {
        display: none;
    }

    /* Campaign grid: 3 columns */
    #mpz-campaign-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    /* Hide mobile horizontal card on desktop */
    .mpz-card-mobile {
        display: none !important;
    }

    /* Show desktop vertical card */
    .mpz-card-desktop {
        display: block;
    }

    /* Progress bar label on desktop */
    .mpz-card-progress-label {
        display: inline-block;
        font-size: 0.72rem;
        font-weight: 700;
        color: #69B749;
        margin-bottom: 4px;
        float: right;
    }

    /* Load more */
    .mpz-load-more-wrap {
        margin-top: 32px;
    }

    /* campaign-1 card overrides inside MPZ grid */
    #mpz-campaign-list .mpz-card-desktop .card-campaign--1 {
        margin-bottom: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    #mpz-campaign-list .mpz-card-desktop .card-campaign--1 .card-body--desc {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    #mpz-campaign-list .mpz-card-desktop .card-campaign--1 .card__row-meta {
        margin-top: auto;
    }
}
