/**
 * Acts101 Uganda Core Plugin — Frontend Styles
 * Supplements the theme stylesheet with component-specific styles.
 */

/* ── Programs ───────────────────────────────────────────────────── */
.acts101-programs-grid .program-card {
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.acts101-programs-grid .program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
}

/* ── Projects ───────────────────────────────────────────────────── */
.acts101-projects-grid .card {
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.acts101-projects-grid .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
}

/* ── Team Grid ──────────────────────────────────────────────────── */
.acts101-team-grid .card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.acts101-team-grid .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
.acts101-team-grid .card img {
    transition: transform 0.4s ease;
}
.acts101-team-grid .card:hover img {
    transform: scale(1.05);
}

/* ── Amount Buttons (Donation) ──────────────────────────────────── */
.acts101-amount-btn:hover,
.acts101-amount-btn.active {
    background: var(--acts101-primary, #065e23) !important;
    color: white !important;
    border-color: var(--acts101-primary, #065e23) !important;
}

/* ── Donation Form ──────────────────────────────────────────────── */
.acts101-donation-form input[type="number"]::-webkit-inner-spin-button,
.acts101-donation-form input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Newsletter Form ────────────────────────────────────────────── */
.acts101-newsletter-inline input[type="email"] {
    background: white;
    color: #333;
}
.acts101-newsletter-inline input::placeholder {
    color: #94a3b8;
}

/* ── Testimonials ───────────────────────────────────────────────── */
.testimonial-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.testimonial-card__text {
    flex: 1;
}

/* ── Partners ───────────────────────────────────────────────────── */
.acts101-contact-info {
    line-height: 1.8;
}

/* ── Pagination ─────────────────────────────────────────────────── */
.acts101-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}
.acts101-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}
.acts101-pagination a,
.acts101-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid #e2e8f0;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}
.acts101-pagination a:hover,
.acts101-pagination .current {
    background: var(--acts101-primary, #065e23);
    border-color: var(--acts101-primary, #065e23);
    color: white;
}

/* ── Hero Section Overlay ───────────────────────────────────────── */
.acts101-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(11, 79, 156, 0.88) 0%,
        rgba(8, 61, 122, 0.75) 60%,
        rgba(46, 139, 87, 0.5) 100%
    );
    z-index: 1;
}

/* ── Stats Counter Section ──────────────────────────────────────── */
.acts101-stats-section {
    background: linear-gradient(135deg, #065e23 0%, #044a1b 100%);
    position: relative;
    overflow: hidden;
}
.acts101-stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ── Section Wave Dividers ──────────────────────────────────────── */
.acts101-wave-top,
.acts101-wave-bottom {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
}
.acts101-wave-top { top: -1px; }
.acts101-wave-bottom { bottom: -1px; }

/* ── Sticky CTA Bar ─────────────────────────────────────────────── */
.acts101-sticky-cta {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    background: var(--acts101-accent, #F7941D);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 998;
    transition: bottom 0.3s ease;
    font-family: var(--font-heading, 'Poppins', sans-serif);
    box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.acts101-sticky-cta.visible { bottom: 0; }
.acts101-sticky-cta p { margin: 0; font-weight: 600; color: rgba(255,255,255,.95); }
.acts101-sticky-cta a {
    background: white;
    color: var(--acts101-accent, #F7941D);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.acts101-sticky-cta a:hover { opacity: 0.9; }

/* ── Impact Number Badges ───────────────────────────────────────── */
.impact-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--acts101-primary, #065e23);
    color: white;
}
.impact-badge__number {
    font-family: var(--font-heading, 'Poppins', sans-serif);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}
.impact-badge__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    text-align: center;
}

/* ── Skip Link ──────────────────────────────────────────────────── */
.skip-link {
    background: var(--acts101-primary, #065e23);
    color: white;
    padding: 0.5rem 1rem;
    position: absolute;
    top: -100%;
    left: 1rem;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Mobile responsive overrides ───────────────────────────────── */
@media (max-width: 768px) {
    .acts101-programs-grid,
    .acts101-projects-grid,
    .acts101-team-grid {
        grid-template-columns: 1fr !important;
    }
    .acts101-sticky-cta {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1rem;
    }
    .impact-badge { width: 90px; height: 90px; }
    .impact-badge__number { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .acts101-newsletter-inline {
        flex-direction: column;
    }
    .acts101-newsletter-inline input[type="email"],
    .acts101-newsletter-inline button {
        width: 100%;
    }
}
