/**
 * Help Elkaar — Module styles
 * Accent: #8b5cf6 (purple)
 * Wordt geïmporteerd via render_head(['css' => ['/css/helpelkaar.css']])
 */

/* ============================================================
   CSS Custom Properties overrides voor Help Elkaar
   ============================================================ */
:root {
    --accent:         #8b5cf6;
    --accent-light:   #8b5cf6cc;
    --accent-hover:   #7c3aed;
    --card-icon-purple-bg:  #f5f3ff;
    --card-icon-purple-clr: #7c3aed;
}

/* ============================================================
   Hero overrides (gebruikt module-hero klassen van shared.css)
   ============================================================ */
.module-hero__accent {
    color: #c4b5fd;
}

/* ============================================================
   Actie kaarten
   ============================================================ */
.actie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.actie-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.actie-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    display: block;
}

.actie-img-placeholder {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    background: linear-gradient(135deg, #1a0a2e 0%, #3a0a4a 50%, #e63946 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   Voortgangsbalk (deelnemers-bar)
   ============================================================ */
.deelnemers-bar {
    margin-top: 4px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.actie-bedrag {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
}

.actie-pct {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 99px;
}

.progress {
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
    transition: width 0.8s ease;
}

/* ============================================================
   Bedrag knoppen (snel kiezen in donatie forms)
   ============================================================ */
.bedrag-knoppen {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 4px;
}

.bedrag-btn {
    padding: 10px 4px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    text-align: center;
}

.bedrag-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.bedrag-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ============================================================
   Card icon purple variant
   ============================================================ */
.card-icon-purple {
    background: var(--card-icon-purple-bg);
    color: var(--card-icon-purple-clr);
}

/* ============================================================
   Pending notice
   ============================================================ */
.pending-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-lg);
    color: #92400e;
    font-size: 0.9rem;
}

.pending-notice > i {
    font-size: 1.5rem;
    color: #f59e0b;
    flex-shrink: 0;
}

/* ============================================================
   Portaal stat cards
   ============================================================ */
.stat-card {
    text-align: center;
    padding: 24px 20px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================================
   Empty state
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state > i {
    font-size: 3rem;
    color: var(--border);
    display: block;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 0.9rem;
    max-width: 360px;
    margin: 0 auto;
}

/* ============================================================
   Badge variants
   ============================================================ */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-active   { background: #d1fae5; color: #065f46; }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-inactive { background: var(--bg-secondary); color: var(--text-muted); }

/* ============================================================
   Section header
   ============================================================ */
.section__header {
    text-align: center;
    margin-bottom: 40px;
}

.section__header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.section__header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   Section backgrounds
   ============================================================ */
.section-bg {
    background: var(--bg-secondary);
}

/* ============================================================
   Grid helpers
   ============================================================ */
@media (max-width: 768px) {
    .bedrag-knoppen {
        grid-template-columns: repeat(2, 1fr);
    }

    .actie-img,
    .actie-img-placeholder {
        height: 160px;
    }

    .stat-value {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .bedrag-knoppen {
        grid-template-columns: repeat(2, 1fr);
    }
}
