/**
 * Amilia Filters + Results – Frontend Styles (v1.7.4)
 *
 * Card design based on weinsteinjcc.org/programs/kids-and-teens/
 * Horizontal card: image left (fixed 260px, centered), content right, box shadow.
 */

/* ================================================================== */
/*  Filter Sidebar                                                    */
/* ================================================================== */

.amilia-filters {
    font-family: inherit;
}

.amilia-filter-group {
    margin-bottom: 24px;
}

.amilia-filter-heading {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid currentColor;
}

.amilia-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.amilia-filter-item {
    margin: 0;
    padding: 0;
}

.amilia-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.amilia-filter-label:hover {
    opacity: 0.75;
}

.amilia-filter-cb {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 2px solid #999;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s, background-color 0.15s;
}

.amilia-filter-cb:checked {
    background-color: #0097a7;
    border-color: #0097a7;
}

.amilia-filter-cb:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.amilia-filter-item.is-active .amilia-filter-label {
    font-weight: 600;
}

.amilia-filter-clear {
    display: inline-block;
    background: none;
    border: none;
    color: #0097a7;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
}

.amilia-filter-clear:hover {
    opacity: 0.7;
}

/* ================================================================== */
/*  Results Container                                                 */
/* ================================================================== */

.amilia-results-status {
    text-align: center;
    padding: 32px;
    color: #666;
    font-size: 14px;
}

.amilia-results-count {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    font-style: italic;
}

.amilia-results-count:empty {
    display: none;
}

.amilia-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-top-color: #0097a7;
    border-radius: 50%;
    animation: amilia-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes amilia-spin {
    to { transform: rotate(360deg); }
}

.amilia-results-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ================================================================== */
/*  Activity Card                                                     */
/*  Horizontal: fixed image left, content right, prominent shadow     */
/* ================================================================== */

.amilia-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.amilia-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* ---- Image (left) — fixed width, white bg, image centered ---- */

.amilia-card-img {
    flex: 0 0 260px;
    width: 260px;
    min-height: 220px;
    overflow: hidden;
    background: #fff;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.amilia-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* ---- Placeholder when no image ---- */

.amilia-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0097a7 0%, #00bfa5 100%);
}

.amilia-card-placeholder span {
    font-size: 64px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
    user-select: none;
}

/* ---- Body (right) ---- */

.amilia-card-body {
    flex: 1;
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
}

/* ---- Title — teal/dark cyan ---- */

.amilia-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #0097a7;
    margin: 0 0 10px;
    line-height: 1.25;
}

/* ---- Meta rows: icon + text on each line ---- */

.amilia-card-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 6px;
}

.amilia-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #555;
    margin-top: 2px;
}

/* ---- Description — clamped to 3 lines max ---- */

.amilia-card-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin: 10px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Learn More — hot pink pill button ---- */

.amilia-card-actions {
    margin-top: 18px;
}

.amilia-card-btn {
    display: inline-block;
    padding: 11px 32px;
    background: #e91e7a;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    letter-spacing: 0.02em;
}

.amilia-card-btn:hover {
    background: #c2185b;
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
}

/* ---- Empty / Error ---- */

.amilia-empty,
.amilia-error {
    text-align: center;
    padding: 48px 24px;
    color: #888;
    font-size: 15px;
}

.amilia-error {
    color: #c0392b;
}

/* ================================================================== */
/*  Responsive: stack vertically on mobile                            */
/* ================================================================== */

@media (max-width: 768px) {
    .amilia-card {
        flex-direction: column;
    }

    .amilia-card-img {
        flex: none;
        width: 100%;
        height: 200px;
        min-height: 200px;
    }

    .amilia-card-body {
        padding: 20px;
    }

    .amilia-card-title {
        font-size: 18px;
    }
}
