:host {
    display: block;
    width: 450px;
}

.card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.event-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.card-body {
    padding: 1.25rem 1.5rem;
}

.description {
    margin: 0;
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 1.5rem;
    border-top: 1px solid #eee;
}

.footer-btn {
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
}

.btn-green {
    color: #16a34a;
    border-color: #16a34a;
}

.btn-green:hover {
    background: #f0fdf4;
}

.btn-blue {
    color: #2563eb;
    border-color: #2563eb;
    margin-left: auto;
}

.btn-blue:hover {
    background: #eff6ff;
}

.closed-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.closed-badge.achieved {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}